0

Source is the obstacle course: https://obstaclecourse.tricentis.com/Obstacles/23292

The Xpath I try is:

//*[contains(text(),'John')]

But that leads to 2 elements

How can I improve the Xpath so It can find the TR with John Doe?

LTL
  • 339
  • 1
  • 9
  • found something: https://stackoverflow.com/questions/58621663/xpath-with-multiple-contains-on-similar-elements – LTL Oct 04 '21 at 09:38

1 Answers1

1
//tr[contains(.,"John") and contains(.,"Doe") ]
cruisepandey
  • 28,520
  • 6
  • 20
  • 38
LTL
  • 339
  • 1
  • 9
  • This is a very low quality answer, this possibly shoulda been comment. try to include an explanation why it worked for you. – cruisepandey Oct 04 '21 at 09:47
  • It's a little hard to imagine what part of this answer the OP won't understand. But then, it's a little hard to understand why they had to ask the question in the first place. – Michael Kay Oct 04 '21 at 13:46