选择我有HTML这样的:检查按钮使用硒
<input data-errorqtip="" aria-invalid="false" id="checkbox-1371-inputEl" class="x-form-field x-form-checkbox x-form-cb" autocomplete="off" hidefocus="true" type="button">
在UI它显示像复选框。如何检查它是否被选中? 我正在使用波纹管代码但不工作。
if (!field.isSelected()) {
field.click();
}
----以上表示标记打开和关闭 – 2014-09-04 06:51:52
这里'type'是'button',你期望它是'checkbox'? – 2014-09-04 11:25:00