uncheck a checkbox does not work
--------------------------------
Key: WT-258
URL: http://webtest-community.canoo.com/jira/browse/WT-258
Project: WebTest
Type: Bug
Versions: 2.1
Reporter: Andreas Winter
Method SetCheckbox.updateField should be:
protected void updateField(HtmlElement field) throws IOException {
boolean checked = isChecked();
// Why this check? Find all fields filters out all non-checkboxes
if (!(field instanceof HtmlCheckBoxInput)) {
throw new StepFailedException("Found " + field.getTagName() +
" when looking for checkbox", this);
}
HtmlCheckBoxInput checkBox = (HtmlCheckBoxInput) field;
if (checkBox.isChecked() != checked) {
//******** START
checkbox.setChecked(checked);
//******** END
LOG.debug((checked ? "" : "un") + "checked checkbox " + checkBox);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest