小编Mat*_*att的帖子

"和不包含"的Xpath语法

这是我试图使用的XPath:

//div[contains(@class='xyz ng-binding ng-scope') and not(contains(@class = 'ng-hide'))]
Run Code Online (Sandbox Code Playgroud)

我不确定这是什么正确的语法.基本上HTML看起来像:

class="xyz ng-binding ng-scope typeA ng-hide"
class="xyz ng-binding ng-scope typeB ng-hide"
Run Code Online (Sandbox Code Playgroud)

我想选择在HTML或者是情况typeA或者typeB,但没有ng-hide.

xpath qtp

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

qtp ×1

xpath ×1