Element names

2 posts, 0 answers
  1. Danielle
    Danielle avatar
    1 posts
    Member since:
    Sep 2011

    Posted 09 Sep 2011 Link to this post

    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.
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 09 Sep 2011 Link to this post

    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!
Back to Top