微调注释

This commit is contained in:
g1879 2021-12-26 17:16:13 +08:00
parent 4dd9c2a12e
commit b7ad47a085

View File

@ -124,7 +124,7 @@ class MixPage(SessionPage, DriverPage, BasePage):
-> Union[DriverElement, SessionElement, str, List[SessionElement], List[DriverElement]]: -> Union[DriverElement, SessionElement, str, List[SessionElement], List[DriverElement]]:
"""返回第一个符合条件的元素、属性或节点文本 \n """返回第一个符合条件的元素、属性或节点文本 \n
:param loc_or_ele: 元素的定位信息可以是元素对象loc元组或查询字符串 :param loc_or_ele: 元素的定位信息可以是元素对象loc元组或查询字符串
:param timeout: 查找元素超时时间 :param timeout: 查找元素超时时间默认与页面等待时间一致
:return: 元素对象或属性文本节点文本 :return: 元素对象或属性文本节点文本
""" """
if self._mode == 's': if self._mode == 's':
@ -137,7 +137,7 @@ class MixPage(SessionPage, DriverPage, BasePage):
timeout: float = None) -> Union[List[DriverElement], List[SessionElement], List[str]]: timeout: float = None) -> Union[List[DriverElement], List[SessionElement], List[str]]:
"""返回页面中所有符合条件的元素、属性或节点文本 \n """返回页面中所有符合条件的元素、属性或节点文本 \n
:param loc_or_str: 元素的定位信息可以是loc元组或查询字符串 :param loc_or_str: 元素的定位信息可以是loc元组或查询字符串
:param timeout: 查找元素超时时间 :param timeout: 查找元素超时时间默认与页面等待时间一致
:return: 元素对象或属性文本组成的列表 :return: 元素对象或属性文本组成的列表
""" """
if self._mode == 's': if self._mode == 's':