selenium3+python3中的嵌套页面定位元素
2021-01-29 01:17
标签:imp switch css cli selector element bdr search ref driver=webdriver.Firefox() adddress="地址" driver.get(adddress) #进入嵌套的frame中寻找元素 driver.find_element_by_css_selector("").send_keys("") driver.find_element_by_css_selector("").click() driver.quit() selenium3+python3中的嵌套页面定位元素 标签:imp switch css cli selector element bdr search ref 原文地址:https://www.cnblogs.com/HYL1003597280/p/14337422.htmlfrom selenium import webdriver
from time import sleep
driver.switch_to_frame("search")
sleep(3)
sleep(3)
文章标题:selenium3+python3中的嵌套页面定位元素
文章链接:http://soscw.com/index.php/essay/48489.html