- tirusel
- Posts : 1
Join date : 2012-06-12
unable to find dynamic frame ids
Tue Jun 12, 2012 5:59 pm
if the id of a frame dynamically changes ,what is the standard procedure to catch the frame id
- SouravActive particpant
- Posts : 17
Join date : 2012-06-28
Re: unable to find dynamic frame ids
Thu Jun 28, 2012 6:00 pm
If position of the frame remains same, you can use Xpath to capture the frame and get id property
- venugopaldActive particpant
- Posts : 10
Join date : 2012-06-11
use xpath instead of id
Tue Jul 03, 2012 2:28 pm
take xpath of that frame, create web element for that xpath in pagefactory model now
in driver.switchto.frame("")
with in the double quotes give xpath web element
in driver.switchto.frame("")
with in the double quotes give xpath web element
- ramit1112
- Posts : 1
Join date : 2012-07-31
Re: unable to find dynamic frame ids
Tue Jul 31, 2012 7:43 pm
u can use the following syntx:
xpath=//input[contains(@id,'yourElementname')]
ex.
xpath=//input[contains(@id,'rediobutton')]
xpath=//input[contains(@id,'yourElementname')]
ex.
xpath=//input[contains(@id,'rediobutton')]
Permissions in this forum:
You cannot reply to topics in this forum
|
|