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

Managing elements to avoid duplicates

2 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 06 Mar 2012, 05:09 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 06 Mar 2012, 05:25 PM
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
0
Richard
Top achievements
Rank 1
answered on 09 Mar 2012, 04:57 PM
Anthony, 

Thanks for clarifying the criteria under which new elements are created.  This is helpful!
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Richard
Top achievements
Rank 1
Share this question
or