3 messages in com.canoo.lists.webtestRe: AW: [Webtest] Unable to locate a ...| From | Sent On | Attachments |
|---|---|---|
| Goeschl Siegfried | 15 Apr 2003 04:56 | |
| Aatish Arora | 15 Apr 2003 06:34 | |
| Goeschl Siegfried | 15 Apr 2003 09:19 |
| Subject: | Re: AW: [Webtest] Unable to locate a button![]() |
|---|---|
| From: | Aatish Arora (a_aa...@yahoo.com) |
| Date: | 04/15/2003 06:34:39 AM |
| List: | com.canoo.lists.webtest |
Hi Siegfried,
Thanks a tonne! I got the parser working though - with the maven plugin.
Just one doubt - The parser shows me errors like:
parserErrors "[24,11]Missing attribute name. [112,1]Missing attribute name."
parserWarnings "[24,18]End element <TD> automatically closes element <HLINE>. [204,1]Element <CENTER> not closed properly. [204,1]Element <TD> not closed properly. [204,1]Element <TR> not closed properly. [204,1]Element <TABLE> not closed properly. [204,1]Element <BODY> not closed properly. [204,1]Element <HTML> not closed properly.
What do the numbers in the bracket stand for? ("[24,11]" for eg.)?
Would really appreciate if u send me the dom tree dumper too :)
Besides we might have some good news on some of the JS support soon ;)
Cheers! Aatish
--- Goeschl Siegfried <S.Go...@together.at> wrote:
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. ================================================
__________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
=====
================================================
Six monkeys pounding on six typewriters at random for a million years will
recreate all the works of Isaac Asimov.
================================================
__________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com




