Home > Net >  Mismatch between CMD and selenium run
Mismatch between CMD and selenium run

Time:03-15

I am trying to run some classes via CMD with the command : mvn test

When I run it throw the eclipse with testng it's run well.

But when I am trying to run it from CMD I got this message :

session not created: This version of ChromeDriver only supports Chrome version 97
Current browser version is 99.0.4844.51

My chromedriver is :

C:\Program Files\Selenium\ChromeDriver>chromeDriver -v
ChromeDriver 99.0.4844.51

What is the problem ? From where its take the sentence "This version of ChromeDriver only supports Chrome version 97" ? How can I make it works please ?

CodePudding user response:

You need to download ChromeDriver v99

Which you can find here

CodePudding user response:

There can be a different version of the chrome driver (in your case version 97) present in the path or in the same folder. Alternatively, you can pass the full path of chromedriver.exe when you are initializing the driver.

driver = webdriver.Chrome(executable_path=r'C:\Program Files\Selenium\ChromeDriver\chromedriver.exe')

  • Related