問題:如何從表列中找到值,並根據該值如何選擇相鄰的複選框。如何處理使用Web驅動程序動態生成值的表?
描述:該表由8欄組成。第一列(列名是'選擇')由複選框組成。在最後一列(列名是'金額') 我們有金額。當相鄰金額欄由數值(比方說)3380組成時,我想讓網絡驅動程序點擊複選框。如果特定金額存在於金額部分,則點擊與該金額行相關的複選框。
備註:這些值本質上是動態的。
HTML代碼:
<table width="760" cellspacing="0" cellpadding="0" background="../images/bground_title_row.gif" height="25">
<tr valign="top"><td>
<table width="760" align="center" cellpadding="0" cellspacing="1">
<div align="center"><span class="noninputtextfields">Select</span></div>
<td height="25" width="50"><div align="center"><span class="noninputtextfields">Select</span></div></td>
<td height="25" width="50"> <span class="noninputtextfields">Date</span></td>
<td height="25" width="150"> <span class="noninputtextfields">Handler</span></td>
<td height="25" width="100"> <span class="noninputtextfields">Payee</span></td>
<td height="25" width="50" valign="center" nowrap=""> <span class="noninputtextfields">Ind</span></td>
<td height="25" width="210" valign="center"> <span class="noninputtextfields">Claim/Claimant</span></td>
<td height="25" width="100"> <span class="noninputtextfields">Insured</span></td>
<td height="25" width="50"><div align="right"><span class="noninputtextfields">Amount €</span> </div></td>
</tr>
<tr>
<td><input type="checkbox" name="bulk_CHKpayment" value="0" onclick="this.checked=false;></td>
<td height="25" nowrap=""> <span class="inputtextfields">01/03/2017 08:40:41</span></td>
<td height="25"> <span class="inputtextfields">Peter Collins </span></td>
<td height="25"> <span class="inputtextfields">FirstName </span></td>
<td height="25"> <span class="inputtextfields">N </span></td>
<td height="25"> <span class="inputtextfields">FL </span></td>
<td height="25"> <span class="inputtextfields">FirstName</span></td>
<td><div align="right"><span class="inputtextfields">5045.17 </span></div></td>
</tr>
<tr>
<td><input type="checkbox" name="bulk_CHKpayment" value="0" onclick="this.checked=false;></td>
<td height="25" nowrap=""> <span class="inputtextfields">01/03/2017 08:40:41</span></td>
<td height="25"> <span class="inputtextfields">David Dessy </span></td>
<td height="25"> <span class="inputtextfields">FirstName </span></td>
<td height="25"> <span class="inputtextfields">N </span></td>
<td height="25"> <span class="inputtextfields">FL </span></td>
<td height="25"> <span class="inputtextfields">FirstName</span></td>
<td><div align="right"><span class="inputtextfields">1000 </span></div></td>
<tr>
.
.
.
</table>
我不能找到價值100000,任何複選框,你可以分享這些複選框,周圍那幾個(2-5)行的代碼,並刪除不必要的代碼? –
請訪問:http://tinypic.com/r/987b61/9 – Akki
我只想選擇複選框,如果金額欄的值等於100000 – Akki