Change default timeout values for the Selenium Grid

This commit is contained in:
Michael Mintz 2019-12-02 02:00:53 -05:00
parent beaccc9393
commit ea63de8513
4 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ if [ "$GRID_HUB_VERBOSE_LOGS" == "True" ]; then
fi fi
WEBDRIVER_SERVER_JAR=${DIR}/selenium-server-standalone.jar WEBDRIVER_SERVER_JAR=${DIR}/selenium-server-standalone.jar
WEBDRIVER_HUB_PARAMS="-role hub -timeout 30 -browserTimeout 60 -port 4444" WEBDRIVER_HUB_PARAMS="-role hub -timeout 180 -browserTimeout 75 -port 4444"
WEBDRIVER_HUB_PIDFILE="/tmp/webdriver_hub.pid" WEBDRIVER_HUB_PIDFILE="/tmp/webdriver_hub.pid"
if [ ! -f $WEBDRIVER_SERVER_JAR ]; then if [ ! -f $WEBDRIVER_SERVER_JAR ]; then

View File

@ -79,7 +79,7 @@ def main():
if grid_hub_command == "start" or grid_hub_command == "restart": if grid_hub_command == "start" or grid_hub_command == "restart":
shell_command = ( shell_command = (
"""java -jar %s/selenium-server-standalone.jar -role hub """ """java -jar %s/selenium-server-standalone.jar -role hub """
"""-timeout 30 -browserTimeout 60 -port 4444""" % dir_path) """-timeout 180 -browserTimeout 75 -port 4444""" % dir_path)
print("\nStarting Selenium-WebDriver Grid Hub...\n") print("\nStarting Selenium-WebDriver Grid Hub...\n")
print(shell_command) print(shell_command)
print("") print("")

View File

@ -1 +1 @@
java -jar selenium-server-standalone.jar -role hub -timeout 30 -browserTimeout 60 -port 4444 java -jar selenium-server-standalone.jar -role hub -timeout 180 -browserTimeout 75 -port 4444

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
java -jar selenium-server-standalone.jar -role hub -timeout 30 -browserTimeout 60 -port 4444 java -jar selenium-server-standalone.jar -role hub -timeout 180 -browserTimeout 75 -port 4444