Bug 4693: Fixed cookie handling for multi window setup. Dependent on the

browser it was possible that the session cookie could not be set due to
origin problems.
This commit is contained in:
Steffen Schaefer
2018-07-31 13:30:19 +02:00
parent d39b0ddd3a
commit 158df922a7
@@ -109,6 +109,9 @@ public abstract class AbstractSeleniumTest {
}
protected void setUpAuthenticatedSession() {
// To be able to set a cookie we need to load a page having the target origin
getWebDriver().get(getContextRoot());
logger.info("Authenticating session...");
Cookie sessionCookie = authenticate(getContextRoot());
getWebDriver().get(getContextRoot() + "index.html"); // initialize web driver so setting a cookie for the local domain is possible