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

Element names

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Danielle
Top achievements
Rank 1
Danielle asked on 09 Sep 2011, 03:36 PM
Hi

I just downloaded the Trail version of Test Studio, so I am very new to everything and have a question.

Where does the app get the names given to the elements (buttons, textboxes, etc)? At first it appeared as if the names were being sucked out of the actual code, but they weren't. So does Test Studio randomly assign names for these elements.
Is in possible to set the app to suck the names out of the code?  

Thanks

*Additionally: Great software and you guys are doing a great job with customer support.

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 09 Sep 2011, 04:03 PM
Hi Danielle,

Thank you for the excellent feedback.

The element names you see in the Elements Explorer and test steps are derived from their Find Settings. It is actually called the "FriendlyName" and can be edited in the element's properties.

For example, I have a test that navigates to http://bing.com and sets the search box text to "Telerik". The search box element's FriendlyName is "SbFormQText" because the Find Settings are:

  • 'id' is exactly 'sb_form_q'
  • 'tagname' is exactly 'input'

The FriendlyName is extracted from the code and is based on the element's highest priority attribute used in its Find Settings. The identification logic can be viewed and re-prioritized here. By default "id" is number one as that attribute is typically unique to each element.

Best wishes,
Anthony
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Danielle
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or