Skip to content

Commit 4b0a36d

Browse files
committed
Update output if installing a beta version of chromedriver
1 parent 1cf0133 commit 4b0a36d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,15 @@ def main(override=None):
230230
if get_latest:
231231
p_version = p_version + " " + c2 + "(Latest)" + cr
232232
else:
233-
not_latest = c5 + "(" + c4 + "NOT Latest" + c5 + ")" + cr
233+
n_l_s = "NOT Latest"
234+
try:
235+
int_use_version = int(use_version.split(".")[0])
236+
int_latest_version = int(latest_version.split(".")[0])
237+
if int_use_version > int_latest_version:
238+
n_l_s = "NOT Latest Stable"
239+
except Exception:
240+
pass
241+
not_latest = c5 + "(" + c4 + n_l_s + c5 + ")" + cr
234242
p_version = p_version + " " + not_latest
235243
msg = c2 + "chromedriver version for download" + cr
236244
print("\n*** %s = %s" % (msg, p_version))

0 commit comments

Comments
 (0)