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
- Download source code of Node.js from
nodejs.org. Debian/Ubuntu user may
use
apt-get
to install Node.js. - Untar using
tar -xvzf node-xxx.tar.gz
- Configure, compile, and install using
cd node
./configure
make
sudo make install
npm
is a package-manager for Node.js. It should installed with Node.js
Now install Protractor using
sudo npm install -g protractor
.-g
will install protractor globally- This will also install
webdriver-manager
. Update webdriver-manager using:webdriver-manager update