Book Image

AngularJS Web application development Cookbook

By : Matthew Frisbie
Book Image

AngularJS Web application development Cookbook

By: Matthew Frisbie

Overview of this book

Packed with easy-to-follow recipes, this practical guide will show you how to unleash the full might of the AngularJS framework. Skip straight to practical solutions and quick, functional answers to your problems without hand-holding or slogging through the basics. Avoid antipatterns and pitfalls, and squeeze the maximum amount out of the most powerful parts of the framework, from creating promise-driven applications to building an extensible event bus. Throughout, take advantage of a clear problem-solving approach that offers code samples and explanations of components you should be using in your production applications.
Table of Contents (17 chapters)
AngularJS Web Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding Protractor


Protractor is new to the scene in AngularJS and is intended to fully supplant the now deprecated Angular Scenario Runner.

How it works…

Selenium WebDriver (also referred to as just "WebDriver") is a browser automation tool that provides faculties to script the control of web browsers and the applications that run within them. For the purposes of end-to-end testing, the test runner manifests as three interacting components, as follows:

  • The formal Selenium WebDriver process, which takes the form of a standalone server with the ability to spawn a browser instance and pipe native events into the page

  • The test process, which is a Node.js script that runs and checks all the test files

  • The actual browser instance, which runs the application

Protractor is built on top of WebDriver. It acts as both an extension of WebDriver and also provides supporting software utilities to make end-to-end testing easier. Protractor includes the webdriver-manager binary, which exists to make the...