【问题标题】:Selenium Timed out receiving message from renderer on pythonSelenium 超时从 python 上的渲染器接收消息
【发布时间】:2021-06-17 10:56:16
【问题描述】:

Chrome 发布最新稳定版本 (89.0.4389.90) 后,我现在收到此错误:

selenium.common.exceptions.TimeoutException:消息:超时:从渲染器接收消息超时:291.642 (会话信息:headless chrome=89.0.4389.90)

我的 Python 代码是

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.headless = True
options.add_argument('--no-sandbox')
options.add_argument('--disable-gpu')  # maybe needed if running on Windows.
options.add_argument("--disable-dev-shm-usage")
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome('/usr/local/bin/chromedriver', options=options)
urls = "https://www.google.com/"
driver.get(urls) #here I have the error

(我的 chromedriver 是 89.0.4389.23 是 unic)

谁能帮我解决这个问题?

【问题讨论】:

    标签: python-3.x selenium selenium-webdriver web-scraping


    【解决方案1】:

    我会参考之前的这篇文章,您可能会在其中找到一些有用的解决方法:Chrome Webdriver produces timeout in Selenium

    【讨论】:

    • 该解决方案对我不起作用,我使用的是 Centos 8 而不是 Macbook
    猜你喜欢
    • 1970-01-01
    • 2019-01-31
    • 2018-07-05
    • 1970-01-01
    • 2020-04-25
    • 1970-01-01
    • 2020-07-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多