Selenium:新的Chrome版本113.0.5672.64驱动程序无法启动

liwlm1x9  于 2023-06-03  发布在  Go
关注(0)|答案(1)|浏览(340)

我在Jupiter notebook(Python)中使用selenium和chrome驱动程序进行了webscrape。使用新的chrome版本(113.0.5672.64)时,驱动程序无法启动。我有113.0.5672.63 Chrome驱动程序版本。它抱怨文件夹Application/113.0.5672.63中缺少chrome_elf.dll。(使用chrome浏览器手动工作正常)。
我该怎么弥补?我真的需要让刮刀重新运转起来。任何帮助将不胜感激!!
我已经卸载并重新安装了chrome,但这并没有帮助。我也删除并重新下载了Chrome驱动程序。

zdwk9cvp

zdwk9cvp1#

我开始看到类似的错误:

Incompatible release of chromedriver (version 113.0.5672.63) detected in PATH: /usr/bin/chromedriver

...

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 113.0.5672.0 with binary path /usr/bin/chromium

以下帮助了我:

from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager(version="113.0.5672.24").install(), options=chrome_options)

相关问题