@@ -2177,6 +2177,7 @@ def get_local_driver(
2177
2177
if major_edge_version :
2178
2178
use_version = major_edge_version
2179
2179
driver_version = None
2180
+ edgedriver_upgrade_needed = False
2180
2181
if os .path .exists (LOCAL_EDGEDRIVER ):
2181
2182
try :
2182
2183
output = subprocess .check_output (
@@ -2191,14 +2192,18 @@ def get_local_driver(
2191
2192
output = output .split (" " )[1 ].split ("." )[0 ]
2192
2193
elif output .split (" " )[0 ] == "Microsoft" :
2193
2194
# Microsoft Edge WebDriver VERSION
2195
+ if (
2196
+ "WebDriver 115.0" in output
2197
+ and "115.0.1901.183" not in output
2198
+ ):
2199
+ edgedriver_upgrade_needed = True
2194
2200
output = output .split (" " )[3 ].split ("." )[0 ]
2195
2201
else :
2196
2202
output = 0
2197
2203
if int (output ) >= 2 :
2198
2204
driver_version = output
2199
2205
except Exception :
2200
2206
pass
2201
- edgedriver_upgrade_needed = False
2202
2207
local_edgedriver_exists = False
2203
2208
if LOCAL_EDGEDRIVER and os .path .exists (LOCAL_EDGEDRIVER ):
2204
2209
local_edgedriver_exists = True
@@ -2477,7 +2482,9 @@ def get_local_driver(
2477
2482
if selenium4_or_newer :
2478
2483
try :
2479
2484
service = EdgeService (
2480
- executable_path = LOCAL_EDGEDRIVER , log_path = os .devnull
2485
+ executable_path = LOCAL_EDGEDRIVER ,
2486
+ log_path = os .devnull ,
2487
+ service_args = ["--disable-build-check" ],
2481
2488
)
2482
2489
driver = Edge (service = service , options = edge_options )
2483
2490
except Exception as e :
@@ -2503,6 +2510,7 @@ def get_local_driver(
2503
2510
service = EdgeService (
2504
2511
executable_path = LOCAL_EDGEDRIVER ,
2505
2512
log_path = os .devnull ,
2513
+ service_args = ["--disable-build-check" ],
2506
2514
)
2507
2515
# https://stackoverflow.com/a/56638103/7058266
2508
2516
sys_argv = sys .argv
@@ -2576,6 +2584,7 @@ def get_local_driver(
2576
2584
service = EdgeService (
2577
2585
executable_path = LOCAL_EDGEDRIVER ,
2578
2586
log_path = os .devnull ,
2587
+ service_args = ["--disable-build-check" ],
2579
2588
)
2580
2589
# https://stackoverflow.com/a/56638103/7058266
2581
2590
sys_argv = sys .argv
0 commit comments