From b7ad47a08533921fc8b0b2fd2b5c1168e6515c46 Mon Sep 17 00:00:00 2001 From: g1879 Date: Sun, 26 Dec 2021 17:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/mix_page.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DrissionPage/mix_page.py b/DrissionPage/mix_page.py index 5570056..b347095 100644 --- a/DrissionPage/mix_page.py +++ b/DrissionPage/mix_page.py @@ -122,9 +122,9 @@ class MixPage(SessionPage, DriverPage, BasePage): loc_or_ele: Union[Tuple[str, str], str, DriverElement, SessionElement, WebElement], timeout: float = None) \ -> Union[DriverElement, SessionElement, str, List[SessionElement], List[DriverElement]]: - """返回第一个符合条件的元素、属性或节点文本 \n + """返回第一个符合条件的元素、属性或节点文本 \n :param loc_or_ele: 元素的定位信息,可以是元素对象,loc元组,或查询字符串 - :param timeout: 查找元素超时时间 + :param timeout: 查找元素超时时间,默认与页面等待时间一致 :return: 元素对象或属性、文本节点文本 """ if self._mode == 's': @@ -137,7 +137,7 @@ class MixPage(SessionPage, DriverPage, BasePage): timeout: float = None) -> Union[List[DriverElement], List[SessionElement], List[str]]: """返回页面中所有符合条件的元素、属性或节点文本 \n :param loc_or_str: 元素的定位信息,可以是loc元组,或查询字符串 - :param timeout: 查找元素超时时间 + :param timeout: 查找元素超时时间,默认与页面等待时间一致 :return: 元素对象或属性、文本组成的列表 """ if self._mode == 's':