Merge pull request #3999 from vmuzikar/ie-fix

KEYCLOAK-4351 Stabilize TermsAndConditions test in IE
This commit is contained in:
Pavel Drozd 2017-04-04 10:48:22 +02:00 committed by GitHub
commit 30b785c60d

View file

@ -17,6 +17,7 @@
package org.keycloak.testsuite.auth.page.login; package org.keycloak.testsuite.auth.page.login;
import org.keycloak.testsuite.util.UIUtils; import org.keycloak.testsuite.util.UIUtils;
import org.keycloak.testsuite.util.WaitUtils;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.FindBy;
@ -41,9 +42,11 @@ public class TermsAndConditions extends LoginActions {
public void acceptTerms() { public void acceptTerms() {
acceptButton.click(); acceptButton.click();
WaitUtils.waitForPageToLoad(driver);
} }
public void declineTerms() { public void declineTerms() {
declineButton.click(); declineButton.click();
WaitUtils.waitForPageToLoad(driver);
} }
public String getAcceptButtonText() { public String getAcceptButtonText() {