selenium-frame切换

1.切换到frame里面

(1)driver.switch_to.frame(''iframe neme'')

      frame元素的name属性或者ID属性

       索引值从0开始:0

       driver.switch_to.frame(driver.find_element_by_tag_name("xx")

   2.切换到主界面

driver.switch_to.default_content()

 

posted on 2019-06-28 15:10  芋头加满仓  阅读(429)  评论(0编辑  收藏  举报

导航