Sunday 22 November 2015

Protractor - Installation

Prerequisites:
Node.js and NPM is already installed.
http://automation-home.blogspot.in/2015/05/installing-nodejs-and-npm-on-windows.html

Java JDK installation:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Set the Path for Java JDK
https://docs.oracle.com/javase/tutorial/essential/environment/paths.html
http://www.javatpoint.com/how-to-set-path-in-java

Below steps demonstrates installing and setting up protractor 

Open command prompt and type 'npm install -g protractor'  



Above command(i.e npm install -g protractor) will install two things 
- Protractor and
- webdriver-manager 

Verify 'protractor' is installed properly.
run the command 'protractor --version'


'webdriver-manager' is a helper tool used for downloading the necessary selenium server binaries.
Try to start selenium server with out downloading the 'selenium server' binaries.


Download the selenium server binaries using the command 'webdriver-manager update'.


Start the selelnium server using command 'webdriver-manager start'.



Watch the protractor installation and demo script video at url

No comments:

Post a Comment