This commit is contained in:
g1879 2021-12-10 18:57:39 +08:00
parent 2092f7a6a3
commit e186457d36

View File

@ -211,6 +211,8 @@ def make_session_ele(html_or_ele: Union[str, BaseElement, BasePage],
"""
# ---------------处理定位符---------------
if not loc:
if isinstance(html_or_ele, SessionElement):
return html_or_ele
loc = ('xpath', '.')
single = True
elif isinstance(loc, str):