selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
时间: 2024-02-28 17:07:47 浏览: 22
这个错误提示说明你正在使用的 ChromeDriver 版本只支持 Chrome 112 版本,但是你的 Chrome 浏览器当前版本是 114.0.5735.110,与 ChromeDriver 版本不匹配,导致无法创建会话。解决这个问题的方法是更新 ChromeDriver 版本,使其与当前安装的 Chrome 浏览器版本匹配。你可以在 ChromeDriver 的官方网站上下载最新版的 ChromeDriver,然后替换掉你当前使用的 ChromeDriver。如果你使用的是 Python 的 selenium 库,也可以使用 webdriver_manager 包自动下载并安装匹配当前 Chrome 浏览器版本的 ChromeDriver。
相关问题
selenium.common.exceptions.WebDriverException: Message: session not created: This version of ChromeDriver only supports Chrome version 112
这个错误是由于当前使用的ChromeDriver版本与安装的Chrome浏览器版本不兼容所引起的。ChromeDriver是用于控制和自动化Chrome浏览器的工具。
要解决这个问题,你可以按照以下步骤进行操作:
1. 确认你的Chrome浏览器的版本。你可以在浏览器地址栏中输入"chrome://version"来查看Chrome浏览器的版本号。
2. 下载与你的Chrome浏览器版本匹配的ChromeDriver。你可以在ChromeDriver官方网站(https://sites.google.com/a/chromium.org/chromedriver/downloads)上找到不同版本的ChromeDriver下载链接。
3. 下载后,将ChromeDriver可执行文件放到你的系统路径中,或者将其路径配置到你的代码中。
完成以上步骤后,重新运行你的代码,应该就能够顺利创建会话并启动Chrome浏览器了。
如果还有其他问题,请随时提问!
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
这个错误是由于您的ChromeDriver版本与Chrome浏览器版本不匹配导致的。ChromeDriver只支持特定版本的Chrome浏览器,如果您的Chrome浏览器版本与ChromeDriver版本不匹配,则会出现此错误。
您需要下载与您Chrome浏览器版本匹配的ChromeDriver,然后将其放置在系统路径下,或者在代码中指定ChromeDriver的路径。您可以在ChromeDriver的官方网站上下载您需要的版本。
如果您使用的是Python,可以使用以下代码指定ChromeDriver路径:
```
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
```
其中,`/path/to/chromedriver`是您的ChromeDriver的路径。