diff --git a/webdriver_manager/chrome.py b/webdriver_manager/chrome.py index d8a91bf0..a4541f7a 100644 --- a/webdriver_manager/chrome.py +++ b/webdriver_manager/chrome.py @@ -1,4 +1,5 @@ import os +from packaging import version from typing import Optional from webdriver_manager.core.download_manager import DownloadManager @@ -26,6 +27,7 @@ def __init__( os_system_manager=os_system_manager ) + self.driver_version = driver_version self.driver = ChromeDriver( name=name, driver_version=driver_version, @@ -44,7 +46,10 @@ def install(self) -> str: def get_os_type(self): os_type = super().get_os_type() if "win" in os_type: - return "win32" + if version.parse(self.driver_version) >= version.parse("115"): + return os_type + else: + return "win32" if not self._os_system_manager.is_mac_os(os_type): return os_type