protractor-uisref-locator
Adds a locator to a protractor instance that finds elements by their ui-sref
attribute.
Installation
$ npm install protractor-uisref-locator
Usage
{ // Your other stuff. protractor;}
The locator will be available in your specs as by.uiSref(toState)
.
toState
is a String
that represents a ui-router state.
Examples
; elementallby; // Get elements that match the given ui-sref and that are within the element with id='users'.
Tests
Run each command on a separate terminal window.
$ npm run start
$ npm run webdriver
$ npm run test