Identification of dynamic controls !

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

Identification of dynamic controls !

Post by suddamalla » Thu Feb 28, 2013 1:44 pm


I want to automate one wizard, which has few static controls and much dynamic controls. These dynamic controls are all of same, like when i click on one button, 3 controls will be added. If i again click same button, same 3 controls will be added again.

In SPY, it is showing only index value difference. Everytime i use spy, the index value also being changed.

How to handle this situation?

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Identification of dynamic controls !

Post by Ciege » Thu Feb 28, 2013 3:35 pm

First, search the forum... This type of issue has been discussed several times...

Second, try and determine if there is any uniquely identifiable attribute for the elements.

Third, ask your development team to uniquely name their controls.

Fourth, write some custom code that is able to determine which control you want to deal with depending on it's sibling/parent/child/etc...

Finally, post a RanorexSpy snapshot that contains an example of several elements that only differ by their ID number.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!