package org.keycloak.testsuite.adapter.page;

import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;

import static org.keycloak.testsuite.util.WaitUtils.pause;

/**
 * @author mhajas
 */
public abstract class SAMLServletWithLogout extends AbstractPageWithInjectedUrl {

    public void logout() {
        driver.navigate().to(getUriBuilder().queryParam("GLO", "true").build().toASCIIString());
        getUriBuilder().replaceQueryParam("GLO", null);
        pause(300);
    }
}

package org.keycloak.testsuite.adapter.page;

import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;

/**
 * @author mhajas
 */
public abstract class SAMLServletWithLogout extends AbstractPageWithInjectedUrl {

    public void logout() {
        driver.navigate().to(getUriBuilder().queryParam("GLO", "true").build().toASCIIString());
        getUriBuilder().replaceQueryParam("GLO",null);
    }
}

--- 
+++ 
@@ -1,6 +1,8 @@
 package org.keycloak.testsuite.adapter.page;
 
 import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;
+
+import static org.keycloak.testsuite.util.WaitUtils.pause;
 
 /**
  * @author mhajas
@@ -9,6 +11,7 @@
 
     public void logout() {
         driver.navigate().to(getUriBuilder().queryParam("GLO", "true").build().toASCIIString());
-        getUriBuilder().replaceQueryParam("GLO",null);
+        getUriBuilder().replaceQueryParam("GLO", null);
+        pause(300);
     }
 }
Fix timeouts after logout from servlet
