Search code examples
javascriptangularjsselenium-webdriverprotractor

Protractor for testing AngularJS


Protractor is an end-to-end test framework for Angular applications built on top of WebDriverJS.

I am new to the field of web testing, and I am trying to figure out what are the advantages of using Protractor, instead of using directly WebDriverJs. What is the added value of Protractor?


Solution

  • The added value of Protractor is that Protractor knows about Angular. This has some advantages like:

    • You do not have to build in wait statements to wait for Angular processing because Protractor knows when Angular is still busy and waits for it.
    • You can add extra selectors on things like Angular bindings, Angular repeaters, etc.