selenium - How to find a certain link under a tr that is underneath several identical trs -
another problem getting particular portion of html click link. need click link above classify item #, ifw #qa gm 04012014 1424-1, supplier 1
the part of td know "qa gm 04012014 1424". can table doing a:
//*[@id='opentaskstable']/tbody
what i'm left unknown number of td's same id. i'm not sure how find proper 1 point.
code:
<table id="opentaskstable" cellspacing="1" cellpadding="1"> <thead> <tbody> <tr class="evenrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453156" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 0911-1, supplier one</td> <td>apr 24, 2014</td> </tr> <tr class="oddrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453157" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 1012-1, supplier one</td> <td>apr 24, 2014</td> </tr> <tr class="evenrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453158" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 1414-1, supplier one</td> <td>apr 24, 2014</td> </tr> <tr class="oddrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453159" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 1420-1, supplier one</td> <td>apr 24, 2014</td> </tr> <tr class="evenrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453160" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 1422-1, supplier one</td> <td>apr 24, 2014</td> </tr> <tr class="oddrow tablecontroldatarow twtabletr"> <td> <a href="../teamworks/process.lsw?zworkflowstate=1&ztaskid=t453161" target="_blank">run task</a> </td> <td>classify item #, ifw #qa gm 04012014 1424-1, supplier one</td> <td>apr 24, 2014</td> </tr>
thanks! greg
the following xpath should work you:
//td[contains(text(),'qa gm 04012014 1424')]/..//a
it find <a>
in same <tr>
<td>
mentioned.
Comments
Post a Comment