Hi, attachEvent is (perhaps only partially) supported since htmlunit 1-10 which is used in WebTest since it's available. Just try with the latest WebTest build.
Marc. Padma latha wrote: > > Hi there - > > Sorry to copy the admin as well, but I never see my questions > really appearing the the list at all. Every time I post a query it > get into the moderator approval pendig. This is urget to our > project and I do not know how best to reach Canoo community. > > Pls help! > > "We have existing jsf component tests written using Canoo. We are now > introducing dojo widgets to our product and this is causing our tests > to fail since the attachEvent function is not supported in htmlunit > (or at least as of Canoo 2.1). > > Can anyone recommend a work around other than getting the function > supported in htmlunit (or has this happened yet)? > > Here is a snip of what is seen when Canoo goes to build and execute: > > #com.canoo.webtest.engine.StepFailedException: Step[invoke "Navigate > to Main Page" (1/2)]: Script error loading page executing webtest at: > invoke TypeError: Cannot find function attachEvent. > (http://localhost:8081/example/theme/dojo.js#856) > > Does anyone have any sample code to share on how to disable javascript > in the tests? Does the enableJavaScript step have to be the first > step in the xml or does it follow the invoke? The Canoo website > didn't have any examples showing how to setup the xml for this process. " > > Thanks for all your help > Latha > > -- View this message in context: http://www.nabble.com/Pls-Help%3A-attachEvent-question---dojo---javascript-tf3187814.html#a8881369 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

