UIVeri5 API cheatsheet
it uses protractor beneath, so this is a good resource: http://angular.github.io/protractor/#/api
Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure.
Promises are resolved by WebdriverJS promise manager . If you want to schedule non-api made promise into the chain, you have to use one of: