[Webtest] Re: addEventListener is not a function
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Sun, 15 Oct 2006 11:11:41 +0200
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
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
> tracking down my problem
>
>
>
> My issue is that I run into the following error:
>
>
>
> BUILD FAILED
>
> _C:\webtest\UserCases\Tests\AllTestCases.xml:55: The following error
> occurred while executing this line:_
>
> _C:\webtest\UserCases\PreTasks\changeSystemSettings.xml:27: Canoo
> Webtest: R_1417._
>
> Test failed.
>
> Test step steps
> (C:\webtest\UserCases\PreTasks\changeSystemSettings.xml:29: ) null
> 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.
> (http://localhost/..pathDeleted../SpryData.js#190)
>
> Source code:
>
>
>
>
>
> What follows is the SpryData.js prerelease 1.3 code from Adobe. I
> understand (from reading many of Marc’s posts) that htmlUnit is saying
> that it thinks addEventListener is null. But who is wrong: htmlUnit or
> SpryData.js
>
>
>
> I don’t feel comfortable posting the SpryData code, so anyone interested
> in helping me would have to down load it.
>
>
>
> https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5Fspry
>
>
>
> I would like to file a bug against the appropriate party though because
> I’d like to see this get fixed so I can upgrade to the newest version of
> Canoo.
>
> //John Gluck//
>
>
>
>
>
>
>
>
>