[Webtest] Re: ClickButton problems

Lisa Crispin webtest@lists.canoo.com
Wed, 06 Apr 2005 17:56:41 +0000


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

Clickbutton will find by value, but you have to use 'label="Invia"'.  I guess the example in the doc is bad.

In all our new development, we use htmlid (id of the button in the html), it works best for us.  But we do have lots of scripts using label/value.
-- Lisa

-------------- Original message from Roberto Corda <roberto.corda@sinapsi.com>: -------------- 


> On Wednesday 06 April 2005 18:36, Marc Guillemot wrote: 
> > Roberto Corda wrote: 
> > > version 1.7 
> > > 
> > > ClickButton doesn't find "Invia" button on my html, If any one have any 
> > > clue thanks. 
> > 
> > neither do I. I see a button with value "Invia" but without a name 
> > attribute. 
> 
> That's true thank you again, your "human html parsing" is better than mine... 
> anyway (reading http://webtest.canoo.com/manual/syntax.html#clickButton) 
> 
> clickButton 1 
> 
> 

> 
Text: 
>  
>  
> 

> 
> > name="doIt" /> 
> 
> Seems like ClickButton find buttons also by value. (Usually submit buttons 
> dosn't have name) 
> 
> Thank you again R. 
> 
> 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 
--NextPart_Webmail_9m3u9jl4l_11314_1112810201_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>Clickbutton will find by value, but you have to use 'label="Invia"'.&nbsp; I guess the example in the doc&nbsp;is bad.</DIV>
<DIV>&nbsp;</DIV>
<DIV>In all our new development, we use htmlid (id of the button in the html), it works best for us.&nbsp; But we do have lots of scripts using label/value.</DIV>
<DIV>-- Lisa<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Roberto Corda &lt;roberto.corda@sinapsi.com&gt;: -------------- <BR><BR><BR>&gt; On Wednesday 06 April 2005 18:36, Marc Guillemot wrote: <BR>&gt; &gt; Roberto Corda wrote: <BR>&gt; &gt; &gt; version 1.7 <BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; ClickButton doesn't find "Invia" button on my html, If any one have any <BR>&gt; &gt; &gt; clue thanks. <BR>&gt; &gt; <BR>&gt; &gt; neither do I. I see a button with value "Invia" but without a name <BR>&gt; &gt; attribute. <BR>&gt; <BR>&gt; That's true thank you again, your "human html parsing" is better than mine... <BR>&gt; anyway (reading http://webtest.canoo.com/manual/syntax.html#clickButton) <BR>&gt; <BR>&gt; clickButton 1 <BR>&gt; <BR>&gt; 
<FORM action=formTest method=post><BR>&gt; <BR>Text: <BR>&gt; <INPUT name=field1> <BR>&gt; <INPUT type=submit value=doIt> <BR>&gt; </FORM><BR>&gt; <BR>&gt; <CLICKBUTTON <BR stepid="Submit the simple form">&gt; name="doIt" /&gt; <BR>&gt; <BR>&gt; Seems like ClickButton find buttons also by value. (Usually submit buttons <BR>&gt; dosn't have name) <BR>&gt; <BR>&gt; Thank you again R. <BR>&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_11314_1112810201_0--