Selenium Webdriver - SessionNotCreatedError
I am getting this same identical error please see below for my solution.
Checked in code yesterday, everything ran fine. Fired up a suite this morning and saw exact behavior cocoa is seeing.
Chrome/chromedriver are up to date. Protractor is v2.2 (working on upgrade), Jasmine v2x. Webdriver-manager update shows everything is cool. JDK up to date. The only thing I'm still chasing are the Jasmine-reporters, of which I am using v2x.
EDIT:I just resolved by:
Updating node.js from the msi file (located here: https://nodejs.org/en/)
Running the webmanager update (webdriver-manager update) which pulled down the latest selenium jar and chomedriver.exe
I then ran a test that was failing this morning and it ran successfully, no errors.
Downloading Chromedriver 2.19 is what I needed to do. I was using 2.16 and for some reason webdriver-manager update --chromedriver
wasn't working and said I had the latest version. But apparently not. Thank you @jjj!!
You may need to upgrade chromedriver
. On Mac, this should be as easy as brew upgrade chromedriver
. Otherwise, you can download the latest version and place it in the correct folder for your particular setup.