AngularJS Test-driven Development by Tim Chaplin

AngularJS Test-driven Development by Tim Chaplin

Author:Tim Chaplin
Language: eng
Format: mobi, azw3, epub, pdf
Publisher: Packt Publishing
Published: 2015-01-28T22:00:00+00:00


URL location references

When testing AngularJS routes, you need to be able to test the URL of your test. By adding tests around the URL and location, you ensure that the application follows specific routes. This is important because routes provide an interface into your application. Here is how to get the URL reference in a Protractor test:

var location = browser.getLocationAbsUrl();

Now that you have seen how to use the different locators it is time to put the knowledge to use.

Creating a new project



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.