- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
Dynamic ID for iframe(Modal)
Thu Feb 07, 2013 11:08 pm
I am attempting to switch the focus to a modal whose idea contains a dynamically generated ID. This is in an iframe, but also a modal that pops up. Unfortunately I tried to switch to the active element and it is not able to find it. Anyone know how to handle dynamic id's without using xpath?
Re: Dynamic ID for iframe(Modal)
Fri Feb 08, 2013 1:02 pm
Instead of ID, you can go with class, css, name etc.
Else you can use storeAttribute | //*[@class='stnewrecord']@id | variable
Here you can get dynamic ID in variable, and then you can use it.
Else you can use storeAttribute | //*[@class='stnewrecord']@id | variable
Here you can get dynamic ID in variable, and then you can use it.
Permissions in this forum:
You cannot reply to topics in this forum