$ npm install -g protractor # installs Protractor
$ webdriver-manager update # downloads Selenium and Chrome
$ webdriver-manager start # start Selenium server
Create a new text file and name it conf.js. Use the address outputted on previous step and add the name of the spec file.
// conf.js content
exports.config = {
seleniumAddress:
'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
Our conf.js will tell Protractor which server to run the specs against, and where our specs are. To run it, you just need to point protractor to this configuration file:
$ protractor conf.js