Hi, can you provide the code of a minimal html file allowing to reproduce the problem (and which works in a "normal" browser)?
Cheers, Marc. dariusch wrote: > Hi, > > i updated canoo to the current release. it contains HtmlUnit-2.1, but the > same error occurs. > > error message: > > JavaScript error loading page http://localhost:8080...: Wrapped > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read > property "length" from undefined (script in http://localhost:8080/... from > (204, 194) to (206, 15)#205) > (http://localhost:8080/js/mootools.js#3(eval)#1) > > the code snippet is like: > > ... > var form = document.getElementById('testForm'); > var = i < form.elements.length; > ... > > any solution? > > Thanks, > Dariusch > > > > Christoph Witych wrote: >> Thank You, Marc! >> >> Cheers, >> Christoph >> >> >> -----Ursprüngliche Nachricht----- >> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Im Auftrag von Marc Guillemot >> Gesendet: Dienstag, 29. April 2008 11:56 >> An: [email protected] >> Betreff: Re: [Webtest] Error after update to Canoo webTest 2.6 >> >> Hi, >> >> this is not a bug. A new build of WebTest containing HtmlUnit-2.1 will >> probably be available today. Just wait a bit ;-) >> >> Cheers, >> Marc. >> >> dariusch wrote: >>> Hi, >>> >>> is this problem a bug or can i do something ? >>> >>> Thanks, >>> Dariusch >>> >>> >>> >>> >>> dariusch wrote: >>>> Hi, >>>> >>>> i add the HtmlUnit-2.1.jar into the Canoo Webtest project, but i get the >>>> same error message. the code is like: >>>> >>>> ... >>>> var form = document.getElementById('testForm'); >>>> var = i < form.elements.length; >>>> ... >>>> >>>> Thanks, >>>> Dariusch >>>> >>>> >>>> >>>> >>>> >>>> >>>> Marc Guillemot wrote: >>>>> I guess that the problem is that some js code now gets evaluated, which >>>>> wasn't the case previously. In this case this seems to be done >>>>> incorrectly ;-( >>>>> >>>>> WebTest will soon contain HtmlUnit-2.1 which contains huge improvements >>>>> compared to release 1.14. Perhaps will this already fix you problem. >>>>> Otherwise it would be helpful if you could provide a minimal code >>>>> allowing to reproduce the issue. >>>>> >>>>> Cheers, >>>>> Marc. >>>>> -- >>>>> Blog: http://mguillem.wordpress.com >>>>> >>>>> >>>>> dariusch wrote: >>>>>> Hello, >>>>>> >>>>>> after i updated the Canoo Webtest to 2.6 i get this error in a lot of >>>>>> tescases: >>>>>> >>>>>> JavaScript error loading page http://localhost:8080/.../index.html: >>>>>> Wrapped >>>>>> com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read >>>>>> property "length" from undefined (script in >>>>>> http://localhost:8080/.../index.html from (199, 194) to (201, 15)#200) >>>>>> (http://localhost:8080/js/mootools.js#3(eval)#1) >>>>>> >>>>>> everybody has an idea what's the problem? >>>>>> >>>>>> Thanks, >>>>>> Dariusch >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> >> > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

