python
install_error
ai_generated
true
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 121
ID: python/pytest-selenium-webdriver-manager-fail
80%Fix Rate
86%Confidence
0Evidence
2026-01-08First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 4.15.x | active | — | — | — |
| 4.20.x | active | — | — | — |
Root Cause
The installed ChromeDriver version doesn't match the local Chrome browser. This commonly happens after an automatic Chrome update without a corresponding driver update.
generic中文
已安装的 ChromeDriver 版本与本地 Chrome 浏览器不匹配。常见于 Chrome 自动更新但 driver 未同步更新。
Workarounds
-
94% success
from selenium import webdriver from selenium.webdriver.chrome.service import Service # Selenium Manager handles driver download automatically driver = webdriver.Chrome() # no Service path needed
-
90% success
from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
Dead Ends
Common approaches that don't work:
-
70% fail
Works until Chrome auto-updates again; brittle and requires manual re-pinning per machine.
-
80% fail
Headless mode doesn't bypass the version check; the SessionNotCreatedException is raised before browser launch.