
#Protractor angular install#
Install the command line tools ‘protractor’ and ‘webdriver-manager’ using npm: It uses Jasmine, the framework you use to write AngularJS unit tests, and Javascript, the same language you use to write AngularJS apps.įollow these simple steps, and in minutes, you will have you first Protractor test running:.This way you can set up page objects so tests can manipulate page elements without touching the HTML. Protractor does not execute WebDriver commands until an action is needed (e.g., get, sendKeys, click). This allows you to test Angular-specific elements without any setup effort on your part. It supports Angular-specific locator strategies (e.g., binding, model, repeater) as well as native WebDriver locator strategies (e.g., ID, CSS selector, XPath).Protractor can communicate with your AngularJS app automatically and execute the next step in your test the moment the webpage finishes pending tasks, so you don’t have to worry about waiting for your test and webpage to sync. You don’t need to add waits or sleeps to your test.Here are some of Protractor’s key benefits: Protractor is built on top of WebDriverJS and includes important improvements tailored for AngularJS apps.

It was built by a team in Google and released to open source.

Protractor ( ) is an end-to-end test framework specifically for AngularJS apps. Have you worked with WebDriver but been frustrated with all the waits needed for WebDriver to sync with the website, causing flakes and prolonged test times? If you are working with AngularJS apps, then Protractor is the right tool for you. By Hank Duan, Julie Ralph, and Arif Sukoco in Seattle
