Author: mgencur(a)redhat.com
Date: 2010-04-16 08:58:55 -0400 (Fri, 16 Apr 2010)
New Revision: 12515
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
Log:
getting chatroom example to be more reliable on jdk5
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java 2010-04-16
11:12:49 UTC (rev 12514)
+++
branches/community/Seam_2_2/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java 2010-04-16
12:58:55 UTC (rev 12515)
@@ -112,9 +112,21 @@
public void connect()
{
- driver.findElement(NAME_INPUT).clearAndSendKeys(NAME1);
+
+ driver.findElement(NAME_INPUT).clearAndSendKeys(NAME1, Keys.TAB);
+
driver.setWaitTime(timeout);
- driver.findElement(CONNECT_BUTTON).clickAndWait();
+
+ //more reliable than simple click
+ driver.findElement(CONNECT_BUTTON).clearAndSendKeys(Keys.RETURN);
+
+ try
+ {
+ Thread.sleep(timeout);
+ }
+ catch (InterruptedException e)
+ {
+ }
}
public void verifyConnecting()
Show replies by date