mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
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:
+3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user