# selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.

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

## Root Cause

Selenium cannot find the ChromeDriver executable. This occurs when ChromeDriver is not installed, not in PATH, or the version is incompatible with the installed Chrome browser.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (98% success)
   ```
   pip install webdriver-manager
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())
   ```
2. **** (90% success)
   ```
   driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
   ```
3. **** (95% success)
   ```
   Check Chrome version: chrome://version/
Download matching ChromeDriver from https://chromedriver.chromium.org/
   ```

## Dead Ends

- **** — If the version is incompatible with Chrome, Selenium will still fail with a different error. (70% fail)
- **** — This relies on PATH and may fail if chromedriver is not installed system-wide. (80% fail)
- **** — Does not solve the missing driver issue and may introduce other incompatibilities. (90% fail)
