Click a table row with a specific value in a column

Is it possible to simulate a click on a table row that has a specific value in a column in that row?

Sure it is. Here’s how you can do it with xpath:

"//td[contains(., '"specific value"')]//preceding-sibling::td//input"

At least, this is how it works for my case, you might use other locators. Play around and see.

2 Likes