Author: maschmid
Date: 2012-08-24 11:09:27 -0400 (Fri, 24 Aug 2012)
New Revision: 15084
Modified:
branches/community/Seam_2_3/examples-ee6/seambay/seambay-tests/src/test/java/org/jboss/seam/example/seambay/test/webdriver/WebServicesTest.java
Log:
add a few delays to the seambay webservices webdriver test
Modified:
branches/community/Seam_2_3/examples-ee6/seambay/seambay-tests/src/test/java/org/jboss/seam/example/seambay/test/webdriver/WebServicesTest.java
===================================================================
---
branches/community/Seam_2_3/examples-ee6/seambay/seambay-tests/src/test/java/org/jboss/seam/example/seambay/test/webdriver/WebServicesTest.java 2012-08-24
12:07:13 UTC (rev 15083)
+++
branches/community/Seam_2_3/examples-ee6/seambay/seambay-tests/src/test/java/org/jboss/seam/example/seambay/test/webdriver/WebServicesTest.java 2012-08-24
15:09:27 UTC (rev 15084)
@@ -16,6 +16,7 @@
*/
public class WebServicesTest extends AjaxWebDriverTest
{
+ protected static final int WAIT_TIME = 1000;
protected static final By HERE_LINK = By.partialLinkText("here");
protected static final String SERVICE_PAGE_URL = "test.seam";
@@ -70,7 +71,16 @@
public void testGoToWSPage()
{
driver.get(serverURL + contextPath);
- driver.findElement(HERE_LINK).click();
+
+ try
+ {
+ Thread.sleep(WAIT_TIME);
+ }
+ catch (InterruptedException e)
+ {
+ }
+
+ driver.findElement(HERE_LINK).clickAndWait();
assertTrue("URL contains web services page",
driver.getCurrentUrl().contains(SERVICE_PAGE_URL));
}
@@ -245,12 +255,19 @@
*/
protected void loginService()
{
-
String username = "demo";
String password = "demo";
driver.get(serverURL + contextPath);
- driver.findElement(HERE_LINK).click();
+ try
+ {
+ Thread.sleep(WAIT_TIME);
+ }
+ catch (InterruptedException e)
+ {
+ }
+
+ driver.findElement(HERE_LINK).clickAndWait();
driver.findElement(By.partialLinkText("Login")).clickAndWait();
Show replies by date