'This version of ChromeDriver only supports Chrome version 102

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



Solution 1:[1]

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.

Solution 2:[2]

I fixed it, by updating chrome to version 101, downloading chromedriver from https://chromedriver.chromium.org/downloads and rebooting.

Solution 3:[3]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2
Solution 3 Chandrika DS