Xpath function selecting cell with matching text from another cell -


i trying determine xpath of cell search results matching text search parameter text in previous table. in example shows case number searched is: 14-cv-12-14. lists 3 variable options: 14-cv-00-1214, 14-cv-01-214, , 14-cv-12-14. of course want 1 matches number searched, isn't in last row, i'm unable use last() function.

<table>  removed previous code </table> 

how select cell containing text matches text of cell in different table? thank in advance this!

ok, let me more specific code i'm working with.

  • the 1st table indicates number searched (14-cv-12-14).
  • the 2nd table lists 3 options of similar numbers, 1 of them matches number 1st table.
  • i need xpath returns number in 2nd table matches number 1st table.

actual html (edited):

<table 1>  <tr></tr>  <tr>     <td id="searchparamlist" colspan="2">         <b>             search by:         </b>          case            <b>             exact name:         </b>          on            <b>             case search mode:         </b>          number            <b>             case number:         </b>          14-cv-12-11            <b>                     </b>                     <b>             sort by:         </b>          filed date        </td>  </tr> </table 1>  <table 2>     <tr>         <th class="sssearchresultheader" nowrap="true">             <b>                 case number             </b>         </th>         <th class="sssearchresultheader" nowrap="true">             <b>                 style             </b>         </th>         <th class="sssearchresultheader">             <b>                 filed/location/judicial officer             </b>         </th>         <th class="sssearchresultheader" nowrap="true">             <b>                 type             </b>             <b>                 /status             </b>         </th>     </tr>     <tr>         <td valign="top" nowrap="true">             <a style="color: blue" href="casedetail.aspx?caseid=581">                 14-cv-00-1214             </a>         </td>         <td valign="top">             rent center plaintiff vs cynthia mcpherson defen…         </td>         <td valign="top" nowrap="true">             <div>                 01/27/2000             </div>             <div>                 - hennepin civil             </div>             <div></div>         </td>         <td valign="top" nowrap="true">             <div>                 transcript judgment             </div>             <div>                 closed             </div>         </td>     </tr>     <tr bgcolor="#eeeeee">         <td valign="top" nowrap="true">             <a style="color: blue" href="casedetail.aspx?caseid=669">                 14-cv-01-214             </a>         </td>         <td valign="top">             franchise wholesale co., llc, missouri limited l…         </td>         <td valign="top" nowrap="true">             <div>                 01/05/2001             </div>             <div>                 - hennepin civil             </div>             <div></div>         </td>         <td valign="top" nowrap="true">             <div>                 default judgment             </div>             <div>                 closed             </div>         </td>     </tr>     <tr>         <td valign="top" nowrap="true">             <a style="color: blue" href="casedetail.aspx?caseid=167">                 14-cv-12-11             </a>         </td>         <td valign="top">              capital 1 bank usa na vs jill hildebrant         </td>         <td valign="top" nowrap="true">             <div>                 12/30/2011             </div>             <div>                 - hennepin civil             </div>             <div></div>         </td>         <td valign="top" nowrap="true">             <div>                 default judgment             </div>             <div>                 closed             </div>         </td>     </tr> </table 2> 

is clear?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -