I'll have a look.
On 31.03.2010 19:32, Howard Lewis Ship wrote:
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,<[email protected]> 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.");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]