I'm using jWebUnit 2.0, which now has HtmlUnit support. When I try to test
my application with JavaScript enabled, I get the following error message.
======= EXCEPTION START ========
EcmaError: lineNumber=[9] column=[0] lineSource=[<no source>]
name=[TypeError]
sourceName=[http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototyp
e.js]
message=[TypeError: Cannot call method "indexOf" of null
(http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js#9)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call
method "indexOf" of null
(http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js#9)
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAc
tion.run(JavaScriptEngine.java:528)
at org.mozilla.javascript.Context.call(Context.java:502)
at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
A similar issue has been reported in jWebUnit's tracker:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1958470&group_
id=61302
Nobody/Anonymous
None
2.3
Public
|
Date: 2008-11-30 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2008-10-30 09:31 Pending for reporter feedback. |
|
Date: 2008-10-29 08:16 Can you provide the url of the page you're testing as well as the actions |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2008-11-30 02:20 | sf-robot |
| close_date | 2008-10-30 09:31 | 2008-11-30 02:20 | sf-robot |
| status_id | Open | 2008-10-30 09:31 | mguillem |
| close_date | - | 2008-10-30 09:31 | mguillem |