Error retrieving a new session from the selenium server

This is a generic error, there could be many sit­u­a­tions which could lead to this.

For me, when I updated my Google Chrome and sud­denly my automa­tion I hit this error. Here is how I solved it.

Solu­tion

  • Get the lat­est chromedriver (https://sites.google.com/a/chromium.org/chromedriver/)

  • Make sure your automa­tion frame­work uses the lat­est chromedriver


For projects using node.js, nightwatch.js, run­ning on Mac OS use the fol­low­ing steps

  • Update the package.json
  • npm update

Replace

/<PWD>/node_modules/chromedriver/bin/chromedriver 

With

/<PWD>/node_modules/chromedriver/lib/chromedriver/chromedriver

You may also like...