<tr class="odd">
<td>
<input id="rightsTokenOid" type="radio" value="rightsTokenOid" onclick="setRightsTokenOid('urn:dece:rightstokenid:org:dece:E9807B96D4153534E040A8C0158E4EB8');" style="width:100%;border:0px" name="rightsTokenOid">
</td>
<td>urn:dece:rightstokenid:org:dece:E9807B96D4153534E040A8C0158E4EB8</td>
</tr>
<tr class="even">
<td>
<input id="rightsTokenOid" type="radio" value="rightsTokenOid" onclick="setRightsTokenOid('urn:dece:rightstokenid:org:dece:EA07E75226B329B1E040A8C0158E1813');" style="width:100%;border:0px" name="rightsTokenOid">
</td>
<td>urn:dece:rightstokenid:org:dece:EA07E75226B329B1E040A8C0158E1813</td>
</tr>
我使用以下方法单击单选按钮,但它不起作用。请建议我使用以下方法单击所需单选按钮的方法
String RightsTokenID = urn:dece:rightstokenid:org:dece:EA07E75226B329B1E040A8C0158E1813;
List<WebElement> radios = driver.findElements(By.name("rightsTokenOid"));
for (WebElement element : radios) {
if (element.getAttribute("value").equals(RightsTokenID)) {
element.click();
}
break;
}