Author: jharting
Date: 2010-03-05 04:16:57 -0500 (Fri, 05 Mar 2010)
New Revision: 12101
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java
Log:
JBSEAM-4561
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java 2010-03-05
04:48:01 UTC (rev 12100)
+++
branches/community/Seam_2_2/src/test/ftest/examples/dvdstore/src/org/jboss/seam/example/dvd/test/selenium/SearchTest.java 2010-03-05
09:16:57 UTC (rev 12101)
@@ -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);
Show replies by date