mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
2092f7a6a3
commit
e186457d36
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user