Sometimes while running your Protractor test you get the error ‘E/launcher – session not created: This version of ChromeDriver only supports Chrome version 75’.

[13:25:46] I/launcher – Running 1 instances of WebDriver
[13:25:46] I/direct – Using ChromeDriver directly…
[13:25:47] E/launcher – session not created: This version of ChromeDriver only supports Chrome version 75
(Driver info: chromedriver=75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/[email protected]{#40}),platform=Mac OS X 10.14.4 x86_64)
[13:25:47] E/launcher – SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 75
(Driver info: chromedriver=75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/[email protected]{#40}),platform=Mac OS X 10.14.4 x86_64)
at Object.checkLegacyResponse (/Users/test/Documents/manager_web_test_automation/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/Users/test/Documents/manager_web_test_automation/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/Users/test/Documents/manager_web_test_automation/node_modules/selenium-webdriver/lib/http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.createSession()
at Function.createSession (/Users/test/Documents/manager_web_test_automation/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (/Users/test/Documents/manager_web_test_automation/node_modules/selenium-webdriver/chrome.js:761:15)
at Direct.getNewDriver (/Users/test/Documents/manager_web_test_automation/node_modules/protractor/built/driverProviders/direct.js:77:33)
at Runner.createBrowser (/Users/test/Documents/manager_web_test_automation/node_modules/protractor/built/runner.js:195:43)
at q.then.then (/Users/test/Documents/manager_web_test_automation/node_modules/protractor/built/runner.js:339:29)
at _fulfilled (/Users/test/Documents/manager_web_test_automation/node_modules/q/q.js:834:54)
at /Users/test/Documents/manager_web_test_automation/node_modules/q/q.js:863:30
at Promise.promise.promiseDispatch (/Users/test/Documents/manager_web_test_automation/node_modules/q/q.js:796:13)
at /Users/test/Documents/manager_web_test_automation/node_modules/q/q.js:556:49
at runSingle (/Users/test/Documents/manager_web_test_automation/node_modules/q/q.js:137:13)

Solution:
This issue happens when there is mismatch between ChromeDriver and Chrome browser version. So you need to update your packages and check if you have latest Chrome browser installed on your machine.
Step 1) Open Command prompt or terminal.
Step 2) Go to your project root directory.
Step 3) If you are using npm then run ‘npm update’ and if you are using yarn then run ‘yarn upgrade’.

This command will update all the packages.

Run your test again.

You are Done!!!

Leave a Comment