I want to select the next sibling of a td tag in a tr element.
The tr element is this:
<tr>
<td>Created On:</td>
<td>06/28/2018 06:32 </td>
</tr>
My XPATH code looks like this: //text()[contains(.,'Created On:')].
How do I select the next td?
Try it like this:
//tr/td[text()="Created On:"]/following-sibling::td
Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With