Display results as :

Rechercher Advanced Search

Latest topics

Dynamic ID for iframe(Modal)

View previous topic View next topic Go down

Dynamic ID for iframe(Modal)

Post by ccox 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 : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Dynamic ID for iframe(Modal)

Post by rohit13 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


Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum