All Posts

Install Protractor on Windows

Install Protractor on Windows

In this tutorial, we will learn how to install the Protractor tool on the Windows operating system. Protractor is an end-to-end (e-2-e) test framework. Protractor is a Node.js software package that supports the Jasmine, Mocha, and Cucumber test frameworks.

It is mostly used to test Angular and AngularJS web applications. Protractor runs tests against the web application under test (WAUT) in a real web browser.

Install Protractor

Steps to install Node.js on the Windows operating system:

To install and use the tool, we need to have Node.js installed on the machine. To install Protractor, we can use the npm install command.

The Protractor installation includes the following components:

  • Protractor tool
  • Protractor API
  • webdriver-manager tool

The steps to install Protractor are as follows:

Open a Command prompt.

Issue the following command to install the tool on the machine.

\> npm install protractor

To install the tool globally, use the -g flag as shown below:

\> npm install -g protractor

Install Protractor

Verify the Install

To verify the install, issue the following command. This command prints the protractor version onto the console window.

\> protractor –version

Protractor version Windows

 

That’s it. We have successfully installed the tool on the Windows machine.