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
Post a Comment