[Webtest] [webtest][JIRA] Created: (WT-19) Checkboxes with name and value are always checked

Theo Helfenberger (JIRA) webtest@lists.canoo.com
Wed, 9 Feb 2005 15:24:26 +0100 (CET)


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
 Assigned to: Dierk Koenig 


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