Table of Contents#
- Understanding the Error
- Common Scenarios Triggering the Error
- Step-by-Step Solutions
- Preventive Measures to Avoid Future Errors
- Conclusion
- References
Understanding the Error#
What Causes the Error?#
ChromeDriver is a separate executable that Selenium WebDriver uses to control Google Chrome. ChromeDriver versions are tightly coupled with specific Chrome browser versions—each ChromeDriver release supports a fixed range of Chrome versions. For example:
- ChromeDriver 2.46 is compatible with Chrome 71, 72, 73, 74, and 75.
- ChromeDriver 76.0.3809.68 is compatible with Chrome 76, and so on.
If your Chrome browser updates to a version outside the supported range of your installed ChromeDriver (e.g., Chrome 76+ with ChromeDriver 2.46), ChromeDriver cannot communicate with the browser, resulting in the error:
session not created: This version of ChromeDriver only supports Chrome version 75
Current browser version is 114.0.5735.199 with binary path [path]
Common Scenarios Triggering the Error#
The error typically occurs in these situations:
- Automatic Chrome Updates: Chrome often updates itself in the background. If Chrome updates to v76+ but your ChromeDriver is still 2.46 (for v71–75), the mismatch occurs.
- Manual ChromeDriver Update: You may have updated ChromeDriver to 2.46 without realizing it only supports Chrome 71–75, while your Chrome is already newer.
- Outdated Automation Scripts: If your Selenium scripts hardcode an older ChromeDriver path, they won’t automatically adapt to newer Chrome versions.
Step-by-Step Solutions#
Method 1: Identify Your Current Chrome and ChromeDriver Versions#
First, confirm the versions of Chrome and ChromeDriver installed on your system.
Check Chrome Browser Version:#
- Open Chrome.
- Click the three dots (⋮) in the top-right corner → Help → About Google Chrome.
- Note the version (e.g., 114.0.5735.199).
Check ChromeDriver Version:#
- Windows: Open Command Prompt and run:
chromedriver --version - macOS/Linux: Open Terminal and run:
chromedriver --version
You’ll see output like:
ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1)
Method 2: Update ChromeDriver to a Compatible Version#
The best solution is to update ChromeDriver to a version that supports your installed Chrome browser.
Step 1: Find the Correct ChromeDriver Version#
ChromeDriver’s official download page lists compatibility. For example:
- Chrome v114 → ChromeDriver v114.x.x.x
- Chrome v112 → ChromeDriver v112.x.x.x
Tip: If your Chrome version is 114.0.5735.199, the first three numbers (114.0.5735) determine the ChromeDriver version to use.
Step 2: Download and Replace ChromeDriver#
-
Go to the ChromeDriver Downloads page.
-
Select the version matching your Chrome browser (e.g., 114.0.5735.90 for Chrome 114).
-
Download the appropriate binary for your OS (Windows, macOS, Linux).
-
Extract the ZIP file to get the
chromedriverexecutable. -
Replace the old ChromeDriver (v2.46) with the new executable in your system’s
PATHor your project directory.- Windows: Save
chromedriver.exetoC:\Program Files\ChromeDriver\and add this folder to yourPATH(Control Panel → System → Advanced System Settings → Environment Variables). - macOS/Linux: Save
chromedriverto/usr/local/bin/(requires sudo privileges) or your project’sdriversfolder.
- Windows: Save
Method 3: Downgrade Chrome to a Compatible Version (Last Resort)#
If updating ChromeDriver isn’t feasible (e.g., due to corporate restrictions), downgrade Chrome to v71–75.
Step 1: Uninstall Current Chrome#
- Windows: Go to Settings → Apps → Apps & features, select “Google Chrome,” and uninstall.
- macOS: Drag Chrome from
Applicationsto the Trash. - Linux: Run
sudo apt remove google-chrome-stable(Debian/Ubuntu) orsudo dnf remove google-chrome-stable(Fedora).
Step 2: Download an Older Chrome Version#
Use a trusted archive to download Chrome 71–75. Avoid untrusted sites to prevent malware. Recommended sources:
Select a version like 75.0.3770.142 (last version supported by ChromeDriver 2.46).
Step 3: Install and Disable Auto-Updates#
Install the older Chrome version. To prevent automatic updates:
- Windows: Go to
C:\Program Files\Google\Update\and renameGoogleUpdate.exetoGoogleUpdate_old.exe. - macOS: Run
defaults write com.google.Keystone.Agent checkInterval 0in Terminal.
Method 4: Use WebDriverManager (Automated Solution)#
For developers, WebDriverManager (by Boni Garcia) automatically downloads and configures the correct ChromeDriver version. It eliminates manual version management.
Step 1: Add WebDriverManager to Your Project#
-
Maven (Java): Add this dependency to
pom.xml:<dependency> <groupId>io.github.bonigarcia</groupId> <artifactId>webdrivermanager</artifactId> <version>5.5.3</version> <!-- Check for the latest version --> </dependency> -
Gradle (Java): Add to
build.gradle:implementation 'io.github.bonigarcia:webdrivermanager:5.5.3' -
Python: Install via pip:
pip install webdriver-manager
Step 2: Update Your Selenium Script#
Use WebDriverManager to initialize ChromeDriver:
Java Example:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class ChromeTest {
public static void main(String[] args) {
// WebDriverManager downloads the correct ChromeDriver
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
}
} Python Example:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get("https://www.google.com") Preventive Measures to Avoid Future Errors#
- Disable Chrome Auto-Updates Temporarily: Pause updates if you need stability for critical projects (Settings → About Chrome → “Pause updates”).
- Use WebDriverManager: Automate ChromeDriver management to avoid version mismatches.
- Check Compatibility Regularly: Refer to the ChromeDriver Release Notes before updating Chrome or ChromeDriver.
- Test in Isolated Environments: Use virtual machines (e.g., VirtualBox) or containers (Docker) to test with specific Chrome/ChromeDriver versions.
Conclusion#
The “Chrome version must be between 71 and 75” error is a common version mismatch issue between Chrome and ChromeDriver 2.46. The best solutions are updating ChromeDriver to a compatible version or using WebDriverManager for automated management. Downgrading Chrome should only be a last resort. By following these steps, you’ll resolve the error and ensure smooth Selenium automation.