[grid] Allowing more than one IE session
Fixes
private static final ImmutableCapabilities CURRENT_PLATFORM =
new ImmutableCapabilities("platformName", Platform.getCurrent());
private static final ImmutableSet<String>
- ONE_SESSION_DRIVERS = ImmutableSet.of("safari", "internet explorer");
+ ONE_SESSION_DRIVERS = ImmutableSet.of("safari", "safari technology preview");
private final Config config;
@@ -134,8 +134,10 @@ public Duration getHeartbeatPeriod() {
"Overriding max recommended number of {0} concurrent sessions. "
+ "Session stability and reliability might suffer!",
DEFAULT_MAX_SESSIONS);
- LOG.warning("One browser session is recommended per available processor. IE and "
- + "Safari are always limited to 1 session per host.");
+ LOG.warning("One browser session is recommended per available processor. "
+ + "Safari is always limited to 1 session per host.");
+ LOG.warning("Overriding this value for Internet Explorer is not recommended. "
+ + "Issues related to parallel testing with Internet Explored won't be accepted.");
LOG.warning("Double check if enabling 'override-max-sessions' is really needed");
}
int maxSessions = getMaxSessions();
@@ -454,7 +456,7 @@ public int getMaximumSimultaneousSessions() {
}
private int getDriverMaxSessions(WebDriverInfo info, int desiredMaxSessions) {
- // IE and Safari
+ // Safari and Safari Technology Preview
if (info.getMaximumSimultaneousSessions() == 1 &&
ONE_SESSION_DRIVERS.contains(info.getDisplayName().toLowerCase())) {
return info.getMaximumSimultaneousSessions();
