![](/uploads/1/2/6/3/126359167/368513330.jpg)
Protractor plays an important role in theof AngularJS applications and works as a Solution integrator combining powerful technologies like Selenium, Jasmine, Web driver, etc. It is intended not only to test AngularJS application but also for writing automated regression tests for normal Web Applications as well.In this beginner's tutorial, you will learn-.Why Do We Need Protractor Framework?JavaScript is used in almost all web applications. As the applications grow,also increases in size and complexity. In such case, it becomes a difficult task for Testers to test the web application for various scenarios.Sometimes it is difficult to capture the web elements in AngularJS applications usingorWebDriver.Protractor is a NodeJS program which is written in JavaScript and runs with Node to identify the web elements in AngularJS applications, and it also uses WebDriver to control the browser with user actions.Ok, fine now let's discuss what exactly is an AngularJS application?AngularJS applications are Web Applications which uses extended HTML's syntax to express web application components. It is mainly used for dynamic web applications. These applications use less and flexible code compared with normal Web Applications.Why can't we find Angular JS web elements using Normal Selenium Web driver?Angular JS applications have some extra HTML attributes like ng-repeater, ng-controller, ng-model., etc.
This substantial title is the official version of the Outsourcing Professional Body of Knowledge by IAOP (International Association of Outsourcing Professionals), in short: OPBOK. This official publication is OPBOK Version 10. This new version has been revised on these points: New appendix on applicable Rules and Regulations applicable to Outsourcing.
![Certified automation professional study guide 2nd edition download Certified automation professional study guide 2nd edition download](/uploads/1/2/6/3/126359167/905698683.gif)
Which are not included in Selenium locators. Selenium is not able to identify those web elements using Selenium code. So, Protractor on the top of Selenium can handle and controls those attributes in Web Applications.The protractor is an end to end testing framework for Angular JS based applications. While most frameworks focus on conducting unit tests for Angular JS applications, Protractor focuses on testing the actual functionality of an application.Before we start Protractor, we need to install the following:. SeleniumYou can find the Selenium Installation steps in the following links, ( ). NPM (Node.js)NodeJS Installation, we need to install NodeJS to install Protractor.
You can find this installation steps in the following link. ( )Protractor InstallationStep 1) Open command prompt and type 'npm install –g protractor' and hit Enter.The above command will download the necessary files and install Protractor on the client system.Step 2) Check the installation and version using ' Protractor -version.' If successful it will show the version as like in below screenshot. If not, perform the step 1 again.(Steps 3 and 4 are Optional but recommended for better practice)Step 3) Update the Web driver manager. The web driver manager is used for running the tests against the angular web application in a specific browser. After Protractor is installed, the web driver manager needs to be updated to the latest version.
This can be done by running the following command in the command prompt.
![](/uploads/1/2/6/3/126359167/368513330.jpg)