[seam-commits] Seam SVN: r14848 - branches/enterprise/WFK-2_0/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
Thu Jun 7 06:32:17 EDT 2012


Author: manaRH
Date: 2012-06-07 06:32:15 -0400 (Thu, 07 Jun 2012)
New Revision: 14848

Modified:
   branches/enterprise/WFK-2_0/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/enterprise/WFK-2_0/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java	2012-06-06 17:41:05 UTC (rev 14847)
+++ branches/enterprise/WFK-2_0/examples-ee6/remoting/chatroom/chatroom-tests/src/test/java/org/jboss/seam/example/remoting/chatroom/test/webdriver/WebDriverChatroomTest.java	2012-06-07 10:32:15 UTC (rev 14848)
@@ -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