Skip to content

Commit 1cc8c24

Browse files
committed
Update the seleniumbase install script
1 parent ead663c commit 1cc8c24

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
sbase install chromedriver
1414
sbase install geckodriver
1515
sbase install edgedriver
16-
sbase install chromedriver 85.0.4183.87
17-
sbase install chromedriver 85
16+
sbase install chromedriver 87.0.4280.88
17+
sbase install chromedriver 87
1818
sbase install chromedriver latest
1919
sbase install chromedriver -p
2020
sbase install chromedriver latest -p
21-
sbase install edgedriver 86.0.622.69
21+
sbase install edgedriver 87.0.664.66
2222
Output:
2323
Installs the chosen webdriver to seleniumbase/drivers/
2424
(chromedriver is required for Chrome automation)
@@ -43,7 +43,7 @@
4343
LOCAL_PATH = "/usr/local/bin/" # On Mac and Linux systems
4444
DEFAULT_CHROMEDRIVER_VERSION = "2.44" # (Specify "latest" to get the latest)
4545
DEFAULT_GECKODRIVER_VERSION = "v0.28.0"
46-
DEFAULT_EDGEDRIVER_VERSION = "86.0.622.69" # (Looks for LATEST_STABLE first)
46+
DEFAULT_EDGEDRIVER_VERSION = "87.0.664.66" # (Looks for LATEST_STABLE first)
4747
DEFAULT_OPERADRIVER_VERSION = "v.84.0.4147.89"
4848

4949

@@ -118,6 +118,9 @@ def main(override=None):
118118
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
119119
c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
120120
c3 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX
121+
c4 = colorama.Fore.LIGHTRED_EX + colorama.Back.LIGHTWHITE_EX
122+
c5 = colorama.Fore.RED + colorama.Back.LIGHTWHITE_EX
123+
c6 = colorama.Fore.LIGHTYELLOW_EX + colorama.Back.BLUE
121124
cr = colorama.Style.RESET_ALL
122125
if "linux" in sys_plat:
123126
c1 = ''
@@ -185,19 +188,21 @@ def main(override=None):
185188
p_version = use_version
186189
p_version = c3 + use_version + cr
187190
if get_latest:
188-
p_version = p_version + " (Latest)"
191+
p_version = p_version + " " + c2 + "(Latest)" + cr
189192
else:
190-
p_version = p_version + " (NOT Latest)"
193+
not_latest = c5 + "(" + c4 + "NOT Latest" + c5 + ")" + cr
194+
p_version = p_version + " " + not_latest
191195
msg = c2 + "chromedriver version for download" + cr
192196
print("\n*** %s = %s" % (msg, p_version))
193197
else:
194198
raise Exception("Could not find chromedriver to download!\n")
195199
if not get_latest:
196200
to_upgrade = " " + c3 + "To upgrade" + cr
197201
run_this = c3 + "run this" + cr
198-
install_sb = c1 + "seleniumbase install chromedriver latest" + cr
199-
print("\n#%s to the latest version of chromedriver," % to_upgrade)
200-
print('# %s: >>> %s' % (run_this, install_sb))
202+
install_sb = c6 + "sbase install chromedriver latest" + cr
203+
print("\n %s to the latest version of chromedriver," % to_upgrade)
204+
print(' %s: >>> %s' % (run_this, install_sb))
205+
print(' (Requires the latest version of Chrome installed)')
201206
elif name == "geckodriver" or name == "firefoxdriver":
202207
use_version = DEFAULT_GECKODRIVER_VERSION
203208
found_geckodriver = False

0 commit comments

Comments
 (0)