File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
seleniumbase/utilities/selenium_grid Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ def is_available_locally():
39
39
return os .path .isfile (FULL_EXPECTED_PATH )
40
40
41
41
42
- def main ():
43
- if not is_available_locally ():
42
+ def main (force_download = True ):
43
+ if force_download or not is_available_locally ():
44
44
download_selenium_server ()
45
45
for filename in os .listdir ("." ):
46
46
# If multiple copies exist, keep only the latest and rename it.
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def main():
50
50
file .close ()
51
51
52
52
from seleniumbase .utilities .selenium_grid import download_selenium_server
53
- download_selenium_server .main () # Nothing happens if already exists
53
+ download_selenium_server .main (force_download = False ) # Only runs if needed
54
54
55
55
if "linux" in sys .platform or "darwin" in sys .platform :
56
56
if grid_hub_command == "start" :
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def main():
61
61
file .close ()
62
62
63
63
from seleniumbase .utilities .selenium_grid import download_selenium_server
64
- download_selenium_server .main () # Nothing happens if already exists
64
+ download_selenium_server .main (force_download = False ) # Only runs if needed
65
65
66
66
if "linux" in sys .platform or "darwin" in sys .platform :
67
67
if grid_hub_command == "start" :
You can’t perform that action at this time.
0 commit comments