I'm using Selenium to target certain elements on a page.
I have a table that looks like this
<table>
<tbody>
<tr>
<td>Text1</td>
<td>Text2</td>
</tr>
...
</tbody>
</table>
Each <tr>
element matches this pattern.
I want to pass in two strings, text1 & text2, and find the row element whose two cells match text1 and text2, in that order. I'm assuming XPath is the way to go, I'm just not really sure how to write this case, if it's possible.