[Webtest] [webtest][JIRA] Closed: (WT-19) Checkboxes with name and value are always checked
Dierk Koenig (JIRA)
webtest@lists.canoo.com
Thu, 17 Feb 2005 14:03:27 +0100 (CET)
[ http://webtest-community.canoo.com/jira/browse/WT-19?page=history ]
Dierk Koenig closed WT-19:
--------------------------
Resolution: Fixed
resolved by Paul King, 10.02.2005
> Checkboxes with name and value are always checked
> -------------------------------------------------
>
> Key: WT-19
> URL: http://webtest-community.canoo.com/jira/browse/WT-19
> Project: WebTest
> Type: Bug
> Environment: all
> Reporter: Theo Helfenberger
> Assignee: Paul King
>
> Hi
> There's a problem with the setchebox. If I use the value attribute I can not uncheck the checkbox.
> Example:
> <setcheckbox name="pElem_0835_0015785_55" value="acc_0835-0015785-50" checked="false"/>)
> This does not work because on line 77 in com.canoo.webtest.steps.form.SetCheckBox
> we find the following code:
> boolean checked = isChecked() || getValue() != null; // why implicit true if value specified???
> If values is not null this evaluates to true. There is even an old comment in the source about
> this behavior.
> Cheers
> Theo
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira