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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Whitfield, Jeff
  Sent: Donnerstag, 7. Dezember 2006 14:26
  To: [email protected]
  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.

Reply via email to