mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修改str_to_loc()不传入内容时逻辑
This commit is contained in:
parent
783df77782
commit
4c0d08e822
@ -148,7 +148,7 @@ def str_to_loc(loc: str) -> tuple:
|
||||
elif loc:
|
||||
loc_str = f'//*/text()[contains(., {_make_search_str(loc)})]/..'
|
||||
else:
|
||||
loc_str = '//*[not(text())]'
|
||||
loc_str = '//*'
|
||||
|
||||
return loc_by, loc_str
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user