Skip to content
Latchkey

Selenium "SessionNotCreatedException: only supports Chrome version X" in CI

ChromeDriver checks the major version of the Chrome it drives at session start. When the driver was built for a different major version than the browser on the runner, it refuses to start and raises SessionNotCreatedException.

What this error means

A test fails at driver startup with "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version X" followed by "Current browser version is Y".

selenium
selenium.common.exceptions.SessionNotCreatedException: Message: session not created:
This version of ChromeDriver only supports Chrome version 114
Current browser version is 126.0.6478.126 with binary path /usr/bin/google-chrome

Common causes

A pinned ChromeDriver lags the auto-updated Chrome

The runner image updated Chrome to a new major version, but the ChromeDriver pinned in the job (or cached from a previous run) is still the old major version.

Driver and browser come from different sources

Chrome is installed by the base image while ChromeDriver is fetched separately, so the two drift apart whenever one updates and the other does not.

How to fix it

Let Selenium Manager pick the matching driver

  1. Upgrade to Selenium 4.6 or newer, which bundles Selenium Manager.
  2. Stop pinning a ChromeDriver path so Selenium resolves the driver for the installed Chrome.
  3. Re-run; Selenium Manager downloads the driver whose major version matches the browser.
Terminal
pip install -U "selenium>=4.6"
# remove any explicit Service(executable_path=...) so Selenium Manager resolves it

Pin both Chrome and ChromeDriver to the same major

If you manage the driver yourself, install Chrome and ChromeDriver from the Chrome for Testing endpoints at the same version so the majors always match.

.github/workflows/ci.yml
- uses: browser-actions/setup-chrome@v1
  with:
    chrome-version: '126'
    install-chromedriver: true

How to prevent it

  • Use Selenium Manager (Selenium 4.6+) instead of a hand-pinned driver path.
  • Source Chrome and ChromeDriver from Chrome for Testing at one version.
  • Do not cache the ChromeDriver binary across runs where Chrome auto-updates.

Frequently asked questions

What causes ""only supports Chrome version X""?
The runner image updated Chrome to a new major version, but the ChromeDriver pinned in the job (or cached from a previous run) is still the old major version.
How do I fix "only supports Chrome version X"?
Let Selenium Manager pick the matching driver

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card