What are the differences between using Nightwatch.js vs Protractor

Atav32 picture Atav32 · Dec 4, 2014 · Viewed 15k times · Source

What are the differences? What are the advantages of using one over the other for an Angular project?

Nightwatch.js vs Protractor

Answer

alecxe picture alecxe · Dec 4, 2014

If you are working on an AngularJS project, the choice is simple - Protractor:

  • it is being made specifically for angular apps (though it can be used for non-angular apps also)
    • supports angular-specific locator strategies (like by.model, by.repeater etc)
    • waits for angular to start up during the page load (sync)
  • it is being actively maintained and improved mostly by google developers with a close cooperation with an angular team - this means that protractor follows the angular release cycle and new changes