This is a migrated thread and some comments may be shown as answers.

Element EnumerationType

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Govind
Top achievements
Rank 1
Govind asked on 19 May 2016, 01:14 AM

The Element EnumerationType returns value "Other" for <form></form> in version 2016.1.330

As per the Enumeration Type should return a value of 19 for <form>

 

When we use the Element.TagName returns the element form.

This seem to be a bug in the release.

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 23 May 2016, 08:06 AM
Hello Govind,

Please provide us with reliable repro and we will be happy to take a look.

Thank you for your cooperation in advance.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Govind
Top achievements
Rank 1
answered on 24 May 2016, 12:13 AM

Hi Ivaylo,

Try the below piece of code against a website that contains the form element. Check the result for ElementType returned and compare it against the Element Type Enumeration on the TestStudio API Docs.

The value returned is "OTHER" for element <form>.

     Element element = Manager.ActiveBrowser.Find.ByExpression("name=paymentForm"); // Parent
      if (element != null) {
          Manager.Current.Log.WriteLine("\n Element Tag:= " + element.TagName + "\n Element Type:= " + element.ElementType);

      }

cheers

govind

0
Ivaylo
Telerik team
answered on 26 May 2016, 01:06 PM
Hello Govind,

Give me some time for a repro.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Govind
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Govind
Top achievements
Rank 1
Share this question
or