Install Protractor

By Sachin
March 6, 2015

Protractor is an unittest framework for AngularJS applications. It is based on Node.js. To install Protractor, you need to install Node.js

To install Node.js

  1. Download source code of Node.js from nodejs.org. Debian/Ubuntu user may use apt-get to install Node.js.
  2. Untar using tar -xvzf node-xxx.tar.gz
  3. Configure, compile, and install using
cd node
./configure
make
sudo make install
  1. npm is a package-manager for Node.js. It should installed with Node.js

Now install Protractor using

  1. sudo npm install -g protractor. -g will install protractor globally
  2. This will also install webdriver-manager. Update webdriver-manager using: webdriver-manager update