【发布时间】:2016-03-16 05:27:31
【问题描述】:
我有这个 HTML 代码:
<td><input name="selFundDetails" type="radio"></td>
我正在尝试使用关键字“选择单选按钮”来设置单选按钮以将值设置为“是”。
我尝试使用:
Select Radio Button selFundDetails Yes
我收到以下错误:
20160316 16:17:38.216 : INFO : Verifying element 'selFundDetails' is visible.
20160316 16:17:38.362 : INFO : Selecting 'true' from radio button 'selFundDetails'.
20160316 16:17:38.667 : FAIL : ValueError: Element locator 'xpath=//input[@type='radio' and @name='selFundDetails' and (@value='true' or @id='true')]' did not match any elements.
【问题讨论】: