David, Generally you should avoid to express to strong tests unless this is really what you want. Here you specify both name="Submit" and label="Submit". One from both is probably enough. When you write a test you should always keep in mind in which case you want the test to fail. Should it fail here when the name attribute of the button change even if the visible label doesn't change?
Cheers, Marc. -- Blog: http://mguillem.wordpress.com Klima, David wrote: > William, > > Thank you. > > Daivd Klima > > -----Original Message----- > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of *Soula, William > *Sent:* Thursday, February 07, 2008 1:12 PM > *To:* [email protected] > *Subject:* RE: [Webtest] clickButton yielding No Button Found message > > Try using a lowercase 's' in submit. I used the following code and > was able to click the submit button at > https://eaiweb.ed.gov/pics/loginfiles > > <config host="eaiweb.ed.gov" protocol="https" port="443"/> > <invoke url="/pics/loginfiles"/> > <clickButton name="submit"/> > > Surrounded by the proper tags of course. > > *William Soula* > QA Analyst > > *Pointserve, Inc.* > 110 Wild Basin Road > Suite 300 > Austin, Texas 78746 > O: 512.617.5311 > F: 512.617.0466 > > > ------------------------------------------------------------------------ > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf Of *Klima, David > *Sent:* Thursday, February 07, 2008 10:01 AM > *To:* [email protected] > *Cc:* Klima, David > *Subject:* [Webtest] clickButton yielding No Button Found message > > Hi, > > I'm brand new to webtest, using webtest.bat from 08/28/2007. > > For me, clickButton is yielding a message "No button found". > > Below are the offending line, and the resultant error from the > webtestresults.html file. > > I have searched the archives and done quite a bit of looking, but so > far have been unable to identify a solution for this (perhaps it's > because I'm so new to this). > > I would welcome any advice anyone may provide: > > Thanks Much, > > David Klima:: > > *FROM MY LOGIN.XML FILE:* > > <clickButton description="Click on the Submit button to login" > name="Submit" label="Submit"/> > > *END: FROM MY LOGIN.XML FILE:* > > > --------------------------------------------------------------------- > > > *FROM THE WEBTESTRESULTS.HTML FILE:* > > <failure filename="C:\WEBTEST_HOME\TESTBED\tests\login.xml" > line="26" message="No button found"> > <detail name="available buttons"><![CDATA[In current > form: > [HtmlImageInput[<input onmouseout="imgOut(12);" alt="Submit" > name="submit" > src="https://eaiweb.ed.gov/pics/loginfiles/submit_button.gif" > type="image" onmouseover="imgIn(12);">]]]]></detail> > > </failure> > * * > *END: FROM THE WEBTESTRESULTS.HTML FILE:*////// > > > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

