Skip to content

Commit 0cb7224

Browse files
committed
Fix issue with "sbase get chromedriver latest" on M1/M2 Macs
1 parent 9922565 commit 0cb7224

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ def main(override=None, intel_for_uc=None):
242242
else:
243243
invalid_run_command()
244244
if "darwin" in sys_plat:
245+
if IS_ARM_MAC and not intel_for_uc:
246+
if use_version == "latest" or use_version == "latest-1":
247+
use_version = requests_get(last).text
248+
if use_version == "latest-1":
249+
use_version = str(int(use_version.split(".")[0]) - 1)
245250
if (
246251
IS_ARM_MAC
247252
and not intel_for_uc

0 commit comments

Comments
 (0)