Python Selenium Webdriver:如何修复此错误“ TimeoutException”

时间:2020-03-09 13:54:09

标签: python selenium selenium-webdriver timeoutexception

我尝试将Webdriver与chrome一起使用,但此错误“ TimeoutException”始终存在问题。我尝试使用WebDriverWait(driver, 3).until(lambda x: x.find_element_by_id。 我用5或10代替3只是为了有更多的时间,但我总是被阻止。我加入了错误屏幕:

enter image description here

我需要帮助。谢谢。

1 个答案:

答案 0 :(得分:1)

WebDriverWait(driver, 3).until(lambda x: x.find_element_by_xpath
提到了

=> xpath类型。但这是您屏幕截图中的其他类型(id)。