[seam-commits] Seam SVN: r14760 - branches/community/Seam_2_3/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 28 07:22:06 EDT 2012


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
       {



More information about the seam-commits mailing list