Forum Discussion
thks. unfortunately the part of the id which appears to be inrementing is the object group index (i think).
The app wont let me replace the integer with a wild card.Maybe setting that index as a project variable
will get me around this.....
Weird that this is the only object i have this problem with.
- jzac8 years agoOccasional Contributor
"Aliases.Device.process<product name>.window5.alertview0.password_popup.cancel_button"
"window5" keeps incrementing.
- AlexKaras8 years agoChampion Level 3
Hi,
>"Aliases.Device.process<product name>.window5.alertview0.password_popup.cancel_but
ton" "window5" keeps incrementing.
The best option, in case the application is still under development and you can talk to Development, is to ask them why this happens and can this be corrected.
Otherwise, the possible actions are:
-- If window5 is the only child window object for the <product name> process, then you should just remove the changing (unstable) identification criterion from the namemapping and things should work;
-- Otherwise, remove the unstable criterion from the namemapping like in the previous bullet, switch to the Required Children tab of the namemapping editor and check the checkbox for the alertview0 element (thus, making it the required child which ensures uniquness for the parent window object) - https://support.smartbear.com/viewarticle/87998/
P.S. https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/ from the https://support.smartbear.com/screencasts/testcomplete/ page might provide with better understanding of the above suggestions.
Related Content
Recent Discussions
- 8 hours agosimonaferrara
- 17 hours agoSubhraDas
- 2 days agotramuntana