How to fix error: E/launcher – session not created: This version of ChromeDriver only supports Chrome version 75
Sometimes while running your Protractor test you get the error ‘E/launcher – session not created: This version of ChromeDriver only supports Chrome version 75’.
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/3770@{#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/3770@{#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)
This issue happens when there is a mismatch between ChromeDriver and Chrome browser version. So you need to update your packages and check if you have the latest Chrome browser installed on your machine.
Solution 01
Step 1) Open the 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.
Solution 02
Step 1) Open the Command prompt or terminal.
Step 2) Go to your project root directory.
Step 3) Clean
webdriver-manager clean
Step 4) Update packages to the latest
webdriver-manager@latest –save
Step 5) Update the package
webdriver-manager update
Step 6) Upgrade Chrome to the latest stable release:
webdriver-manager update –versions.chrome 79.0.3945.88
Run your test again.
You are Done!!!