Added functions for AngularJS E2E testing