selenium
作者:互联网
import time
from selenium.webdriver.support.wait import WebDriverWait
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome(r"D:\百分浏览器\CentBrowser\Application\chromedriver.exe");
driver.get("https://www.doudouwan.net")
time.sleep(15)
driver.get("https://www.doudouwan.net/fun/index.html?type=js28")
WebDriverWait(driver,120,0.2).until(lambda x:x.find_element(By.XPATH,"//i[contains(text(),'解谜中,请稍后..')]"))
time.sleep(60)
driver.refresh()
print("1111")
标签:webdriver,www,selenium,driver,sleep,import 来源: https://www.cnblogs.com/elaine-a/p/16590037.html