From d3769caaac700afde7463a5f31aa59412323ed92 Mon Sep 17 00:00:00 2001 From: Vaclav Muzikar Date: Wed, 10 Feb 2016 11:31:15 +0100 Subject: [PATCH] Add wait for body to AbstractPage.navigateTo (cherry picked from commit aba731b) --- .../main/java/org/keycloak/testsuite/page/AbstractPage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/page/AbstractPage.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/page/AbstractPage.java index 707f1f76e0..7af2375475 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/page/AbstractPage.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/page/AbstractPage.java @@ -24,6 +24,9 @@ import javax.ws.rs.core.UriBuilder; import org.jboss.arquillian.drone.api.annotation.Drone; import org.jboss.logging.Logger; import static org.keycloak.testsuite.util.WaitUtils.pause; +import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement; + +import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; /** @@ -90,6 +93,7 @@ public abstract class AbstractPage { log.info("navigating to " + uri); driver.navigate().to(uri); pause(300); // this is needed for FF for some reason + waitUntilElement(By.tagName("body")).is().visible(); log.info("current URL: " + driver.getCurrentUrl()); }