Skip to content

Commit d21ff8e

Browse files
committed
Fix an issue with getting older drivers on M1/M2 Macs
1 parent 4feb585 commit d21ff8e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ def main(override=None, intel_for_uc=None):
229229
else:
230230
invalid_run_command()
231231
if "darwin" in sys_plat:
232-
if "arm" in platform.processor().lower() and not intel_for_uc:
232+
if (
233+
"arm" in platform.processor().lower()
234+
and not intel_for_uc
235+
and int(use_version) > 105
236+
):
233237
file_name = "chromedriver_mac_arm64.zip"
234238
else:
235239
file_name = "chromedriver_mac64.zip"
@@ -396,7 +400,10 @@ def main(override=None, intel_for_uc=None):
396400
file_name = "edgedriver_win32.zip"
397401
suffix = "WINDOWS"
398402
elif "darwin" in sys_plat:
399-
if "arm" in platform.processor().lower():
403+
if (
404+
"arm" in platform.processor().lower()
405+
and int(use_version) > 104
406+
):
400407
file_name = "edgedriver_mac64_m1.zip"
401408
else:
402409
file_name = "edgedriver_mac64.zip"

0 commit comments

Comments
 (0)