From 7d936defd039868dea3afb028f18a87305cf64ec Mon Sep 17 00:00:00 2001 From: g1879 Date: Sat, 28 Sep 2024 22:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/_units/waiter.pyi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DrissionPage/_units/waiter.pyi b/DrissionPage/_units/waiter.pyi index 6a0216d..59bae97 100644 --- a/DrissionPage/_units/waiter.pyi +++ b/DrissionPage/_units/waiter.pyi @@ -695,6 +695,16 @@ class FrameWaiter(BaseWaiter, ElementWaiter): """ ... + def has_rect(self, + timeout: float = None, + raise_err: bool = None) -> Union[ChromiumFrame, False]: + """等待当前元素有大小及位置属性 + :param timeout: 超时时间(秒),为None使用元素所在页面timeout属性 + :param raise_err: 等待失败时是否报错,为None时根据Settings设置 + :return: 成功返回元素对象,失败返回False + """ + ... + def covered(self, timeout: float = None, raise_err: bool = None) -> Union[ChromiumFrame, False]: """等待当前元素被遮盖 :param timeout: 超时时间(秒),为None使用元素所在页面timeout属性