Skip to content

Commit

Permalink
[grid] Switching Selenium Manager flag to false by default
Browse files Browse the repository at this point in the history
Related to #11697
  • Loading branch information
diemol committed Feb 22, 2023
1 parent 1563e8a commit c79cab5
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class NodeOptions {
public static final boolean DEFAULT_ENABLE_BIDI = true;
static final String NODE_SECTION = "node";
static final boolean DEFAULT_DETECT_DRIVERS = true;
static final boolean DEFAULT_USE_SELENIUM_MANAGER = true;
static final boolean DEFAULT_USE_SELENIUM_MANAGER = false;
static final boolean OVERRIDE_MAX_SESSIONS = false;
static final String DEFAULT_VNC_ENV_VAR = "SE_START_XVFB";
static final int DEFAULT_NO_VNC_PORT = 7900;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.openqa.selenium.grid.gridui;

import com.google.common.collect.ImmutableMap;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -112,7 +113,8 @@ private Server<?> createStandalone() {
Config config = new MemoizedConfig(
new MapConfig(ImmutableMap.of(
"server", Collections.singletonMap("port", port),
"node", Collections.singletonMap("detect-drivers", true))));
"node", ImmutableMap.of("detect-drivers", true, "selenium-manager", true)
)));

Server<?> server = new Standalone().asServer(config).start();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

package org.openqa.selenium.grid.router;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assumptions.assumeThat;

import com.google.common.collect.ImmutableMap;

import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -49,6 +46,9 @@
import java.util.Map;
import java.util.Objects;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assumptions.assumeThat;

class DistributedCdpTest {

@BeforeAll
Expand All @@ -66,6 +66,7 @@ void ensureBasicFunctionality() {
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"selenium-manager = true\n" +
"driver-implementation = " + browser.displayName())));

Server<?> server = new NettyServer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package org.openqa.selenium.grid.router;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
Expand Down Expand Up @@ -48,6 +46,8 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

class RemoteWebDriverBiDiTest {

@Test
Expand All @@ -58,6 +58,7 @@ void ensureBiDiSessionCreation() {
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"selenium-manager = true\n" +
"driver-implementation = " + browser.displayName())));

FirefoxOptions options = new FirefoxOptions();
Expand All @@ -83,6 +84,7 @@ void canListenToLogs() throws ExecutionException, InterruptedException, TimeoutE
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"selenium-manager = true\n" +
"driver-implementation = " + browser.displayName())));

FirefoxOptions options = new FirefoxOptions();
Expand Down Expand Up @@ -123,6 +125,7 @@ void canNavigateToUrl() throws ExecutionException, InterruptedException, Timeout
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"selenium-manager = true\n" +
"driver-implementation = " + browser.displayName())));

FirefoxOptions options = new FirefoxOptions();
Expand Down
1 change: 1 addition & 0 deletions java/test/org/openqa/selenium/grid/router/StressTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void setupServers() {
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"selenium-manager = true\n" +
"driver-implementation = " + browser.displayName())));
tearDowns.add(deployment);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private synchronized void startServer() {
if (started) {
return;
}
server.start("standalone");
server.start("standalone", "--selenium-manager", "true");
started = true;
}
}

0 comments on commit c79cab5

Please sign in to comment.