Xpath 不包含

Xpath not contains

有没有办法 select 不包含 ng-show 的 xpath 请在下面找到 xpath: 我熟悉 not(contains()),但它有 2 个参数。 我希望它不包含 ng-show 本身,因为我还有一些包含 ng-show 的元素,我不想 select 其中任何一个。

<span ng-show="displayValue" class="ng-binding">0 km</span>

提前致谢

试试下面这个 xpath

//span[not(@ng-show)][not(@class='percent ng-binding')][@class='ng-binding']

xpath的解释:-只有那些<span>标签会return,其中属性不包含ng-show