Hi,

JavaScript processing in JWebUnit is dependent on underlying testing engine 
which is currently HtmlUnit. Here is what you should try:

1) Try to use latest HtmlUnit version (1.14)
2) If it doesn't work, please try to reproduce the error with the smallest test 
case (a little HTML file with the broken JS). Then open a bug on HtmlUnit 
project.

Regards

Julien

----- Message d'origine ----
De : Eve Sun <[EMAIL PROTECTED]>
À : jwebunit-users@lists.sourceforge.net
Envoyé le : Mardi, 26 Février 2008, 23h38mn 09s
Objet : [JWebUnit-users] Issue with prototype.js

Dear Sir,

 

When I was testing a webpage using beginAt(url), I've got javascript exception 
like below:


2797 ERROR  [main] com.gargoylesoftware.htmlunit.html.HtmlPage : Error loading 
javascript from [http://:]: 


which was actually caused by the prototype.js#3947:


   document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");


I read somewhere that the htmlunit's webclient that jwebunit is using is 
actually pretending to be MSIE and it choked on the above line.,
Is there any solution that can I can use to fix the above? will 
disableJavaScriptException will help? how?


 

Currently I have to disable scripe in the testcode to make it work. But I would 
prefer to test the javascript later using HtmlUnit.

 


Thanks,

 

Eve



-----La pièce jointe correspondante suit-----

-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


-----La pièce jointe correspondante suit-----

_______________________________________________
JWebUnit-users 
mailing 
list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users







      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
http://mail.yahoo.fr
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to