protractor: finding an url which is present for milliseconds only -


if click on signout-button there first pagea, second pageb , third page again. want eliminate first 2 steps , show pagea only. , test protractor. test negatively - first have test positively. have function test url, didn't react. put directly code:

 signoutbutton.click().then(function () {     browser.wait(function () {      browser.getcurrenturl().then((url) => {        ... evaluating or        console.log(url);      });     }, 2000);

if so, once page b found, in other runs not. although have tell protractor wait something, in case quick find pageb? how can detect short moment of pageb (which visually see on screen)?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -