View previous topicGo downView next topic
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?
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA

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
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum