Skip to content

Commit 3e83f45

Browse files
committed
Install the latest webdrivers using "seleniumbase install ..."
1 parent 968701b commit 3e83f45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,17 @@ def main():
7171
inner_folder = None
7272

7373
if name == "chromedriver":
74+
latest_version = "2.46"
7475
if "darwin" in sys_plat:
7576
file_name = "chromedriver_mac64.zip"
7677
elif "linux" in sys_plat:
78+
latest_version = "2.40" # Linux machines may need the old driver
7779
file_name = "chromedriver_linux64.zip"
7880
elif "win32" in sys_plat or "win64" in sys_plat or "x64" in sys_plat:
7981
file_name = "chromedriver_win32.zip" # Works for win32 / win_x64
8082
else:
8183
raise Exception("Cannot determine which version of Chromedriver "
8284
"to download!")
83-
latest_version = "2.40"
8485
download_url = ("http://chromedriver.storage.googleapis.com/"
8586
"%s/%s" % (latest_version, file_name))
8687
# Forcing Chromedriver v2.40 for now, even though it's not the latest.
@@ -98,7 +99,7 @@ def main():
9899
"%s/%s" % (latest_version, file_name))
99100
print("Found %s" % download_url)
100101
elif name == "geckodriver" or name == "firefoxdriver":
101-
latest_version = "v0.23.0"
102+
latest_version = "v0.24.0"
102103
if "darwin" in sys_plat:
103104
file_name = "geckodriver-%s-macos.tar.gz" % latest_version
104105
elif "linux" in sys_plat:
@@ -140,7 +141,7 @@ def main():
140141
"%s/%s" % (major_version, file_name))
141142
elif name == "operadriver" or name == "operachromiumdriver":
142143
name = "operadriver"
143-
latest_version = "v.2.37"
144+
latest_version = "v.2.40"
144145
if "darwin" in sys_plat:
145146
file_name = "operadriver_mac64.zip"
146147
platform_code = "mac64"

0 commit comments

Comments
 (0)