Skip to content

Commit

Permalink
Fix tests (almost all passed locally)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gridnev committed Sep 28, 2022
1 parent f1ea7da commit cb81f08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webdriver_manager/drivers/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ def get_os_type(self):

if is_arch(os_type):
browser_version = self.get_latest_release_version()
effective_os_type = f"{os_type.replace('_m1', '')}"

# after version 106.0.5249.61 the format of url changed.
if browser_version and browser_version.split() < [106, 0, 5249, 61]:
return f"{os_type.replace('_m1', '')}_m1"
if list(map(int, browser_version.split('.'))) < [106, 0, 5249, 61]:
return f'{effective_os_type}_m1'

return os_type.replace('64', '_arm64')
return effective_os_type.replace('64', '_arm64')

return os_type

Expand Down

0 comments on commit cb81f08

Please sign in to comment.