[Webtest] Re: addEventListener is not a function: Again

John Gluck John Gluck" <John.Gluck@planitax.com
Wed, 17 Jan 2007 15:50:36 -0800


Hey Marc,

It has been a while, but I've had some spare time and have attempted to
upgrade to Webtest 2.1 again using the latest build files, which include
the htmlunit-1.10.

I am still getting the same error:

<failure message=3D"com.canoo.webtest.engine.StepFailedException:
Step[clickbutton "Click on login button" (7/22)]: Script error loading
page executing webtest at: clickbutton TypeError: addEventListener is
not a function, it is null.

Below, you told me this was due to htmlUnit and that it was fixed, but
apparently, it isn't.

This is a huge bummer for me because I'm running 1.6, which apparently
has a garbage collection problem with websteps and seems to be causing
and OutOfMemoryError for me.  I'm really trying to repair Webtest
because I don't want to give up my legacy regression tests, but at this
point, if this can't get fixed, I'm going to have to quit and start from
scratch.


=20
John Gluck
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Marc Guillemot
Sent: Sunday, October 15, 2006 2:12 AM
To: webtest@lists.canoo.com
Subject: [Webtest] Re: addEventListener is not a function

Hi John,

the message means that addEventListener didn't exist on the object. This

is (or was) a missing functionality of htmlunit: this has been=20
implemented for 1 or 2 weeks. You can build htmlunit from its source and

use it with webtest if you can't wait for next release.

Marc.

John Gluck wrote:
> I know this subject has been addressed already, but I need some help=20
> tracking down my problem
>=20
> =20
>=20
> My issue is that I run into the following error:
>=20
> =20
>=20
> BUILD FAILED
>=20
> _C:\webtest\UserCases\Tests\AllTestCases.xml:55: The following error=20
> occurred while executing this line:_
>=20
> _C:\webtest\UserCases\PreTasks\changeSystemSettings.xml:27: Canoo=20
> Webtest: R_1417._
>=20
> Test failed.
>=20
> Test step steps=20
> (C:\webtest\UserCases\PreTasks\changeSystemSettings.xml:29: ) null=20
> failed with message "Step[clickbutton "Click on login button" (7/25)]:

> Script error loading page executing webtest at: clickbutton TypeError:

> addEventListener is not a function, it is null.=20
> (http://localhost/..pathDeleted../SpryData.js#190)
>=20
> Source code:
>=20
> =20
>=20
> =20
>=20
> What follows is the SpryData.js prerelease 1.3 code from Adobe.  I=20
> understand (from reading many of Marc's posts) that htmlUnit is saying

> that it thinks addEventListener is null.  But who is wrong: htmlUnit
or=20
> SpryData.js
>=20
> =20
>=20
> I don't feel comfortable posting the SpryData code, so anyone
interested=20
> in helping me would have to down load it.=20
>=20
> =20
>=20
> https://www.adobe.com/cfusion/entitlement/index.cfm?e=3Dlabs%5Fspry
>=20
> =20
>=20
> I would like to file a bug against the appropriate party though
because=20
> I'd like to see this get fixed so I can upgrade to the newest version
of=20
> Canoo.
>=20
> //John Gluck//
>=20
> =20
>=20
> =20
>=20
> =20
>=20
> =20
>=20

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest