You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would you perform an explicit wait inside your page object, the example would be to create a login function in the page object which would do all of the following:
ptor.driver.findElement(protractor.By.id('username')).sendKeys('Jane');
ptor.driver.findElement(protractor.By.id('password')).sendKeys('1234');
ptor.driver.findElement(protractor.By.id('clickme')).click();
// Login takes some time, so wait until it's done.
// For the test app's login, we know it's done when it redirects to
// index.html.
ptor.wait(function() {
return ptor.driver.getCurrentUrl().then(function(url) {
return /index/.test(url);
});
});
The text was updated successfully, but these errors were encountered:
How would you perform an explicit wait inside your page object, the example would be to create a login function in the page object which would do all of the following:
The text was updated successfully, but these errors were encountered: