【发布时间】:2015-05-27 00:02:48
【问题描述】:
我正在尝试使用 XPath 命令选择一个特定的单选按钮:
driver.FindElement(By.XPath("//td[contains(@input id, 'SearchTypePatientNameDob')]")).Click();
包含我想要的按钮的列表如下:
<tr>
<td>
<input id="RadioButtonSearchTypePatientNameDob" type="radio" value="SearchTypePatientNameDob" name="SearchType">
<span class="Instructions">Patient Name / Patient Date of Birth</span>
</td>
</tr>
我的命令找不到选择/单击它的按钮。任何建议都会大有裨益。
【问题讨论】:
标签: c# selenium xpath selenium-webdriver radio-button