【问题标题】:Python selenium Webdriver: How to fixe this error "TimeoutException"Python selenium Webdriver:如何修复此错误“TimeoutException”
【发布时间】:2020-03-09 13:54:09
【问题描述】:

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

我需要帮助。谢谢。

【问题讨论】:

    标签: python selenium selenium-webdriver timeoutexception


    【解决方案1】:
    WebDriverWait(driver, 3).until(lambda x: x.find_element_by_xpath
    

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

    【讨论】:

    • 感谢您的回答。我错了,我想写WebDriverWait(driver, 5).until(lambda x: x.find_element_by_id('lnk_-831246410')).click()如图所示
    • 你知道如何解决这个问题吗?
    猜你喜欢
    • 2021-10-01
    • 2015-04-24
    • 2021-05-27
    • 2019-02-27
    • 1970-01-01
    • 2017-04-11
    • 1970-01-01
    • 1970-01-01
    • 2021-08-14
    相关资源
    最近更新 更多