[seam-commits] Seam SVN: r12102 - tags/JBoss_Seam_2_2_1_CR1/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Mar 5 04:32:13 EST 2010
Author: jharting
Date: 2010-03-05 04:32:12 -0500 (Fri, 05 Mar 2010)
New Revision: 12102
Modified:
tags/JBoss_Seam_2_2_1_CR1/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java
Log:
JBSEAM-4561
Modified: tags/JBoss_Seam_2_2_1_CR1/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java
===================================================================
--- tags/JBoss_Seam_2_2_1_CR1/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java 2010-03-05 09:16:57 UTC (rev 12101)
+++ tags/JBoss_Seam_2_2_1_CR1/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java 2010-03-05 09:32:12 UTC (rev 12102)
@@ -65,12 +65,7 @@
String searchString1 = "Forrest Gump";
String searchString2 = "The Shawshank Redemption";
- browser.openWindow(CONTEXT_PATH + getProperty("HOME_PAGE"), "1");
- browser.selectWindow("1");
- Thread.sleep(10000); // ugly but turned out to be the most browser-compatible solution
assertTrue("User should be logged in by now.", isLoggedIn(browser));
- browser.selectWindow(null); // select main window
- assertTrue("User should be logged in by now.", isLoggedIn(browser));
browser.click(getProperty("SHOP"));
browser.waitForPageToLoad(TIMEOUT);
browser.type(getProperty("SEARCH_FIELD"), searchString1);
@@ -80,7 +75,10 @@
searchString1, browser
.getText(getProperty("SEARCH_RESULT_FIRST_ROW_LINK")));
// search for dvd in second window
+ browser.openWindow(CONTEXT_PATH + getProperty("HOME_PAGE"), "1");
browser.selectWindow("1");
+ Thread.sleep(10000); // ugly but turned out to be the most browser-compatible solution
+ assertTrue("User should be logged in by now.", isLoggedIn(browser));
browser.click(getProperty("SHOP"));
browser.waitForPageToLoad(TIMEOUT);
browser.type(getProperty("SEARCH_FIELD"), searchString2);
More information about the seam-commits
mailing list