mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
添加texts属性,未完成
This commit is contained in:
parent
1d01ddf216
commit
b57de2186e
@ -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文本"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user