mardi 6 octobre 2015

Protractor - wait after switch to window or iframe

I'm trying to replace 'timeouts' or 'Sleeps' with 'wait' for the test to be faster. I was not able to find the right way to wait for switching to window or iframe that doesn't have identifier.

For example:

browser.sleep(5000);
browser.driver.switchTo().window(handles[0]).then(function() {
    // login.logout();
});

and:

flow.timeout(5000);

browser.switchTo().frame(0);

Aucun commentaire:

Enregistrer un commentaire