watir - How to locate the table which doesn't have id or name -


i need locate table,then locate tr , td,but table doesn't have id , name,so how locate table?i know should use index,unfortunately doesn't work. there 10 tables in page,i want locate "refesh" in row of table,may easy,but cannot resolve it...i don't know how locate particular table...,no id,no name,how can judge table want locate

there part of code:

<table cellspacing="0" border="0" style="height:63px; width:">   <tbody>     <tr>       <td style=" ">         <table cellspacing="0" border="0" style="margin-top:14px; width:112px; padding-left:15px;">           <tbody>             <tr>               <td style="" rowspan="2"></td>               <td id="tdrefresh" style="height:28px;" colspan="2">                 <div align="center" onclick="refresh(this,13652,1,1,0,0)" style="margin-bottom:15px;">                   <div align="center" style="color:#414141;">refresh</div>                 </div>               </td>             </tr>           </tbody>         </table>       </td>     </tr>   </tbody> </table> 

have tried browser.cell(:id => "tdrefresh") locate cell?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -