[seam-commits] Seam SVN: r12515 - branches/community/Seam_2_2/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/webdriver.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Apr 16 08:58:56 EDT 2010


Author: mgencur at 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()



More information about the seam-commits mailing list