Hi Marc, First thank you and all others that have written and are maintaining WebTest application, it has helped me a lot with my work. Now let me explain my problem. At the bottom of this email you would find a very simple HTML which gives the following error message when invoked by WebTest. My version of WebTest is version R_1366:
========================================= Script error loading page executing webtest at: invoke Zero arguments; need an index or a key. (Embedded script in http://localhost:8080/test.html#4) Source code: function BADCALL(a) { a = document; len = LEN(a.links); } " ========================================== Early this year in this email alias, you mentioned addEventListener is not support in HTMLUNIT yet. First, would this explain the error? Second, if I change the code as I have indicated in the HTML, Webtest runs fine and does not complain. Does this mean there is partial support already for addEventListener, or I am completely of the mark? Thanks in advance, Koorosh ==================================================== <html> <head> <title>TEST PAGE</title> <script language="JavaScript"> _undef="undefined"; function LEN(a) { // To fix the problem comment out the following line and uncomment the two // lines after it. return a!=_undef?a.length:0 // type = typeof a; // return type!=_undef?a.length:0 } function BADCALL(a) { a=document; len=LEN(a.links); } function EVENT(a,b,c) { if (a.addEventListener) { a.addEventListener(b,c,false) } else if (a.attachEvent) { a.attachEvent("on"+b,c) } } EVENT(window,"load",BADCALL); </script> <body> <a href="/goto1">Link1</a> <a href="/goto2">Link2</a> </body> </html> ================================== _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

