This might be better asked on the HtmlUnit mailing
list, but does anyone know if HtmlUnit supports global
variables defined in the an external .js file?
I get the following error when I try to load a
JavaScript function on this particular page.
[java] [clickElement]
com.gargoylesoftware.htmlunit.ScriptException:
TypeError: Cannot read property "childNodes" from
undefined
(http://localhost:9081/quoting/common/sorttable.js#333)
[java] [clickElement] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:307)
I've looked at the code, and the only thing that I can
see is peculiar is that 'undefined' is a global
variable in that sorttable.js file.
Note I'm not defending the that this JavaScript is
defined. Just trying to figure out why my browser
isn't throwing any JS errors yet HtmlUnit is
complaining mightily.
Jonathan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest