mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
3.2.18click()强制点击时如元素无法滚动到视口,改用js;click()增加timeout参数
This commit is contained in:
parent
b076ff9952
commit
de40467fa7
@ -1646,7 +1646,7 @@ class Click(object):
|
|||||||
:param wait_loading: 等待页面进入加载状态超时时间
|
:param wait_loading: 等待页面进入加载状态超时时间
|
||||||
:return: 是否点击成功
|
: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):
|
def left(self, by_js=False, timeout=1, wait_loading=0):
|
||||||
"""点击元素
|
"""点击元素
|
||||||
|
@ -433,9 +433,9 @@ class Click(object):
|
|||||||
def __init__(self, ele: ChromiumElement):
|
def __init__(self, ele: ChromiumElement):
|
||||||
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): ...
|
def right(self): ...
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="DrissionPage",
|
name="DrissionPage",
|
||||||
version="3.2.17",
|
version="3.2.18",
|
||||||
author="g1879",
|
author="g1879",
|
||||||
author_email="g1879@qq.com",
|
author_email="g1879@qq.com",
|
||||||
description="Python based web automation tool. It can control the browser and send and receive data packets.",
|
description="Python based web automation tool. It can control the browser and send and receive data packets.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user