tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Lewis Ship <hls...@gmail.com>
Subject Re: svn commit: r929532 - /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
Date Wed, 31 Mar 2010 17:32:26 GMT
I believe there's a method named waitForElementToAppear() for this
purpose (provided by one of the Tapestry base classes).

On Wed, Mar 31, 2010 at 6:32 AM,  <uli@apache.org> wrote:
> Author: uli
> Date: Wed Mar 31 13:32:36 2010
> New Revision: 929532
>
> URL: http://svn.apache.org/viewvc?rev=929532&view=rev
> Log:
> fix intermittently failing test
>
> Modified:
>    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
>
> Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java?rev=929532&r1=929531&r2=929532&view=diff
> ==============================================================================
> --- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
(original)
> +++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
Wed Mar 31 13:32:36 2010
> @@ -186,6 +186,8 @@ public class FormTests extends TapestryC
>         type("zipCode", "abc");
>
>         click(update); // but don't wait
> +
> +        waitForCondition("selenium.browserbot.getCurrentWindow().document.getElementById('zipCode:errorpopup')",
"5000");
>
>         assertTextPresent("A zip code consists of five or nine digits, eg: 02134
or 90125-4472.");
>
>
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message