[Webtest] Unable to locate a button

Healey, Thomas webtest@lists.canoo.com
Tue, 15 Apr 2003 10:54:22 -0400


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

-----Original Message-----
From: webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Goeschl Siegfried
Sent: Tuesday, April 15, 2003 7:57 AM
To: webtest@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=FCngliche Nachricht-----
Von: Aatish Arora [mailto:a_aatish@yahoo.com]=20
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=3D"Click on the Create
button"label=3DCreate )


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=3D"center">
  <table width=3D"88%" border=3D"1" cellpadding=3D"3"
cellspacing=3D"0" height=3D"214">
    <tr>=20
      <td height=3D"48" colspan=3D"6">=20
        <table width=3D"100%" border=3D"0">
          <tr>=20
            <td>=20
              <h3 align=3D"center">Class 1</h3>
            </td>
          </tr>
        </table>
      </td>
    </tr>
   =20
    <tr>=20
      <td height=3D"19" colspan=3D"6">=20
        <table width=3D"100%" border=3D"0"></table>
      </td>
    </tr>
    <tr>=20
      <td height=3D"62" rowspan=3D"2" width=3D"13%"><b> ID
</b>=20
      <td height=3D"62" rowspan=3D"2" colspan=3D"5"><b>Class
Name </b>=20
    <tr>=20

   =20
    <tr>=20
   =20
      <td height=3D"31" width=3D"13%"><a
href=3D"class.do">101</a>
      <td height=3D"31" colspan=3D"5">Class1
    <tr>    =20
   =20
    <tr>=20
   =20
      <td height=3D"31" width=3D"13%"><a
href=3D"class2.do?">102</a>
      <td height=3D"31" colspan=3D"5">Class2
    <tr>    =20
   =20
    <tr>=20
   =20
      <td height=3D"31" width=3D"13%"><a
href=3D"class3.do?">103</a>
      <td height=3D"31" colspan=3D"5">Class3
    <tr>    =20
   =20
    <tr>=20
   =20
      <td height=3D"31" width=3D"13%"><a
href=3D"class4.do?">104</a>
      <td height=3D"31" colspan=3D"5">Class4
    <tr>    =20
   =20
    <tr>=20
   =20
      <td height=3D"31" width=3D"13%"><a
href=3D"m1">10010</a>
      <td height=3D"31" colspan=3D"5">class 21
    <tr>    =20
       =20
    <tr>=20
      <td height=3D"38" colspan=3D"6">=20
        <table width=3D"101%" border=3D"0">
          <tr>=20
            <td width=3D"12%">=20
              <input type=3D"submit" name=3D"Submit"
value=3D"Create " onClick =3D
"(location.href=3D'yahoo.do?method=3Dview');">           =20
=20
            </td>
            <td width=3D"6%"><a href=3D"mno.do?method=3Dlist">First</a>=20
            </td>
            <td width=3D"8%"><a =
href=3D"dec.do?method=3Dlist">Previous</a>=20
            </td>
            <td width=3D"8%"><a =
href=3D"abc.do?method=3Dlist">Next</a></td>
           =20
            <td colspan=3D"2" width=3D"8%"><a =
href=3D"xyz.do?method=3Dlist">Last</a> </td>=20
          </tr>
        </table>
  </table>
</div>
</form>

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

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com =
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest