Thanks Demetrius.
Here's what I ended up with:
function waitForUrlToChangeTo(urlRegex) {
var currentUrl;
return browser.getCurrentUrl().then(function storeCurrentUrl(url) {
currentUrl = url;
}
).then(function () {
return browser.wait(function () {
return browser.getCurrentUrl().then(function (url) {
return urlRegex.test(url);
});
});
}
);
}
Which is very much like your solution, except that the URL we are waiting
to change to is specified as a regex, which for my use case makes it more
flexible.
Thanks again!
Matt
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.