5 messages in com.canoo.lists.webtestRE: [Webtest] Script exception with J...
FromSent OnAttachments
Colin O'Brien07 Dec 2006 06:50.zip
Marc Guillemot07 Dec 2006 08:07 
Colin O'Brien07 Dec 2006 08:12 
Marc Guillemot07 Dec 2006 08:25 
Colin O'Brien08 Dec 2006 04:55 
Subject:RE: [Webtest] Script exception with JS Enabled...
From:Colin O'Brien (coli@capetechnologies.com)
Date:12/07/2006 08:12:18 AM
List:com.canoo.lists.webtest

Hi Marc,

Thanks for the reply... That menu.js script is some third party stuff from Liferay so I can't change it myself unfortunately... I will open an issue with the Liferay guys and see if they are willing to fix it...

Thanks again, regards, Colin.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com] On Behalf Of Marc Guillemot Sent: 07 December 2006 16:08 To: webt@lists.canoo.com Subject: Re: [Webtest] Script exception with JS Enabled...

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: coli@capetechnologies.com***

*p: +353 1 4003 900*

*f: +353 1 4003 901*

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

*_________________________________________*