Spread the love

Step 1) Go to URL https://nodejs.org/en/download/
You will find Windows installer (.msi ) for the installation of node.js.

Step 2) Click on 32 bit OR 64 bit depending on your machine configuration and save .msi file at some location in your machine.

Step 3) Now, double click on saved .msi file and click on RUN button.

protractor tutorial erostrum

Step 4 ) After clicking on Run button, you will get Node.js Setup wizard. You need to select “Node.js runtime” and click on Next button.

protractor tutorials erostrumStep 5) Ready to install Node.js window will appear . Now click on “Install” button.
It will trigger installation as shown below:

protractor tutorials erostrumStep 6 ) Node.js has been successfully installed. You will get the below window after installation. You just need to click on “Finish” button.

protractor tutorials erostrum

That’s it folks!

 

What is Protractor?

Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.

Protractor installation ?

You can use npm to install Protractor globally with:

npm install -g protractor

This will install two command line tools, protractor and webdriver-manager.

How to check version of Protractor?

You can use below command:

protractor --version

What is Webdriver-manager in Protractor?

The webdriver-manager is a helper tool to easily get an instance of a Selenium Server running. Use it to download the necessary binaries with:

webdriver-manager update

How to start Selenium Server in Protractor?

Now start up a server with:

webdriver-manager start

This will start up a Selenium Server and will output a bunch of info logs. Your Protractor test will send requests to this server to control a local browser. You can see information about the status of the server at http://localhost:4444/wd/hub.

That’s it folks!

If you’ve any questions, please comment in the post.

Keep learning!!


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *