[seam-commits] Seam SVN: r11582 - branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Oct 14 08:31:33 EDT 2009
Author: mgencur at redhat.com
Date: 2009-10-14 08:31:32 -0400 (Wed, 14 Oct 2009)
New Revision: 11582
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/SellTest.java
Log:
added waiting for list items
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/SellTest.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/SellTest.java 2009-10-14 11:05:03 UTC (rev 11581)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/SellTest.java 2009-10-14 12:31:32 UTC (rev 11582)
@@ -35,6 +35,8 @@
*/
public class SellTest extends SeleniumSeamBayTest
{
+ private long listWaitTime = 5000;
+
@Test(dependsOnGroups={"searchTest"})
public void joystickSellingTest()
{
@@ -79,6 +81,16 @@
return browser.isElementPresent(getProperty("SELL_CATEGORY_SELECT_SECOND_OPTION"));
}
};
+ /*this sleeping is necessary because although the previous waiting ensures the 14. option present in select component in
+ java code, the web page on its own is not ready yet*/
+ try
+ {
+ Thread.sleep(listWaitTime);
+ }
+ catch (InterruptedException e)
+ {
+ }
+
browser.select(getProperty("SELL_CATEGORY_SELECT"), "index=" + category);
if (subcategory != 0)
{
More information about the seam-commits
mailing list