Python selenium Webdriver:如何解决此错误“ TimeoutException”

问题描述 投票:0回答:1

我尝试将Webdriver与chrome结合使用,但始终出现此错误“ TimeoutException”。我尝试使用WebDriverWait(driver, 3).until(lambda x: x.find_element_by_id。我将3替换为5或10只是为了拥有更多的时间,但我总是被阻止。我加入了错误的画面:

enter image description here

我需要帮助。谢谢。

python selenium selenium-webdriver timeoutexception
1个回答
1
投票
WebDriverWait(driver, 3).until(lambda x: x.find_element_by_xpath
提到了

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

© www.soinside.com 2019 - 2024. All rights reserved.