2.5.8 传递Page到download取代传递session

This commit is contained in:
g1879 2022-03-28 17:49:08 +08:00
parent be91da38ef
commit bd4a180235
2 changed files with 2 additions and 4 deletions

View File

@ -218,9 +218,7 @@ class SessionPage(BasePage):
@property
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
self._download_kit = DownloadKit(session=self, timeout=self.timeout)
return self._download_kit

View File

@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setup(
name="DrissionPage",
version="2.5.7",
version="2.5.8",
author="g1879",
author_email="g1879@qq.com",
description="A module that integrates selenium and requests session, encapsulates common page operations.",