mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
完善获取元素text,统一两种模式获取text的方式
This commit is contained in:
parent
219e2c8cc3
commit
3f1d396b6d
@ -80,7 +80,7 @@ class DriverElement(DrissionElement):
|
||||
@property
|
||||
def text(self) -> str:
|
||||
"""返回元素内所有文本"""
|
||||
return get_ele_txt(self)
|
||||
return get_ele_txt(make_session_ele(self.html))
|
||||
|
||||
@property
|
||||
def raw_text(self) -> str:
|
||||
|
Loading…
x
Reference in New Issue
Block a user