[Webtest] clickbutton with button tag
Dierk Koenig
webtest@lists.canoo.com
Tue, 6 Aug 2002 19:25:47 +0200
Hi Ben,
I don't claim this solution to be the only way to go.
Using WebForm makes it very to do the associated "submit" with
all the parameters filled correctly.
still thinking
Mittie
-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]On
Behalf Of Ben Cox
Sent: Dienstag, 6. August 2002 18:54
To: webtest@gate.canoo.com
Subject: Re: [Webtest] clickbutton with button tag
Dierk,
While I understand that the getSubmitButtons() function doesn't find
<button> tags, I don't see why it's strictly necessary to implement it this
way. Couldn't there another piece of logic in the same function searching
for all of the <button> tags when the getSubmitButtons() fails? Wouldn't
require editing HttpUnit.
Ben
Dierk Koenig wrote:
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?
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list
WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest