Hi Andrew, what do you mean with "there is no text in clickButton result page"?
verifyText works on the rough text of the last response page from server. If the page content has been changed dynamically (for instance after XMLHttpRequest usage), it won't be seen! In other words, verifyText works on step.context.currentResponse.webResponse.contentAsString and NOT on step.context.currentResponse.asXml() Cheers, Marc. Andrew Sickorsky wrote: > > Hello all! > > I faced with AJAX problem: for some reason page doesn't updated after > XmlHttpRequest performed (Prototype library was used; ideally some text > should appear, but nothing happens). Env: last build of HtmlUnit, > Webtest R1619, ant 1.6.5 were used. Tested with IE and FF user agents. > > Steps: > - open page (<invoke> > - fill in form and submit (<setInputField> + <clickButton> + <groovy> > print currentResponce) > - verify that page text changes (it should! - <verifyText>) > > Interesting point: there is no text in clickButton result page though it > is in the groovy printed current responce though verfiyText finds nothing. > > Thanks in advance > Andrew > > > > begin:vcard > fn:Andrew Sickorsky > n:Sickorsky;Andrew > org:texunatech > adr;dom:;;Magistralnaya street, 5 - 33;Moscow > email;internet:[EMAIL PROTECTED] > title:Tester > tel;work:+7 495 9809067 > tel;cell:+7 909 9070328 > x-mozilla-html:TRUE > url:www.texunatech.com > version:2.1 > end:vcard > > > -- View this message in context: http://www.nabble.com/-Fwd%3A-XmlHttpRequest%3A-page-text-doesn%27t-change-after-ajax-call-though-it-should.--tf4675543.html#a13362681 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

