We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d37c16 commit 6885f83Copy full SHA for 6885f83
seleniumbase/utilities/selenium_grid/download_selenium_server.py
@@ -1,6 +1,7 @@
1
""" Downloads the Selenium Server JAR file and renames it. """
2
3
import os
4
+import shutil
5
import sys
6
if sys.version_info[0] == 2:
7
from urllib import urlopen
@@ -45,9 +46,9 @@ def main(force_download=True):
45
46
for filename in os.listdir("."):
47
# If multiple copies exist, keep only the latest and rename it.
48
if filename.startswith("selenium-server-standalone-"):
- os.rename(filename, RENAMED_JAR_FILE)
49
+ shutil.move(filename, RENAMED_JAR_FILE)
50
if FULL_DOWNLOAD_PATH != FULL_EXPECTED_PATH:
- os.rename(RENAMED_JAR_FILE, FULL_EXPECTED_PATH)
51
+ shutil.move(RENAMED_JAR_FILE, FULL_EXPECTED_PATH)
52
print("%s\n" % FULL_EXPECTED_PATH)
53
54
0 commit comments