Hi Latha,

The enableJavaScript step has the same form as the other steps.
You just need (false is the default but it is useful to leave
it in so that it is self documenting):

        <enableJavaScript enable="false"/>

You need to place it before the invoke step.

Cheers, Paul.


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

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

Reply via email to