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:
use grunt-protractor-webdriver, you also need protractor
in your package.json if you don`t installed it as global (-g
)
add this to your package.json
under "devDependencies":
"protractor": "^2.1.0",
"grunt-protractor-webdriver": "^0.2.0",
also look at grunt-protractor-runner it can start protractor from a grunt process without starting the selenium server ( webdriver-manager start
)
to start the selenium server with grunt-protractor-webdriver
add this to your Gruntfile
protractor_webdriver: {
options: {
keepAlive: true
}
}
and add it to a grunt-task
grunt.registerTask('start-selenium-server', ['protractor_webdriver']);