Error retrieving a new session from the selenium server
This is a generic error, there could be many situations which could lead to this.
For me, when I updated my Google Chrome and suddenly my automation I hit this error. Here is how I solved it.
- Get the latest chromedriver (https://sites.google.com/a/chromium.org/chromedriver/)
Make sure your automation framework uses the latest chromedriver
For projects using node.js, nightwatch.js, running on Mac OS use the following steps
- Update the package.json
- npm update