Site icon TestingDocs.com

Fix Error Session not created ChromeDriver

Overview

In this post, we will learn how to fix the error Session not created: This version of ChromeDriver only supports Chrome <version>

 

Error Trace

C:\TestingDocs>selenium-side-runner C:\Users\suri\Desktop\SeleniumIDE\TestingDocs.side
info: Running C:/Users/suri/Desktop/SeleniumIDE/TestingDocs.side

RUNS ./DefaultSuite.test.js

FAIL ./DefaultSuite.test.js7.0.0.1:52211/devtools/browser/01615739-e7b7-4ac1-a781-ede75
● Test suite failed to run

SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 95
Current browser version is 94.0.4606.71 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

at Object.throwDecodedError (../../Users/suri/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/error.js:550:15)
at parseHttpResponse (../../Users/suri/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:560:13)
at Executor.execute (../../Users/suri/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:486:26)

Fixes

The root cause of this error is that the version of Chrome browser doesn’t support the Chrome driver or vice-versa.

#1

Update the Chrome browser on the test machine.

Click the Three dots browser button >> Help >> About Google Chrome

This will check for Google browser updates.

 

#2

Download the suitable Chrome driver that supports the Chrome browser installed on the machine.

Exit mobile version