In my GUI testing case i have one button, which generate dynamic id each time. Itest can not find this dynamic id each time. so, what can be place insted of dynamic id..
In my GUI testing case i have one button, which generate dynamic id each time. Itest can not find this dynamic id each time. so, what can be place insted of dynamic id..
Hey Amar,
You can use regular expression but if the structure changes then it will also fail.
(hope it will not do so as it is a button name)
The best way:
1. Take a snapshot of the page. (earlier to the button)
2. in the response (XML type) find the exact name and made an analysis rule using query and store the id (dynamic) in a variable.
3. Later use the variable in the script for specified button action (Make sure field repleacement enabled)
Hope this will help you and exploring more iTest features!!
No one has followed this question yet.