This version of ChromeDriver only supports Chrome version 102

Viewed 21590

I'm using VS Code and Anaconda3. Currently trying to install ChromeDriver_Binary but, when I try to execute code, I get this error:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 102
Current browser version is 100.0.4896.127 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

6 Answers

One option is to use chromedriver-autoinstaller to do it all at once:

import chromedriver_autoinstaller as chromedriver
chromedriver.install()

Alternatively use chromedriver-binary-auto to find the required version and install the driver:

pip install --upgrade --force-reinstall chromedriver-binary-auto
import chromedriver_binary

No restarting is required.

You need to check your current chrome version first, and then download the chrome driver following this version: https://chromedriver.chromium.org/downloads

The point here is that we have to make sure both of chrome version are the same

enter image description here

enter image description here

chrome browser and the chromedriver.exe(Path provided by the project) versions should match to the same version.

please follow the below steps:

1- Delete the current chrome driver from visual studio.

2- Download the latest release of the chrome driver.

3- Add the new chrome drive to the project ( follow below steps) 3.a- Copy the chrome driver to the application path on your pc for example:C:\Users\xxx\source\repos\APPAutomation\APPAutomation
3.b- Select the project in Visual Studio and press on Add – existing item 3.c- Select the chromedriver exe file in Visual Studio. 3.d- Go to the properties of the chrome driver and change the “Copy to Output Directory” to “Copy if newer”

4- End the chrome driver task from task manager (back ground process)

5- Delete the Bin file from the project path

6- Build the project in Visual Studio .

I had the same issue, I'm running MacOS Monterrey. My Chrome version is Version 104.0.5112.79. I was getting the same error as you; This version of ChromeDriver only supports Chrome version 102

What I did was:

  1. Download the version of chromedriver that matched the version of Chrome, in this case 104 https://chromedriver.chromium.org/downloads

  2. Opened the location of chromedriver, it's usually under this path: /usr/local/bin

  • Open Finder.
  • Press Command-Shift-G to open the dialogue box
  • Input the following search: /usr/local/bin
  1. Replaced the previous chromedriver from that location with the new one I just downloaded.
Related