Issue
in a web page I have to select all the buttons like this :
<button :class="{'complete': isComplete, 'open': open}" :disabled="orderedEvents.length === 0"></button>
but with this xpath :
//button[contains(@class, 'isComplete, \'open\'')]
do not works!
Solution
You can find attributes that contains colons in the name using @*[name()]
and find it's value using .
//button[@*[starts-with(name(),':class') and contains(., \"isComplete, 'open'\")]]
Answered By - Guy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.