【发布时间】:2020-04-15 22:02:47
【问题描述】:
如何 xpath 直接在 html 标记下“仅”定位 text(),而不是“其他 html 子标记”下包含的文本
考虑
<li class="one">
<label class="two">
<span class="two-one">Unwanted text</span>
Wanted text only directly under under label (not under span)
</label>
【问题讨论】:
标签: xpath