Hi,

I remember having this same problem a week ago.
Not sure how it eventually got fixed as I was having a number of issues
at the time.

Are you sure all dependent files are being loaded (eg other scripts, 
stylesheets etc)
Are you using dojo?

I think I used the debug option to show all responses from the server.

                                <groovy>
                                        import 
com.gargoylesoftware.htmlunit.util.DebuggingWebConnection

                                        def wc = step.context.webClient
                                        wc.webConnection = new 
DebuggingWebConnection(wc.webConnection, "Till")
                                </groovy>

I am not sure if I am supposed to be responding here but hope the above might 
help.



Nick


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Monday, 5 May 2008 7:02 PM
To: [email protected]
Subject: Re: AW: [Webtest] Error after update to Canoo webTest 2.6

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
>>
>>
>


"DISCLAIMER: This email, including any attachments, is intended only for use by 
the addressee(s) and may contain confidential and/or personal information and 
may also be the subject of legal privilege. If you are not the intended 
recipient, you must not disclose or use the information contained in it. In 
this case, please let me know by return email, delete the message permanently 
from your system and destroy any copies.

Before you take any action based upon advice and/or information contained in 
this email you should carefully consider the advice and information and 
consider obtaining relevant independent advice.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to