Skip to content

Commit e1c692b

Browse files
committed
Auto-upgrade chromedriver on "version must be between"
1 parent 9928c23 commit e1c692b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,8 @@ def get_local_driver(
15031503
auto_upgrade_chromedriver = False
15041504
if "This version of ChromeDriver only supports" in e.msg:
15051505
auto_upgrade_chromedriver = True
1506+
elif "Chrome version must be between" in e.msg:
1507+
auto_upgrade_chromedriver = True
15061508
if not auto_upgrade_chromedriver:
15071509
raise Exception(e.msg) # Not an obvious fix. Raise.
15081510
else:

0 commit comments

Comments
 (0)