Unable to use Protractor webdriver-manager

angularjs, protractor

Solution

webdriver-manager is actually a NodeJS script. Run it using

node webdriver-manager start

Problem

I am trying to start protractor on my local Windows development machine. In an attempt to do so, I am trying to start it from the command-line using the following command: ``` C:\myProject\node_modules\grunt-protractor-runner\node_modules\protractor\bin>webdriver-manager start ``` When that command is run, I get an error that says: ``` 'webdriver-manager' is not recognized as an internal or external command, operable program or batch file. ``` I was confident this was correct though. I'm installing protractor via NPM. My package.json file looks like this: ``` { "name": "MyProject", "version": "0.0.1", "description": "Just the description", "repository": "N/A", "readme":"N/A", "private": true, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "devDependencies": { "grunt-contrib-clean": "~0.5.0", "grunt-contrib-concat": "0.4.0", "grunt-contrib-connect": "0.7.1", "grunt-contrib-copy": "~0.4.1", "grunt-contrib-cssmin": "~0.6.1", "grunt-contrib-htmlmin": "~0.1.3", "grunt-contrib-jshint": "0.9.2", "grunt-contrib-uglify": "~0.2.4", "grunt-contrib-watch": "0.5.x", "grunt-protractor-runner": "0.2.4", "grunt-start-webdriver":"0.0.2", "phantomjs": "1.9.7-3", "selenium-webdriver":"2.41.0", "load-grunt-tasks": "0.2.x", }, "license": "none" } ``` What am I doing wrong? Why can't I get protractor to run? Thank you!

Original source