File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
# seleniumbase package
2
- __version__ = "4.18.2 "
2
+ __version__ = "4.18.3 "
Original file line number Diff line number Diff line change @@ -2448,6 +2448,7 @@ def get_local_driver(
2448
2448
edge_options .add_argument ("--disable-gpu" )
2449
2449
if IS_LINUX :
2450
2450
edge_options .add_argument ("--disable-dev-shm-usage" )
2451
+ set_binary = False
2451
2452
if chromium_arg :
2452
2453
# Can be a comma-separated list of Chromium args
2453
2454
chromium_arg_list = chromium_arg .split ("," )
@@ -2458,16 +2459,15 @@ def get_local_driver(
2458
2459
chromium_arg_item = "-" + chromium_arg_item
2459
2460
else :
2460
2461
chromium_arg_item = "--" + chromium_arg_item
2461
- if (
2462
- (IS_LINUX or "set-binary" in chromium_arg_item )
2463
- and not binary_location
2464
- ):
2465
- br_app = "edge"
2466
- binary_loc = detect_b_ver .get_binary_location (br_app )
2467
- if os .path .exists (binary_loc ):
2468
- binary_location = binary_loc
2462
+ if "set-binary" in chromium_arg_item :
2463
+ set_binary = True
2469
2464
elif len (chromium_arg_item ) >= 3 :
2470
2465
edge_options .add_argument (chromium_arg_item )
2466
+ if (set_binary or IS_LINUX ) and not binary_location :
2467
+ br_app = "edge"
2468
+ binary_loc = detect_b_ver .get_binary_location (br_app )
2469
+ if os .path .exists (binary_loc ):
2470
+ binary_location = binary_loc
2471
2471
if binary_location :
2472
2472
edge_options .binary_location = binary_location
2473
2473
try :
You can’t perform that action at this time.
0 commit comments