The frame switching python

The python frame switching 

from
Selenium Import the webdriver Driver = webdriver.Chrome () driver.get ( " HTTPS: //www.***.cn " ) # that has an id, a positioning id, id = iframe1 driver.switch_to.frame ( " iframe1 " ) # no id's, with the index positioning index, index =. 1 driver.switch_to.frame (. 1 ) # switch back to default driver.switch_to.default_content () driver.quit ()

 

Guess you like

Origin www.cnblogs.com/tester-go/p/11041873.html