User Agents

Web browsers and everyday web tech, explained

ChromeDriver Version Compatibility Guide

· 4 min read · Browsers

In this article
  1. How Version Matching Works
  2. The Shift to Chrome for Testing (CfT)
  3. How to Find Your Current Chrome Version
  4. Methods for Choosing and Installing the Right Driver
  5. Common Compatibility Problems
  6. Alternatives to Manual Version Management
  7. Frequently Asked Questions

ChromeDriver versions must match the major version of the Google Chrome browser installed on your system to function correctly. For example, if you are using Chrome version 125, you must use ChromeDriver version 125 to ensure the driver can communicate with the browser's internal API.

How Version Matching Works

ChromeDriver acts as a bridge between your automation scripts (written in languages like Python, Java, or C#) and the Chrome browser. It uses the Chrome DevTools Protocol to send commands to the browser. Because Google frequently updates the Chrome browser to patch security vulnerabilities and add features, the underlying protocol and browser internals change. If the ChromeDriver version is too old or too new relative to the browser, the communication link breaks, resulting in a "SessionNotCreatedException" or a version mismatch error.

The Shift to Chrome for Testing (CfT)

Historically, users had to manually visit a download page to find the specific driver version that matched their browser. However, starting with Chrome version 115, Google introduced a new infrastructure called "Chrome for Testing." This change was implemented to solve the common problem where Chrome would auto-update in the background, instantly breaking the automation setup by making the existing ChromeDriver obsolete.

Under the new system, Google provides a dedicated dashboard and API for downloading specific versions of both the browser and the driver. This allows developers to pin their environment to a specific version of Chrome that does not auto-update, ensuring that the ChromeDriver remains compatible indefinitely until the developer chooses to upgrade.

How to Find Your Current Chrome Version

Before downloading a driver, you must identify the exact version of the browser currently running on your machine. Follow these steps:

  1. Open the Google Chrome browser.
  2. Click on the three vertical dots (menu) in the top-right corner of the window.
  3. Hover over "Help" and select "About Google Chrome."
  4. The version number will be displayed prominently (e.g., Version 126.0.6478.127).

For compatibility purposes, you only need to focus on the first number (the major version). In the example above, the major version is 126.

Methods for Choosing and Installing the Right Driver

Depending on your technical needs and the scale of your project, there are three primary ways to handle ChromeDriver compatibility:

  • Manual Download: For versions 114 and older, users visit the legacy ChromeDriver storage. For version 115 and newer, users use the Chrome for Testing (CfT) availability dashboard. This is suitable for simple, one-off scripts.
  • WebDriver Manager Libraries: Many developers use libraries like webdriver-manager for Python or Java. These libraries automatically check the installed browser version and download the matching ChromeDriver binary into a local cache at runtime.
  • Chrome for Testing Binaries: For professional CI/CD pipelines, developers download a specific version of the browser and driver together. This prevents the browser from auto-updating and breaking the build.

Common Compatibility Problems

Even when versions seem to match, certain issues can arise that mimic version mismatch errors. Understanding these can save significant debugging time:

  • Auto-Update Lag: Chrome often updates in the background. You might have downloaded ChromeDriver 126, but Chrome updated to 127 while the browser was open. A restart of the browser is often required to see the new version.
  • Path Configuration: If you have multiple versions of ChromeDriver on your system, the operating system may be calling an older version from the System PATH regardless of which one you recently downloaded.
  • Architecture Mismatch: Downloading a 32-bit driver for a 64-bit browser (or vice versa) can cause the driver to fail, even if the version numbers match.

Alternatives to Manual Version Management

Managing versions manually is tedious and error-prone. Several alternatives exist to streamline the process:

  • Selenium Manager: Recent versions of Selenium (v4.6.0 and later) include a built-in tool called Selenium Manager. It automatically detects the browser version and manages the driver download without requiring external libraries.
  • Docker Containers: Using a Docker image (such as those provided by Selenium Grid) ensures that the browser and driver are pre-installed in a compatible pair, eliminating the "it works on my machine" problem.
  • Headless Browsers: For some tasks, using a browser that doesn't require a separate driver binary or has a more stable API can reduce the maintenance overhead.

Frequently Asked Questions

Can I use a ChromeDriver version that is one version newer than my browser?

Generally, no. ChromeDriver is designed to be strictly compatible with the major version of the browser. While minor patches might occasionally work, using a different major version usually results in a failure to launch the session.

Why does my script stop working every few weeks?

This is almost always due to Chrome's auto-update feature. When Chrome updates to a new major version, your existing ChromeDriver becomes incompatible. You must either update the driver or use a non-updating version of Chrome for Testing.

Where do I download ChromeDriver for versions 115 and above?

Versions 115 and newer are hosted on the Chrome for Testing (CfT) availability dashboard. You can find the JSON endpoints or the web UI to download the specific binary for your operating system and version.

Does ChromeDriver work with Chromium?

Yes, ChromeDriver is compatible with Chromium because Chrome is built on the Chromium open-source project. However, the version numbers must still match between the Chromium build and the driver version.

Do I need to update ChromeDriver every time Chrome has a small update?

No. You only need to update the driver when the major version number (the first number) changes. Small updates (the second, third, and fourth numbers) typically do not break the driver's compatibility.