sunethestrange
9 years agoNew Contributor
Solved
How do I retrieve the first instance of a class in Keyword Test?
I am having an issue where each time a search is done and the "Edit" button is displayed, it generates a new ID for the button, and does not recognise a previously mapped button.
How do I select the first instance of a search in a Keyword test?
Hi,
This means that the identification criteria used in the NameMapping for the given control (button in your case) are dynamic and change every time the control is generated.
I would recommend to watch the https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/ video (from the https://support.smartbear.com/screencasts/testcomplete/ page) to get the recommendations on how to work with dynamic tested objects.