[Webtest] clickbutton with button tag

Ben Cox webtest@lists.canoo.com
Tue, 06 Aug 2002 09:54:28 -0700


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Dierk,<br>
&nbsp; While I understand that the getSubmitButtons() function doesn't find &lt;button&gt;
tags, I don't see why it's strictly necessary to implement it this way. &nbsp;Couldn't
there another piece of logic in the same function searching for all of the
&lt;button&gt; tags when the getSubmitButtons() fails? &nbsp;Wouldn't require
editing HttpUnit.<br>
<br>
&nbsp; &nbsp; Ben<br>
<br>
Dierk Koenig wrote:<br>
<blockquote type="cite"
 cite="midFDECKBKBGOHEGDCBMOMLMEKKDHAA.dierk.koenig@canoo.com">
  <pre wrap="">Hi Erik,

it is weird, but &lt;clickbutton&gt; does not find the &lt;button&gt; 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 &lt;clickbutton&gt; 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 &lt;invoke&gt; the form with predefined parameters(?).

cheers
Mittie


  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:webtest-admin@lists.canoo.com">webtest-admin@lists.canoo.com</a>
[<a class="moz-txt-link-freetext" href="mailto:webtest-admin@lists.canoo.com">mailto:webtest-admin@lists.canoo.com</a>]On Behalf Of
<a class="moz-txt-link-abbreviated" href="mailto:Erik.Ostermueller@alltel.com">Erik.Ostermueller@alltel.com</a>
Sent: Dienstag, 6. August 2002 17:31
To: <a class="moz-txt-link-abbreviated" href="mailto:webtest@lists.canoo.com">webtest@lists.canoo.com</a>
Subject: RE: [Webtest] cruisecontrol


The doc for &lt;clickbutton&gt; shows that it supports
html like this:

&lt;INPUT type="submit"  value="doIt" /&gt;


My html button looks a bit different:
	&lt;button type="submit"  ID="idSearchButton" CLASS="button"&gt;
                        Search
	&lt;/button&gt;

What should my &lt;clickbutton&gt; look like for the above html?

    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
WebTest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a>
  </pre>
</blockquote>
<br>
</body>
</html>