[Webtest] Clickbutton error using HtmlUnit-based WebTest

Lisa Crispin webtest@lists.canoo.com
Thu, 11 Nov 2004 17:21:44 +0000


--NextPart_Webmail_9m3u9jl4l_12215_1100193704_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Hi Marc,
All right!  This is great news.

I tried it out and it works fine.  Thank you!
-- Lisa


-------------- Original message from Marc Guillemot <mguillemot@yahoo.fr>: -------------- 


> Hi Lisa, 
> 
> it's now fixed in CVS (CruiseControl should build it under number 560). 
> I've added unit test and webtest, to be sure it will never fail again. 
> 
> Marc. 
> 
> Lisa Crispin wrote: 
> > Using build 548, I am running a script that works fine in the 
> > HTTPUnit-based WebTest. 
> > 
> > It gets this error now: 
> > com.canoo.webtest.engine.StepFailedException: No button found, Step: 
> > ClickButton at C:\java\eplan\test\WebTest\modules\acceptPlanDocs.xml:2: 
> > with (stepId="accept the plan docs ", name="acceptDocs", 
> > stepType="clickbutton") 
> > 
> > The HTML is: 
> >   
> > 
> > The WebTest script has: 
> > > > name="acceptDocs"/> 
> > 
> > Why doesn't it think this is a button? Other buttons do work but they 
> > are type="submit". Seems like I had a problem with this once in the 
> > HTTPUnit-based WebTest, but it has worked now for a long time (this 
> > script runs every night). 
> > 
> > Thanks, 
> > Lisa 
> > 
> > 
> 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 
--NextPart_Webmail_9m3u9jl4l_12215_1100193704_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>Hi Marc,</DIV>
<DIV>All right!&nbsp; This is great news.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried it out and it works fine.&nbsp; Thank you!</DIV>
<DIV>-- Lisa</DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Marc Guillemot &lt;mguillemot@yahoo.fr&gt;: -------------- <BR><BR><BR>&gt; Hi Lisa, <BR>&gt; <BR>&gt; it's now fixed in CVS (CruiseControl should build it under number 560). <BR>&gt; I've added unit test and webtest, to be sure it will never fail again. <BR>&gt; <BR>&gt; Marc. <BR>&gt; <BR>&gt; Lisa Crispin wrote: <BR>&gt; &gt; Using build 548, I am running a script that works fine in the <BR>&gt; &gt; HTTPUnit-based WebTest. <BR>&gt; &gt; <BR>&gt; &gt; It gets this error now: <BR>&gt; &gt; com.canoo.webtest.engine.StepFailedException: No button found, Step: <BR>&gt; &gt; ClickButton at C:\java\eplan\test\WebTest\modules\acceptPlanDocs.xml:2: <BR>&gt; &gt; with (stepId="accept the plan docs ", name="acceptDocs", <BR>&gt; &gt; stepType="clickbutton") <BR>&gt; &gt; <BR>&gt; &gt; The HTML is: <BR>&gt; &gt; <INPUT class=formbutton onclick="javascript: location.href = &#13;&#10;<BR>> > 'step4.jsp?submit=1';" type=button value="Accept &#13;&#10;<BR>> > Plan Documents" name=acceptDocs>&nbsp; <BR>&gt; &gt; <BR>&gt; &gt; The WebTest script has: <BR>&gt; &gt; <CLICKBUTTON <BR stepid="accept the plan docs ">&gt; &gt; name="acceptDocs"/&gt; <BR>&gt; &gt; <BR>&gt; &gt; Why doesn't it think this is a button? Other buttons do work but they <BR>&gt; &gt; are type="submit". Seems like I had a problem with this once in the <BR>&gt; &gt; HTTPUnit-based WebTest, but it has worked now for a long time (this <BR>&gt; &gt; script runs every night). <BR>&gt; &gt; <BR>&gt; &gt; Thanks, <BR>&gt; &gt; Lisa <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; WebTest mailing list <BR>&gt; WebTest@lists.canoo.com <BR>&gt; http://lists.canoo.com/mailman/listinfo/webtest </BLOCKQUOTE>
<!-- END WEBMAIL STATIONERY -->

</body>
</html>

--NextPart_Webmail_9m3u9jl4l_12215_1100193704_0--