修复小bug

This commit is contained in:
g1879 2022-01-14 19:36:15 +08:00
parent 31bd4819f4
commit 6ccc21b1f6
2 changed files with 7 additions and 9 deletions

View File

@ -53,15 +53,13 @@ class MixPage(SessionPage, DriverPage, BasePage):
self._response = None
if self._mode == 'd':
self._drission.driver # 接管或创建浏览器
try:
timeouts = self.drission.driver_options.timeouts
t = timeout if timeout is not None else timeouts['implicit'] / 1000
self.set_timeouts(t, timeouts['pageLoad'] / 1000, timeouts['script'] / 1000)
try:
timeouts = self.drission.driver_options.timeouts
t = timeout if timeout is not None else timeouts['implicit'] / 1000
self.set_timeouts(t, timeouts['pageLoad'] / 1000, timeouts['script'] / 1000)
except Exception:
self.timeout = timeout if timeout is not None else 10
except Exception:
self.timeout = timeout if timeout is not None else 10
def __call__(self,
loc_or_str: Union[Tuple[str, str], str, DriverElement, SessionElement, WebElement],

View File

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