开发者

XPath: How do I find a frame with this name?

开发者 https://www.devze.com 2023-04-03 20:00 出处:网络
For the purposes of using xpath in a Selenium test, how do I write an Xpath expression where the name of my frame is \"sb_player\"?In my Fierbug console, I get this from my doc ...

For the purposes of using xpath in a Selenium test, how do I write an Xpath expression where the name of my frame is "sb_player"? In my Fierbug console, I get this from my doc ...

window.frames[1].name
"sb-player"

but I can't figure out an equ开发者_如何学运维ivalent expression in Xpath to identify the frmae (//frames[1] doesn't work).

Thanks for your help, - Dave


Did you try xpath like something below?

//frame[name='sb_player']
0

精彩评论

暂无评论...
验证码 换一张
取 消