Home > Net >  This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45
This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45

Time:12-05

from selenium import webdriver
from time import sleep

class instagrambot:

    def __init__(self):
        self.driver = webdriver.Chrome()
        self.driver.get("https://www.instagram.com/")

instagrambot()

Error : This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path

CodePudding user response:

This mean that you have different versions of Chrome Browser and Chrome Driver. Make sure you've installed the right version

check browser v.: chrome://settings/help

check webdriver v.: https://chromedriver.chromium.org/downloads

CodePudding user response:

This error message...

Error : This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path

...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.

Your main issue is the incompatibility between the version of the binaries you are using as follows:

  • You are using chrome=96.0.4664.45
  • Release Notes of ChromeDriver v96.0 clearly mentions the following :

Supports Chrome version 96

  • But you are using chromedriver=97.0
  • Release Notes of chromedriver=97.0 clearly mentions the following :

Supports Chrome version 97

So there is a clear mismatch between chromedriver=97.0 and the chrome=96.0


Solution

Ensure that:

  • Related