Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Adding option to configure SEL_BROWSER_TIMEOUT_SECS, fixes #447
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Apr 12, 2018
1 parent 580d32b commit 4884c5d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public class DockerSeleniumStarterRemoteProxy extends DefaultRemoteProxy impleme
private static boolean seleniumWaitForContainer = true;
private static boolean sendAnonymousUsageInfo = false;
private static boolean waitForAvailableNodes = true;
private static String browserTimeout = "16000";
private static TimeZone configuredTimeZone;
private static Dimension configuredScreenSize;
private static String containerName;
Expand Down Expand Up @@ -159,6 +160,8 @@ private static void readConfigurationFromEnvVariables() {
sendAnonymousUsageInfo = env.getBooleanEnvVariable("ZALENIUM_SEND_ANONYMOUS_USAGE_INFO", false);

waitForAvailableNodes = env.getBooleanEnvVariable("WAIT_FOR_AVAILABLE_NODES", true);

browserTimeout = env.getStringEnvVariable("SEL_BROWSER_TIMEOUT_SECS", "16000");
}

/*
Expand Down Expand Up @@ -556,6 +559,7 @@ private Map<String, String> buildEnvVars(TimeZone timeZone, Dimension screenSize
envVars.put("CHROME", "false");
envVars.put("FIREFOX", "false");
envVars.put("SELENIUM_NODE_PARAMS", seleniumNodeParams);
envVars.put("SEL_BROWSER_TIMEOUT_SECS", browserTimeout);
return envVars;
}

Expand Down

0 comments on commit 4884c5d

Please sign in to comment.