3 messages in com.canoo.lists.webtestAW: [Webtest] Unable to locate a button
FromSent OnAttachments
Goeschl Siegfried15 Apr 2003 04:56 
Aatish Arora15 Apr 2003 06:34 
Goeschl Siegfried15 Apr 2003 09:19 
Subject:AW: [Webtest] Unable to locate a button
From:Goeschl Siegfried (S.Go@together.at)
Date:04/15/2003 09:19:46 AM
List:com.canoo.lists.webtest

I was using the Maven plugin which used newer JARs than the original Canoo
WebTest Distro. According to the HTTPUnit documentation there is no
"HTMLParseErrorListener" implemented for NekoHTML therefore no HTML parser
warnings showed up.

When reverting to the JARs of the official Canoo WebTest it was still not clear
to me what the Jtidy actually leaves from the the HTML page. I played around
with a C++ Tidy GUI and XPathExplorer to no avail. Hence I patched the Canoo
WebTest Plugin to dump the HTML DOM tree - viola, no wonder I was not able to
find my buttons - they were not there any longer. And it helped to fix the
broken HTML pages since the developers can review the changes ... Otherwise they
say "Oh, my Internet Explorer works fine" ... :-(

Sigi

-----Ursprüngliche Nachricht----- Von: Healey, Thomas [mailto:Heal@darden.virginia.edu] Gesendet: Dienstag, 15. April 2003 16:54 An: webt@lists.canoo.com Betreff: RE: [Webtest] Unable to locate a button

Sigi, Why didn't the showhtmlparseroutput config item work for you? Tom

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com] On
Behalf Of Goeschl Siegfried Sent: Tuesday, April 15, 2003 7:57 AM To: webt@lists.canoo.com Subject: AW: [Webtest] Unable to locate a button

Hi Aatish,

I had similar problems resulting from invalid HTML code. Trouble is that the
newer versions of HTTPUnit with NekoHTML do not report those parser warnings (is
the case for the MAVEN plugin)

Some things to check the HTML code and HTML parser warnings

+) Try to get your webtest running with the original JARS from the Canoo +Webtest distribution +) Try to run the webtest directly with ANT from the Canoo Webtest distribution +) I patched Canoo WebTest do dump the HTML DOM tree - was a big surprise for me

Cheers,

Sigi

PS: I can send you the patched Canoo WebTest JAR if you like - I hope that
dumping the HTML DOM output becomes part of th distribution (hint, hint, hint)

-----Ursprüngliche Nachricht----- Von: Aatish Arora [mailto:a_aa@yahoo.com] Gesendet: Dienstag, 15. April 2003 12:43 An: Canoo Forum Betreff: [Webtest] Unable to locate a button

Hi All,

I have a small problem - I have a button nested in a table (html code included) and Canoo is not able to find it :(. It gives me the following error:

com.canoo.webtest.engine.StepFailedException: Button with name <Submit> and value <Create > not found!, Step: ClickButton(id="Click on the Create button"label=Create )

Its of the type Submit - so the "button" tag issue is out of the picture.

I tried using the index locator too! but it doesent wrk :(

Any Clues??

regards, Aatish

<form> <div align="center"> <table width="88%" border="1" cellpadding="3" cellspacing="0" height="214"> <tr> <td height="48" colspan="6"> <table width="100%" border="0"> <tr> <td> <h3 align="center">Class 1</h3> </td> </tr> </table> </td> </tr>

<tr> <td height="19" colspan="6"> <table width="100%" border="0"></table> </td> </tr> <tr> <td height="62" rowspan="2" width="13%"><b> ID </b> <td height="62" rowspan="2" colspan="5"><b>Class Name </b> <tr>

<tr>

<td height="31" width="13%"><a href="class.do">101</a> <td height="31" colspan="5">Class1 <tr>

<tr>

<td height="31" width="13%"><a href="class2.do?">102</a> <td height="31" colspan="5">Class2 <tr>

<tr>

<td height="31" width="13%"><a href="class3.do?">103</a> <td height="31" colspan="5">Class3 <tr>

<tr>

<td height="31" width="13%"><a href="class4.do?">104</a> <td height="31" colspan="5">Class4 <tr>

<tr>

<td height="31" width="13%"><a href="m1">10010</a> <td height="31" colspan="5">class 21 <tr>

<tr> <td height="38" colspan="6"> <table width="101%" border="0"> <tr> <td width="12%"> <input type="submit" name="Submit" value="Create " onClick = "(location.href='yahoo.do?method=view');">

</td> <td width="6%"><a href="mno.do?method=list">First</a> </td> <td width="8%"><a href="dec.do?method=list">Previous</a> </td> <td width="8%"><a href="abc.do?method=list">Next</a></td>

<td colspan="2" width="8%"><a href="xyz.do?method=list">Last</a> </td> </tr> </table> </table> </div> </form>

===== ================================================ Six monkeys pounding on six typewriters at random for a million years will
recreate all the works of Isaac Asimov.
================================================