[Webtest] Clickbutton not finding the button

Dierk Koenig Dierk Koenig" <dierk.koenig@canoo.com
Thu, 7 Dec 2006 14:40:20 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C71A0D.9EF79070
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Clickbutton not finding the buttonwebtest may not be able to find your
button because the html is invalid.

try using a validator on your html.
-> doubled src attribute
-> single quotes inside double quotes on purpose?

ciao
Dierk
  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Whitfield, Jeff
  Sent: Donnerstag, 7. Dezember 2006 14:26
  To: webtest@lists.canoo.com
  Subject: [Webtest] Clickbutton not finding the button


  In one of my tests I am attempting to click on a submit button:
  <clickbutton description="Submit" name="STORE.DUMENT1.PSD" />

  but it appears that the button is not found.  In RESULTS.XML I am getting
an error:
   <failure message="com.canoo.webtest.engine.StepFailedException: No button
found, Step: ClickButton at E:\Public\Tests Page.tst:84:  with
(taskName=&quot;clickbutton&quot;, description=&quot;Submit&quot;,
name=&quot;STORE.DUMENT1.PSD&quot;)"/>

  It looks to me like the button is in the HTML.  When I view the source of
the captured page, I can see it:
  <INPUT type="image" name="STORE.DUMENT1.PSD"
src="../langs/en-us/images/submit.gif"
src="'../langs/en-s/images/submit.gif'" value="'submit'" border="'0'">

  I don't see any help in the log.  With the level set to "debug", the
pertinent part of the log says:
  >>> TASK STARTED -- ClickButton at E:\Public\Tests\Page.tst:84:  with
(taskName="clickbutton", description="Submit", name="STORE.DUMENT1.PSD")

  <<< TASK FINISHED -- ClickButton at E:\Public\Tests\Page.tst:84:  with
(taskName="clickbutton", description="Submit", name="STORE.DUMENT1.PSD")

  Any suggestions?  Can anyone tell me under what conditions the "No button
found" message occurs?

  Thanks,

  Jeff L. Whitfield

  Systems Analyst

  (313)227-0518

  7W-2606


  The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

------=_NextPart_000_0017_01C71A0D.9EF79070
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Clickbutton not finding the button</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2995" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =

size=3D2>webtest may not be able to find your button because the html is =

invalid.</FONT></SPAN></DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =
size=3D2>try=20
using a validator on your html.</FONT></SPAN></DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =
size=3D2>-&gt;=20
doubled src attribute</FONT></SPAN></DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =
size=3D2>-&gt;=20
single quotes inside double quotes on purpose?</FONT></SPAN></DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =

size=3D2>ciao</FONT></SPAN></DIV>
<DIV><SPAN class=3D845453713-07122006><FONT face=3DArial color=3D#0000ff =

size=3D2>Dierk</FONT></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>Whitfield, Jeff<BR><B>Sent:</B> Donnerstag, 7. Dezember =
2006=20
  14:26<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> =
[Webtest]=20
  Clickbutton not finding the button<BR><BR></FONT></DIV><!-- Converted =
from text/rtf format -->
  <P><FONT face=3DArial size=3D2>In one of my tests I am attempting to =
click on a=20
  submit button:</FONT> <BR><FONT face=3D"Arial Narrow" =
size=3D2>&lt;clickbutton=20
  description=3D"Submit" name=3D"STORE.DUMENT1.PSD" /&gt;</FONT> </P>
  <P><FONT face=3DArial size=3D2>but it appears that the button is not =
found.&nbsp;=20
  In RESULTS.XML I am getting an error:</FONT> <BR><FONT face=3D"Arial =
Narrow"=20
  size=3D2>&nbsp;&lt;failure=20
  message=3D"com.canoo.webtest.engine.StepFailedException: No button =
found, Step:=20
  ClickButton at E:\Public\Tests Page.tst:84:&nbsp; with=20
  (taskName=3D&amp;quot;clickbutton&amp;quot;,=20
  description=3D&amp;quot;Submit&amp;quot;,=20
  name=3D&amp;quot;STORE.DUMENT1.PSD&amp;quot;)"/&gt;</FONT></P>
  <P><FONT face=3DArial size=3D2>It looks to me like the button is in =
the=20
  HTML.&nbsp; When I view the source of the captured page, I can see =
it:</FONT>=20
  <BR><FONT face=3D"Arial Narrow" size=3D2>&lt;INPUT type=3D"image"=20
  name=3D"STORE.DUMENT1.PSD" src=3D"../langs/en-us/images/submit.gif"=20
  src=3D"'../langs/en-s/images/submit.gif'" value=3D"'submit'"=20
  border=3D"'0'"&gt;</FONT></P>
  <P><FONT face=3DArial size=3D2>I don't see any help in the log.&nbsp; =
With the=20
  level set to "debug", the pertinent part of the log says:</FONT> =
<BR><FONT=20
  face=3D"Arial Narrow" size=3D2>&gt;&gt;&gt; TASK STARTED -- =
ClickButton at=20
  E:\Public\Tests\Page.tst:84:&nbsp; with (taskName=3D"clickbutton",=20
  description=3D"Submit", name=3D"STORE.DUMENT1.PSD")</FONT></P>
  <P><FONT face=3D"Arial Narrow" size=3D2>&lt;&lt;&lt; TASK FINISHED -- =
ClickButton=20
  at E:\Public\Tests\Page.tst:84:&nbsp; with (taskName=3D"clickbutton",=20
  description=3D"Submit", name=3D"STORE.DUMENT1.PSD")</FONT></P>
  <P><FONT face=3DArial size=3D2>Any suggestions?&nbsp; Can anyone tell =
me under=20
  what conditions the "No button found" message occurs?</FONT> </P>
  <P align=3Dcenter><FONT face=3DArial size=3D2>Thanks,</FONT></P>
  <P align=3Dcenter><I><FONT face=3D"Monotype Corsiva" size=3D5>Jeff L.=20
  Whitfield</FONT></I></P>
  <P align=3Dcenter><FONT face=3DArial size=3D2>Systems =
Analyst</FONT></P>
  <P align=3Dcenter><FONT face=3DArial size=3D2>(313)227-0518</FONT></P>
  <P align=3Dcenter><FONT face=3DArial =
size=3D2>7W-2606</FONT></P><BR>The contents of=20
  this e-mail are intended for the named addressee only. It contains =
information=20
  that may be confidential. Unless you are the named addressee or an =
authorized=20
  designee, you may not copy or use it, or disclose it to anyone else. =
If you=20
  received it in error please notify us immediately and then destroy it. =

</BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0017_01C71A0D.9EF79070--