[Webtest] Re: richFaces Ajax + content not updated (Keusch Florian)
Marc Guillemot <firstname.lastname@example.org>
Tue, 15 Jul 2008 09:23:21 +0200
XPath is very powerfull and verifyXPath allows to verify nearly
everything in your page.
You can surely add a sleep and it is possible to write a waitForElement
à la Selenium but I think that it should not be necessary (ok, it's not
yet fully the case).
I don't understand what you mean with "WebTest will go into a loop".
Paul Beck wrote:
> It appears this is the same issue I was seeing attempting to use
> WebTest against the Petstore 2.0 application. The suggested solution
> to use <verifyXPath> does not seem viable, as what I want to do is to
> verify the content displayed, not the existence/validity of a link or
> object on the page. Perhaps I don't understand how <verifyXPath>
> works. At any rate, since Watir and Selenium handle this situation
> quite nicely by inserting a pause/sleep to wait for the content to be
> rendered, I don't understand why WebTest cannot work the same. As I
> noted in a prior post, if you attempt to cause WebTest to wait for the
> completed response by inserting a <sleep> or by setting the <config>
> option "easyAjax", WebTest will go into a loop.
> Paul Beck
>> Date: Wed, 9 Jul 2008 12:55:44 +0200
>> From: "Keusch Florian" <email@example.com>
>> To: <firstname.lastname@example.org>
>> Subject: [Webtest] Re: richFaces Ajax + content not updated
>> Reply-To: email@example.com
>> Reply-To: "Keusch Florian" <firstname.lastname@example.org>
>> i've a simple test applied on the richFaces demo to show this problem:
>> <webtest name=3D"richFaces demo - test ajax commandButton">
>> <setInputField name=3D"j_id221:j_id224" value=3D"florian"/>
>> <clickButton label=3D"Say Hello" name=3D"j_id221:j_id225"/>
>> <verifyText description=3D"Verify that text is contained in the page"
>> text=3D"Hello florian! "/>
>> You'll see that the step verifyText fails because the page content was
>> not updated! I used a http proxy=20
>> Using webtest r_1710 (with htmlunit 2.1)
>> Greetings Florian
> WebTest mailing list