from selenium import webdriver
from time import sleep
from selenium.webdriver import ActionChains
bro = webdriver.Chrome(executable_path="./chromedriver.exe")
bro.get("https://www.runoob.com/try/try.php?filename=jqueryui-api-droppable")
# 如果定位的标签存在于iframe,则需要使用switch_to
使用selenium操作iframe中的标签
最新推荐文章于 2022-10-23 16:24:09 发布
from selenium import webdriverfrom time import sleepfrom selenium.webdriver import ActionChainsbro = webdriver.Chrome(executable_path="./chromedriver.exe")bro.get("https://www.runoob.com/try/try.php?filename=jqueryui-api-droppable")# 如果定位的标签存在于ifra
摘要由CSDN通过智能技术生成