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
时间: 2024-02-28 15:04:57 浏览: 207
这个错误是由于您的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的路径。
相关问题
File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 425, in execute self.error_handler.check_response(response) File "D:\python3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112
这个错误提示是因为你安装的 ChromeDriver 版本不支持你的 Chrome 浏览器版本。你需要下载一个与你的 Chrome 浏览器版本相对应的 ChromeDriver 版本。
你可以在 Chrome 浏览器中查看版本号,方法是在浏览器地址栏输入 `chrome://version/`,然后查看浏览器版本号。在下载 ChromeDriver 时,需要选择与你的 Chrome 浏览器版本相对应的版本。
如果你使用的是 Chrome 浏览器最新版本,可以尝试升级 ChromeDriver 到最新版本。你可以在 ChromeDriver 官网(https://sites.google.com/chromium.org/driver/)下载最新版本的 ChromeDriver。
解决一下这个问题Traceback (most recent call last): File "D:\pythonchengxu\untitled12\zuoye.py", line 12, in <module> driver = webdriver.Chrome(options=chrome_options) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__ super().__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 92, in __init__ super().__init__( File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 270, in __init__ self.start_session(capabilities, browser_profile) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 363, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 428, in execute self.error_handler.check_response(response) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response 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 Stacktrace: Backtrace: GetHandleVerifier [0x00B9DCE3+50899] (No symbol) [0x00B2E111] (No symbol) [0x00A35588] (No symbol) [0x00A5570C] (No symbol) [0x00A51471] (No symbol) [0x00A4F479] (No symbol) [0x00A81FFE] (No symbol) [0x00A81CEC] (No symbol) [0x00A7B6F6] (No symbol) [0x00A57708] (No symbol) [0x00A5886D] GetHandleVerifier [0x00E03EAE+2566302] GetHandleVerifier [0x00E392B1+2784417] GetHandleVerifier [0x00E3327C+2759788] GetHandleVerifier [0x00C35740+672048] (No symbol) [0x00B38872] (No symbol) [0x00B341C8] (No symbol) [0x00B342AB] (No symbol) [0x00B271B7] BaseThreadInitThunk [0x76847D59+25] RtlInitializeExceptionChain [0x77B6B74B+107] RtlClearBits [0x77B6B6CF+191]
这个错误是由于你的 ChromeDriver 版本与你的 Chrome 浏览器版本不匹配导致的。你需要下载一个与你当前 Chrome 浏览器版本匹配的 ChromeDriver 版本并更新你的代码。你可以在 ChromeDriver 官网上找到与你的 Chrome 浏览器版本匹配的驱动程序,并将其替换为你当前使用的驱动程序即可。
阅读全文
相关推荐









