# selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 120
Current browser version is 124.0.6367.78

- **ID:** `python/pytest-selenium-webdriver-not-found`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

ChromeDriver binary version does not match the installed Chrome browser version. Selenium 4.x auto-manages drivers via Selenium Manager, but a stale chromedriver on PATH takes precedence and causes the mismatch.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 4.18 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   which chromedriver && sudo rm $(which chromedriver)
pytest tests/e2e/ -v
# Selenium Manager downloads the correct driver on first run
   ```
2. **** (90% success)
   ```
   # Dockerfile
RUN apt-get install -y google-chrome-stable=124.* 
# or use selenium/standalone-chrome:124.0 image
# pytest with RemoteWebDriver pointing to the container
   ```

## Dead Ends

- **** — Security risk and often blocked by corporate IT; also brittle since Chrome auto-updates. (85% fail)
- **** — Headless still launches a real Chrome binary; the version check happens before mode selection. (90% fail)
