新手问题 请教一下 selenium webdriver 怎么在没有 id 和 name 的情况下切换框架

sumpler · April 20, 2016 · Last by lihuazhang replied at April 21, 2016 · 1521 hits

百度了很久没百度到方法,我想请教一下怎么才能切换到上面的这个框架中。

#1 楼 @lihuazhang 我只会用 xpath 定位元素,xpath 怎么定位框架呢?

try //iframe

You need to Sign in before reply, if you don't have an account, please Sign up first.