我正在尝试单击更改 ui 页面上的顺序的单选按钮。但是有一件事是固定的,我想点击的单选按钮在文本旁边"Reissue ID Card"
以下是网页 HTML:
<tbody>
<tr class="gridcell">
<tr class="gridcell">
<tr class="gridcell">
<td valign="bottom" style="border-right: 1px solid rgb(160, 160, 160);">
<td width="51" align="center" style="width:46px;">
<input id="rdbSelectAction" type="radio" onclick="fnRowSelected(this);" value="37089~8/8/2018 12:00:00 AM" name="rdbSelectAction" oldchecked="false">
</td>
<td width="140"> Reissue ID Card </td>
<td width="82"> 8/6/2012 8:07:15 AM </td>
<td width="82"> 8/8/2018 12:00:00 AM </td>
<td width="89"> Directory 2018 </td>
<td width="94"> Closed Unsuccessful - Need to Reissue ID Card Closed Unsucc </td>
<td width="103"> Admin </td>
<td width="78"> 6578 </td>
<td width="129"> 91890 </td>
<td width="330"> 000004503701/01/2012 </td>
我正在使用从上面的 HTML 创建的以下 xpath 但没有运气:
//tr[contains(@class, 'gridcell')]/td[contains(text(), 'Reissue ID Card')]
慕雪6442864
相关分类