Hi, I don't think that there is any problem with enableJavaScript: the application is probably not designed to work correctly when JS is de deactivated and then reactivated.
Nevertheless, if WebTest doesn't behave like your real browser, it probably indicates a bug in HtmlUnit's JS support. Please try to isolate it to provide a minimal example of the problem. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com srinu vasu wrote: > Vihang Desai & All > Finally I was able to resolve the issue, The problem is > "enableJavaScript" is not functioning properly. > > Before making ajax calls I had to disable the java script and > re-enable it, for details look below code > > enableJavaScript enable : false > clickElement xpath : "//a...@href='xyz/771891755']" > enableJavaScript enable : true > > //ajax calls, > > setCheckbox xpath : "//inp...@id='a']" > > Above piece of code couldn't re-enable java script as a result my AJAX > calls are not reaching to server as a result I am getting error. After > removing disablling/enabling java script functionality my AJAX calls > reaching server. > > Thanks all... > > > On Fri, May 29, 2009 at 5:31 PM, srinu vasu <[email protected]> wrote: >> I tried by using sleep command also but no luck. Thanks Desai >> >> On Fri, May 29, 2009 at 12:30 AM, Vihang Desai <[email protected]> wrote: >>> Hi Srinu, >>> >>> >>> Have you tried using the sleep command? I use the following sleep method >>> when i am trying give time for my steps to excicute on the browser. >>> >>> Grovvy code: >>> sleep seconds: "20" >>> >>> XML Code: >>> <sleep seconds="20"/> >>> >>> >>> >>> >>> >>> On Thu, May 28, 2009 at 4:10 AM, srinu vasu <[email protected]> wrote: >>>> Hi All, >>>> I am very new to canoo webtest. A task has been assigned to write an >>>> webtest to test an application in which I need to handle AJAX calls. >>>> My test continuesly failing while dealing with AJAX calls. I tried >>>> using [easyajax :"true",easyajaxdelay : "5000" ] in config but no >>>> luck. Can any body share their experience with this issue. >>>> >>>> Here is the scenario, I have two frames, one frame has two check >>>> boxes and second frame has a results, after choosing a text box at >>>> first frame few AJAX events will be fired and results will be >>>> populated in the second frame. I am able to choose these check boxes >>>> and AJAX calls also raised as well but my next step is executing >>>> before loading the second frame as result error. Do we have any step >>>> which will stop execution for some time so that I can delay the >>>> further steps or do we have any clear way to handle this. >>>> >>>> Thanks in advance. >>>> Srini. >>>> _______________________________________________ >>>> WebTest mailing list >>>> [email protected] >>>> http://lists.canoo.com/mailman/listinfo/webtest >>> >>> >>> -- >>> __________________________ >>> Vihang Desai >>> Test Engineer (U.S. Citizen) >>> > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

