标签:wing follow 节点 div https net class path pat
本文链接:https://blog.csdn.net/ZincZhang/article/details/80248297
选择兄弟节点
选择前N位的div标签
preceding-sibling::div[N]
选择后N位的div标签
following-sibling::div[N]
选择上一级
../
结合使用
//td[text()=‘xxx‘]/../followingsibling::tr//tbody//td[contains(@class, p15)]/table/tbody
排除一个属性的节点
//tbody/tr[not(@class)]
//tbody/tr[not(@class or @id)]
选择一个有某个属性的元素
//div[@name]
标签:wing follow 节点 div https net class path pat
原文地址:https://www.cnblogs.com/weiwei-python/p/11399200.html