diff --git a/DrissionPage/easy_set.py b/DrissionPage/easy_set.py index 9f64251..d9e0581 100644 --- a/DrissionPage/easy_set.py +++ b/DrissionPage/easy_set.py @@ -275,8 +275,8 @@ def _get_chrome_path(ini_path: str = None, import winreg try: key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, - # r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe', - r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version', + r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe', + # r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version', reserved=0, access=winreg.KEY_READ) k = winreg.EnumValue(key, 0) winreg.CloseKey(key) diff --git a/DrissionPage/session_page.py b/DrissionPage/session_page.py index fbc7831..182ea4a 100644 --- a/DrissionPage/session_page.py +++ b/DrissionPage/session_page.py @@ -219,6 +219,8 @@ class SessionPage(BasePage): def download(self) -> DownloadKit: if self._download_kit is None: self._download_kit = DownloadKit(session=self.session, timeout=self.timeout) + self._download_kit.retry = self.retry_times + self._download_kit.interval = self.retry_interval return self._download_kit diff --git a/setup.py b/setup.py index b86c8c7..de81411 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setup( name="DrissionPage", - version="2.5.4", + version="2.5.5", author="g1879", author_email="g1879@qq.com", description="A module that integrates selenium and requests session, encapsulates common page operations.",