I'm using Selenium IDE 1.7.1 to select the checkbox that corresponds with invoice # 405357. Css seems to allow me to move forward in selecting an element, but not backward. So this would select the $420:
css=td:contains('405357') + td
Any ideas for a workaround in order to select a the checkbox? Ideally the workaround wouldn't involve going backward or forward but would just say select checkbox
css=input#paymentsForm_invoiceToPayIds if td:contains('405357')
I'd prefer it to be in CSS, but XPath would be ok too.
Thank you!
<table>
<tbody>
<tr>
<td>
<input id="paymentsForm_invoiceToPayIds" type="checkbox" onclick="calculateInvoices(this)" value="405357" name="invoiceToPayIds">
<input id="__checkbox_paymentsForm_invoiceToPayIds" type="hidden" value="405357" name="__checkbox_invoiceToPayIds">
</td>
<td>405357</td>
</tr>
</tbody>
</table>