Author: maschmid
Date: 2012-05-28 07:22:05 -0400 (Mon, 28 May 2012)
New Revision: 14760

Modified:
   
branches/community/Seam_2_3/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
Log:
fix chatroom ftest


Modified: 
branches/community/Seam_2_3/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
===================================================================
--- 
branches/community/Seam_2_3/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
  2012-05-28 11:11:57 UTC (rev 14759)
+++ 
branches/community/Seam_2_3/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
  2012-05-28 11:22:05 UTC (rev 14760)
@@ -69,9 +69,9 @@
    public static final By JOZEF_LISTED = 
By.xpath("//div/select[@id='userList']/option[contains(text(),'Jozef')]");
    public static final By JOZEF_DISCONNECTED = 
By.xpath("//div[@id='channelDisplay']/span[contains(text(),'Jozef 
disconnected.')]");
    public static final By MARTIN_GT = 
By.xpath("//div[@id='channelDisplay']/span[contains(text(),'Martin>')]");
-   public static final By HELLO = 
By.xpath("//div[@id='channelDisplay']/text()[contains(.,'"+ MESSAGE_FROM_MARTIN 
+"')]");   
+   public static final By HELLO = 
By.xpath("//div[@id='channelDisplay']/text()[contains(.,'"+ MESSAGE_FROM_MARTIN 
+"')]/..");   
    public static final By JOZEF_GT = 
By.xpath("//div[@id='channelDisplay']/span[contains(text(),'Jozef>')]");
-   public static final By GOOD_MORNING = 
By.xpath("//div[@id='channelDisplay']/text()[contains(.,'" + MESSAGE_FROM_JOZEF 
+ "')]");
+   public static final By GOOD_MORNING = 
By.xpath("//div[@id='channelDisplay']/text()[contains(.,'" + MESSAGE_FROM_JOZEF 
+ "')]/..");
          
    protected AjaxWebDriver driver2;
    
@@ -118,7 +118,7 @@
       driver.setWaitTime(timeout);
       
       //more reliable than simple click
-      driver.findElement(CONNECT_BUTTON).clearAndSendKeys(Keys.RETURN);
+      driver.findElement(CONNECT_BUTTON).sendKeys(Keys.RETURN);
       
       try
       {

_______________________________________________
seam-commits mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-commits

Reply via email to