Looking for a selenium selector that I can use the text in the first td to selected the input in the second.
<tr><th>asdf</th><td><input type="text"></td></tr>
<tr><th>qwer</th><td><input type="text"></td></tr>
<tr><th>rtyu</th><td><input type="text"></td></tr>
<tr><th>fghj</th><td><input type="text"></td></tr>
Use this as a document:
Use this as a xpath expression:
Here is a nice page where you can test it online and play around till you’ve got the correct syntax:
http://www.mizar.dk/XPath/Default.aspx
Take look at the following-sibling xpath example and the Selenium locator reference.
Answer Updated!