[Webtest] clickbutton with button tag

Dierk Koenig webtest@lists.canoo.com
Tue, 6 Aug 2002 18:35:41 +0200


Hi Erik,

it is weird, but <clickbutton> does not find the <button> tag, although this
is
proper html 4.0.

Reason is, that we relay the call to httpunit's WebForm.getSubmitButtons()
method
that in turn only looks for the input type submit and not for button tags.

Fixing this requires looking for the latest httpunit changes and eventually
updating or otherwise submitting some changes to httpunit itself.

I will follow up, but I cannot promise a date.

Meanwhile you will not be able to use <clickbutton> in your example.
Changing the webapp to using the input type=submit style would do the
trick but is like a step backwards from the webapp perspective.

Maybe it is possible to <invoke> the form with predefined parameters(?).

cheers
Mittie


> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of
> Erik.Ostermueller@alltel.com
> Sent: Dienstag, 6. August 2002 17:31
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] cruisecontrol
>
>
> The doc for <clickbutton> shows that it supports
> html like this:
>
> <INPUT type="submit"  value="doIt" />
>
>
> My html button looks a bit different:
> 	<button type="submit"  ID="idSearchButton" CLASS="button">
>                         Search
> 	</button>
>
> What should my <clickbutton> look like for the above html?
>