[Webtest] Re: Someone really attribute value of setcheckbox?
Marc Guillemot
webtest@lists.canoo.com
Tue, 13 Jul 2004 08:46:01 +0200
Ups, sorry, I meant with a setcheckbox task that would really do its job setting a checkbox, you don't need to set the
value. I hope to commit it this week.
Marc.
Lisa Crispin wrote:
> Hi Marc,
> I tried putting only the checkbox name, not the value:
> <setcheckbox stepid="select the check"
> name="check#{checkNbr}"/>
>
> and I got this error:
>
> Test step clickbutton named "submit the check" failed with message "Could not remove parameter from request: check36530"
>
> I don't know what this means, but I hope you will not remove the 'value' parameter!
>
> thanks,
> Lisa
>
>
>
>
>
> -------------- Original message from Marc Guillemot : --------------
>
>>But you have only one checkbox named "check38341". Right? In this case you just
>>want to check this checkbox and you
>>don't need to specify the value.
>>
>>Marc.
>>
>>Lisa Crispin wrote:
>>
>>>Hi Marc,
>>>Here's what the code looks like:
>>>input name="check38341" type="checkbox" class="control" value="38341">
>>>
>>>The check number is generated sequentially for each new check, so both the
>>
>>checkbox name and value will be different each time I run the tests that use
>>this type of page.
>>
>>>thanks,
>>>Lisa
>>>
>>>-------------- Original message from Marc Guillemot : --------------
>>>
>>>
>>>>Hi Lisa,
>>>>
>>>>
>>>>
>>>>>One thing we use it for is to select a box that is going to be a different
>>>>
>>>>value every time, so I have to use storeregex to get the value:
>>>>
>>>>
>>>>>>>name="check#{checkNbr}"
>>>>>
>>>>>value="#{checkNbr}" />
>>>>
>>>>what is the original html code for the checkbox? Has the checkbox already
>>>>"#{checkNbr}" as value?
>>>>
>>>>
>>>>
>>>>>We also have radio buttons with the same name and different values, I don't
>>>>
>>>>know how else to select:
>>>>
>>>>
>>>>>>name="forgotW
>>>>>
>>>>>hatSelection" checked="true" value="2"/>
>>>>
>>>>in a radio button group the value distinguished one radio button from one
>>
>>other
>>
>>>>therefore is the value needed. I will
>>>>add a dedicated setradiobutton task.
>>>>
>>>>Marc.