Skip to content

Commit a1046e3

Browse files
committed
Fix EdgeDriver Manager script from new updates
1 parent 63c29c4 commit a1046e3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,10 @@ def get_local_driver(
18511851
except Exception as e:
18521852
auto_upgrade_edgedriver = False
18531853
edge_version = None
1854-
if "This version of MSEdgeDriver only supports" in e.msg:
1854+
if (
1855+
"This version of MSEdgeDriver only supports" in e.msg
1856+
or "This version of Microsoft Edge WebDriver" in e.msg
1857+
):
18551858
if "Current browser version is " in e.msg:
18561859
auto_upgrade_edgedriver = True
18571860
edge_version = e.msg.split(
@@ -1906,7 +1909,10 @@ def get_local_driver(
19061909
except Exception as e:
19071910
auto_upgrade_edgedriver = False
19081911
edge_version = None
1909-
if "This version of MSEdgeDriver only supports" in e.msg:
1912+
if (
1913+
"This version of MSEdgeDriver only supports" in e.msg
1914+
or "This version of Microsoft Edge WebDriver" in e.msg
1915+
):
19101916
if "Current browser version is " in e.msg:
19111917
auto_upgrade_edgedriver = True
19121918
edge_version = e.msg.split(

0 commit comments

Comments
 (0)