diff --git a/DrissionPage/chromium_element.py b/DrissionPage/chromium_element.py index c65244b..5cb0717 100644 --- a/DrissionPage/chromium_element.py +++ b/DrissionPage/chromium_element.py @@ -1646,7 +1646,7 @@ class Click(object): :param wait_loading: 等待页面进入加载状态超时时间 :return: 是否点击成功 """ - return self.left(by_js, wait_loading) + return self.left(by_js, timeout, wait_loading) def left(self, by_js=False, timeout=1, wait_loading=0): """点击元素 diff --git a/DrissionPage/chromium_element.pyi b/DrissionPage/chromium_element.pyi index 123af53..64c77ca 100644 --- a/DrissionPage/chromium_element.pyi +++ b/DrissionPage/chromium_element.pyi @@ -433,9 +433,9 @@ class Click(object): def __init__(self, ele: ChromiumElement): self._ele: ChromiumElement = ... - def __call__(self, by_js: bool = False, timeout: float = None, wait_loading: Union[bool, float] = 0) -> bool: ... + def __call__(self, by_js: bool = False, timeout: float = 1, wait_loading: Union[bool, float] = 0) -> bool: ... - def left(self, by_js: bool = False, timeout: float = None, wait_loading: Union[bool, float] = 0) -> bool: ... + def left(self, by_js: bool = False, timeout: float = 1, wait_loading: Union[bool, float] = 0) -> bool: ... def right(self): ... diff --git a/setup.py b/setup.py index a48f68a..2a108c8 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="3.2.17", + version="3.2.18", author="g1879", author_email="g1879@qq.com", description="Python based web automation tool. It can control the browser and send and receive data packets.",