Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Next.js and React

Selenium stops because chromedriver was built for another Chrome version

Your error

session not created: This version of ChromeDriver only supports Chrome version 1132 more lines it can show

Fix it fast

Most common cause, 1 of 3

An old chromedriver on PATH is used instead of a managed one

Delete the hand-installed driver (or take its folder off PATH) and stop passing a driver path in code.

Fix
from selenium import webdriver

driver = webdriver.Chrome()   # no Service(executable_path=...) needed
print(driver.capabilities["browserVersion"])
driver.quit()
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

session not created: This version of ChromeDriver only supports Chrome version N means the chromedriver Selenium started has a different major version than installed Chrome. Usual reasons: an old driver on PATH, a script using the pre-115 download location, or a Beta-channel driver. Remove the hand-installed driver and let Selenium Manager (Selenium 4.6+) pick one from Chrome for Testing.

  • Applies to Selenium 4.53 (Python and JavaScript bindings), Chrome 158 stable, Chrome for Testing endpoints
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Compare the browser's major version with every chromedriver the shell can find. A driver on PATH with a different first number points to cause 1. No driver on PATH, but a download script or helper in the project, points to cause 2. A driver newer than Chrome points to cause 3.

Run this first
google-chrome --version   # macOS: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version
which -a chromedriver     # Windows: where chromedriver
chromedriver --version

Then find the line you see in this list and open its fix:

  1. 1An old chromedriver on PATH is used instead of a managed onewhich -a chromedriver prints a path, and that driver's major version is lower than Chrome's; or the driver log says it has not been tested with your Chrome version before a command fails with the webdriverValue error
  2. 2A download script still looks where drivers stopped being publishedThe project has its own download step or an old driver helper, and the driver it installs is 114 or older while Chrome is far newer
  3. 3The driver came from the Beta, Dev or Canary row of the dashboardchromedriver --version is one or more majors above the installed Chrome

What does the error look like?

  • session not created: This version of ChromeDriver only supports Chrome version 113
  • session not created: This version of ChromeDriver only supports Chrome version 114
  • unknown error: result.webdriverValue.value list is missing or empty in Runtime.callFunctionOn response

Cause 1 of 3

An old chromedriver on PATH is used instead of a managed one

You seewhich -a chromedriver prints a path, and that driver's major version is lower than Chrome's; or the driver log says it has not been tested with your Chrome version before a command fails with the webdriverValue error

Check

Chrome updates itself, while a chromedriver copied into PATH stays at the version it had on the day you downloaded it. Selenium Manager only steps in when no driver is supplied, so the stale file keeps winning and the session fails with the only supports Chrome version message. A driver just one major behind may still open the browser, warn that it was not tested with that Chrome, and break on a later command with result.webdriverValue.value list is missing or empty. On the Selenium issue for that error, a maintainer pointed at a ChromeDriver 118 on PATH while Chrome was at 119, and the reporter cleared it by updating the driver.

Check
chromedriver --version

Fix

Delete the hand-installed driver (or take its folder off PATH) and stop passing a driver path in code. Selenium Manager then reads the installed Chrome version, downloads the matching driver from Chrome for Testing and caches it in ~/.cache/selenium. If you cannot touch PATH, SE_SKIP_DRIVER_IN_PATH=true tells Selenium Manager to ignore drivers found there.

Fix
from selenium import webdriver

driver = webdriver.Chrome()   # no Service(executable_path=...) needed
print(driver.capabilities["browserVersion"])
driver.quit()

Verify

The script opens Chrome, and ~/.cache/selenium/chromedriver now holds a folder named after a version whose major matches your Chrome.

Verify
ls ~/.cache/selenium/chromedriver/*/

Confirmed by selenium.dev

Did this fix it?

Cause 2 of 3

A download script still looks where drivers stopped being published

You seeThe project has its own download step or an old driver helper, and the driver it installs is 114 or older while Chrome is far newer

Check

For Chrome 115 and newer, ChromeDriver is published through the Chrome for Testing dashboard and its JSON endpoints, not in the earlier download list. Tooling written for that earlier list cannot find a driver for current Chrome and leaves an outdated one in place.

Check
grep -rn "chromedriver" Dockerfile* *.sh .github 2>/dev/null

Fix

Point the script at Chrome for Testing: ask LATEST_RELEASE_<major> for the full version, then download that version's chromedriver archive for your platform. Or drop the script and let Selenium Manager do the same lookup.

Fix
MAJOR=$(google-chrome --version | grep -oE '[0-9]+' | head -1)
VER=$(curl -s "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${MAJOR}")
curl -LO "https://storage.googleapis.com/chrome-for-testing-public/${VER}/linux64/chromedriver-linux64.zip"
unzip -o chromedriver-linux64.zip

Verify

The new driver reports the same major version as Chrome.

Verify
./chromedriver-linux64/chromedriver --version

Confirmed by developer.chrome.com

Did this fix it?

Cause 3 of 3

The driver came from the Beta, Dev or Canary row of the dashboard

You seechromedriver --version is one or more majors above the installed Chrome

Check

The availability dashboard lists one build per channel: Stable, Beta, Dev and Canary. Beta is the release after Stable, so its driver belongs to a Chrome your machine does not run yet, and Dev and Canary sit further ahead. Taking the top or newest row is how a driver ends up newer than the browser.

Check
curl -s https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE

Fix

Choose the driver by milestone instead. LATEST_RELEASE_<major> answers which build is newest within your Chrome's major version; the matching archive URL is also listed in latest-versions-per-milestone-with-downloads.json.

Fix
curl -s https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_158

Verify

Download that version's driver and start a session. Chrome opens, and the driver and browser report the same major.

Verify
chromedriver --version && google-chrome --version

Confirmed by raw.githubusercontent.com

Did this fix it?

How do I stop it coming back?

  • Keep no chromedriver binary in the repository, the image or PATH unless you also pin the Chrome build next to it.
  • In CI, print the Chrome and chromedriver versions as the first step of the test job so a mismatch shows before any test runs.
  • If you pin versions, read them from the per-milestone endpoint, never from a channel label.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine on the same stack: stegnor.com, Menulo, ShopGo.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.