Author: mgencur(a)redhat.com
Date: 2009-10-15 04:31:47 -0400 (Thu, 15 Oct 2009)
New Revision: 11590
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java
Log:
added timeout before login
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java 2009-10-15
08:18:34 UTC (rev 11589)
+++
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java 2009-10-15
08:31:47 UTC (rev 11590)
@@ -93,12 +93,17 @@
String username = "demo";
String password = "demo";
browser.clickAndWait(HERE_LINK);
- waitForElementPresent(LOGIN_LINK, TIMEOUT);
browser.click(LOGIN_LINK);
- waitForElementPresent(LOGIN_INPUT_USERNAME, TIMEOUT);
waitForElementPresent(LOGIN_INPUT_PASSWORD, TIMEOUT);
browser.type(LOGIN_INPUT_USERNAME, username);
- browser.type(LOGIN_INPUT_PASSWORD, password);
+ browser.type(LOGIN_INPUT_PASSWORD, password);
+ try
+ {
+ Thread.sleep(TIMEOUT/2);
+ }
+ catch (InterruptedException e)
+ {
+ }
browser.click(INVOKE_SERVICE_BUTTON);
waitForElementContent(RESPONSE_AREA, TIMEOUT);
}
Show replies by date