Fix Error Session not created ChromeDriver [ 2024 ]
Fix Error Session not created ChromeDriver
In this post, we will learn how to fix the error Session not created: This version of ChromeDriver only supports Chrome <version>
Error Trace
The following error trace will be displayed while running the tests:
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. The browser version should match with suitable Chrome driver used for testing.
To determine which versions of Chrome and ChromeDriver are supported, you can follow the below steps:
Check ChromeDriver Documentation for supported Chrome browser versions.
Visit the ChromeDriver official site. There, you’ll find a “Version Selection” section or release notes detailing the compatibility of ChromeDriver with various versions of Chrome.
Check Chrome Version:
Open Chrome and navigate to chrome://settings/help to see the version of Chrome you are using.
Compare and match both the versions.
Match the version of ChromeDriver with your Chrome version based on the information provided on the ChromeDriver site.
#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.
Selenium Tutorials
Selenium Tutorials on this website:
Official Website: