完善获取元素text,统一两种模式获取text的方式

This commit is contained in:
g1879 2021-12-01 00:41:30 +08:00
parent 219e2c8cc3
commit 3f1d396b6d

View File

@ -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: