[seam-commits] Seam SVN: r15108 - branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Sep 4 07:37:03 EDT 2012
Author: maschmid
Date: 2012-09-04 07:37:02 -0400 (Tue, 04 Sep 2012)
New Revision: 15108
Modified:
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/ConversationTest.java
Log:
functional tests, add a slight delay after browser.openWindow in booking conversationTest to resolve intermittent ftest failures
Modified: branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/ConversationTest.java
===================================================================
--- branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/ConversationTest.java 2012-09-04 10:53:25 UTC (rev 15107)
+++ branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/ConversationTest.java 2012-09-04 11:37:02 UTC (rev 15108)
@@ -47,7 +47,17 @@
// Start booking in window 1
browser.openWindow(CONTEXT_PATH + getProperty("MAIN_PAGE"), "1");
browser.openWindow(CONTEXT_PATH + getProperty("MAIN_PAGE"), "2");
+
+ // A slight delay seems to be necessary for some reason after openWindow (doesn't wait for a redirect maybe?)
+ try
+ {
+ Thread.sleep(1000);
+ }
+ catch (InterruptedException e)
+ {}
+
browser.selectWindow("1");
+
if (!isLoggedIn()) {
login();
}
More information about the seam-commits
mailing list