mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
6094238f60
commit
9e6e2cb264
@ -198,7 +198,6 @@ class DrissionElement(BaseElement):
|
||||
loc = loc[1].lstrip('./')
|
||||
xpath = f'xpath:./{direction}-sibling::{loc}'
|
||||
|
||||
print(xpath)
|
||||
nodes = self._ele(xpath, timeout=timeout, single=False)
|
||||
nodes = [e for e in nodes if not (isinstance(e, str) and sub('[ \n\t\r]', '', e) == '')]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user