Share
Go down
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Dynamic ID for iframe(Modal)

on 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?
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: Dynamic ID for iframe(Modal)

on 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.

_________________
Radical QA
http://radical-qa.blogspot.in/
Back to top
Permissions in this forum:
You cannot reply to topics in this forum