2
私はテストを書くためにSeleniumとJavaを使用しています。タグが最後のものであるかどうかをチェックする方法
<tbody>
<tr>
<th>Copy</th>
<th>Subfield</th>
<th>Subfield Border</th>
<th>Field</th>
<th>Field Border</th>
</tr>
<tr id="333877">
<td>
<input type="checkbox" checked="" class="copySubfieldBorderCheck"/>
</td>
<td>a</td>
<td class="s">No</td>
<td>c</td>
<td>Yes</td>
</tr>
<tr>
<th>as</th>
<th>er</th>
<th>df</th>
<th>xc</th>
<th>xc</th>
</tr>
<tr id="333877">
<td>
<input type="checkbox" checked="" class="copySubfieldBorderCheck"/>
</td>
<td>rt</td>
<td class="noBorderBoldRed">Yes</td>
<td>ff</td>
<td>sdf</td>
</tr>
は、私がテキストですNo
とALOSそれがLAST td
タグのテキストは、私が何かを探していますYes
あるtd
タグを持っているtr
を取得したい:私は以下のDOMを持っていますこのように:
//tr[./td[text()='No'] and ./td[text()='Yes' and isLast()]]