Hi Colin,

my Firefox agrees with htmlunit and shows an error too.

Your js is bad:
- document.onmousemove = getMouseXY(event)
-> this try to assign the return value of getMouseXY to the onmousemove handler. This doesn't make sense

- function getMouseXY is defined twice

Marc.

Colin O'Brien wrote:
Hi All,

I get the script exception noted in the included log output ‘log.07122006.JS-True.log’ (in .zip attached) when javascript is enabled.

Sample test case included.

Command: ant -buildfile testIncludedJs.xml

Log4j = Debug

Release 2.1 R1443

Exception Summary:

DEBUG (com.canoo.webtest.steps.request.TargetHelper) - ScriptException occured

======= EXCEPTION START ========

EcmaError: lineNumber=[68] column=[0] lineSource=[ if (e.pageX || e.pageY)] name=[TypeError] sourceName=[file:/C:/canoo/garbage/menu.js] message=[TypeError: Cannot read property "pageX" from null (file:/C:/canoo/garbage/menu.js#68)]

com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "pageX" from null (file:/C:/canoo/garbage/menu.js#68)

...

...

Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "pageX" from null (file:/C:/canoo/garbage/menu.js#68)

...

...

Enclosed exception:

org.mozilla.javascript.EcmaError: TypeError: Cannot read property "pageX" from null (file:/C:/canoo/garbage/menu.js#68)

Regards,

Colin.

*_________________________________________*

*Colin O’Brien*

*QA Manager*

* *

*CAPE Technologies,*

*Maple House, Temple Road, Blackrock, Co. Dublin*

* *

*e: [EMAIL PROTECTED]

*p: +353 1 4003 900*

*f: +353 1 4003 901*

*w: http://www.capetechnologies.com*

*_________________________________________*


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to