I am trying to get Protractor up and running following the official Getting Started Guide.
The command
webdriver-manager start
seem
I had a similar problem in my environment (Mac OS X 10.8.5).
After struggling it for more than an hour, I finally installed the older version (1.4.0) of the protractor and it works very fine.
npm install -g protractor@1.4.0
If you would use grunt task grunt-protractor-webdriver, you should use the version 0.1.9 which is working properly in my env. Its 0.2.0 version doesn't work for me. thanks.
This is happening because of the latest update for chromedriver. If you are using protractor, then a easy way to fix the problem is just run this
webdriver-manager update
Its working fine for me now.
I encountered a problem with not being able to run my protractor tests, after updating MacOSX to el Capitan.
I was able to solve the problem by re-installing the chromedriver on the system. Try running "sudo npm install chromedriver" from your console. This solved the problem for me.
I ran into the same issue when building/testing the same tutorial. In the project selenium folder I had chromedriver_2.13.zip, but no chromedriver exec file. I tried unzipping it directly, but no joy.
So I installed protractor globally using sudo npm install -g protractor
, which installs the files at usr/local/lib/node_modules/protractor/selenium/ (on a Mac). In that folder the chromedriver executable did exist, so I copy/pasted into the project selenium folder and now protractor runs as expected using the npm run protractor
command from inside the project folder.
I had the problem on my Mac. I solved it by:
Downloading the latest chromedriver manually. Copying it to the desired location (protactor/selenium/). Try again - worked
For Mac users:
Under the 'angular-phonecat' folder, run npm install chromedriver
. This will install the chrome driver into the folder node_modules/chromedriver
. After this, you should modify the test/protractor-conf.js
, pointing it to the new chromedriver folder, by adding this line:
chromeDriver:'../node_modules/chromedriver/bin/chromedriver',
Finally, you will run successfully the command npm run protractor
(don't forget that npm start
should be run first).