How to install Protractor | Set up for Protractor | Protractor Tutorials

Set up for Protractor | Protractor Tutorials

Protractor Tutorials. First of all , I recommend you to  check out below post first because you will need to understand npm for the installation of protractor.

How to install NPM package Manager

Use npm to install Protractor globally with:
npm install -g protractor

protractor tutorials

 

This will install two command line tools, protractor and webdriver-manager

protractor tutorial

 

How to check version of installed Protractor?

You can check the version of Protractor by running below command on cmd.

protractor tutorials

 

What is webdriver-manager in Protractor?

The webdriver-manager is a helper tool . It will easily get an instance of a Selenium Server running. Therefore, you will need it.

It would update chrome driver and gecko driver.

protractor tutorial

 

 

protractor tutorial

 

How to start selenium server in protractor?

You can start the selenium server using below command.

protractor tutorial6

As a result, it will start up selenium server.

protractor tutorials

it seems like selenium server is up and running.

Summary

The most noteworthy points are as  follows:

  1. Use npm to install Protractor globally with:

2.  Consequently, this will install two command line tools, protractor and webdriver-manager

3. You can check the version of Protractor by running below command on cmd.

           protractor –version 

4. Furthermore, the webdriver-manager is a helper tool to easily get an instance of a Selenium Server running.

5. You can start the selenium server using below command.
webdriver-manager start

If you like this post , please comment and probably share this post with your friends to help them.

 

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *