Connection refused! Is selenium server started?

When you update your Google Chrome ver­sion and sud­denly when you start run­ning automa­tion you hit the above men­tioned error.

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...