引入 WebDriverWait
from selenium.webdriver.support.wait import WebDriverWait
WebDriverWait(browser, 60).until(lambda x: x.find_element_by_class_name(“uploadifyQueueItem”))
browser驱动器名称,有的人习惯交driver
60,最长等待时间
lambda 匿名函数 我也不太动
后边就是你要等待的元素了
上一篇:Unable to round-trip http request to upstream: dial tcp4 xxx.xx.xx.xx:80: i/o ti
下一篇:WORDPRESS经常429 Too Many Requests