UP | HOME
Sachin Patil

Sachin

Free Software developer & Emacser

Install Protractor

Published on Mar 06, 2015 by Sachin.

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

    1: cd node
    2: ./configure
    3: make
    4: sudo make install
    
  4. 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