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()

原文地址:https://www.cnblogs.com/iamshasha/p/11102783.html