【发布时间】: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