Managing elements to avoid duplicates

3 posts, 1 answers
  1. Richard
    Richard avatar
    13 posts
    Member since:
    Feb 2012

    Posted 06 Mar 2012 Link to this post

    I'm fairly new to Telerik, so bear with me.  I'm wondering if someone can provide some advice on how to best manage the elements feature.  When beginning to build out my test suite, I first went through the target website and created elements for any items that are global or reused on multiple pages and named them with "friendly" names for reference.  However, I'm finding that as I build out my test suite, elements are automatically added using the default name it pulls from the source code.  What I end up with is a bunch of elements with vague/ambiguous names and it's a somewhat arduous task to go through and identify and rename them.  Also it appears that some may be duplicates or at least target various portions of existing elements.  What are the conditions in which an element will be auto generated?  This might help me to understand how to handle. 

    Thanks in advance.
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 06 Mar 2012 Link to this post

    Hello Richard,

    An element is added to the Elements Explorer with unique Find Settings. The Friendly Name is just a label for organizational purposes. If duplicate elements are being added, then there is likely something dynamic in the Find Settings that is different each time you act on it.

    See here for more information on how this works. If you're dealing with dynamic IDs, see here for more info.

    Kind regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Richard
    Richard avatar
    13 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    Anthony, 

    Thanks for clarifying the criteria under which new elements are created.  This is helpful!
Back to Top