I'm very new to protractor. I am running this in Windows command line.
I followed the this tutorial https://github.com/angular/protractor/blob/master/docs/getting-started.md
I sucessfully run npm install -g protractor
I don't know how to run this node_modules/protractor/bin/install_selenium_standalone
If I run this straight away in command line. I am getting this error 'node_modules\protractor\bin\install_selenium_standalone' is not recognized as an internal or external command, operable program or batch file.
Help me to run this sucessfully. As well as this command ./selenium/start
I am waiting for the prompt response......
Step 1) Open command prompt and type “npm install –g protractor” and hit Enter. The above command will download the necessary files and install Protractor on the client system. Step 2) Check the installation and version using “Protractor –version.” If successful it will show the version as like in below screenshot.
Protractor is an open-source automation testing framework that is written using NodeJS. It offers combined end to end testing for web applications that are built using AngularJS. It supports both Angular and Non-Angular applications.
An alternate solution to the selenium standalone server is to use the binary that protractor gives us:
$ ./node_modules/protractor/bin/webdriver-manager update
This will download the files with selenium and make a start script
$ ./node_modules/protractor/bin/webdriver-manager start
This will start the standalone server.
A great article for Protractor setup and use:
http://www.ng-newsletter.com/posts/practical-protractor.html
Install node first and then use node ./node_modules/protractor/bin/webdriver-manager update
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With