添加texts属性,未完成

This commit is contained in:
g1879 2020-10-20 15:41:41 +08:00
parent 1d01ddf216
commit b57de2186e

View File

@ -36,6 +36,11 @@ class SessionElement(DrissionElement):
"""返回元素内所有文本"""
return unescape(self._inner_ele.text).replace('\xa0', ' ')
@property
def texts(self) -> List[str]:
# TODO: 待补充
return []
@property
def html(self) -> str:
"""返回元素innerHTML文本"""