You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2017/11/06 11:27:35 UTC

tapestry-5 git commit: avoid some unnecessary waiting

Repository: tapestry-5
Updated Branches:
  refs/heads/master 232f029f3 -> 6b44b2cd5


avoid some unnecessary waiting


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/6b44b2cd
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/6b44b2cd
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/6b44b2cd

Branch: refs/heads/master
Commit: 6b44b2cd5fe7fe093d109bff9ba7c0812f219ff2
Parents: 232f029
Author: Jochen Kemnade <jo...@eddyson.de>
Authored: Mon Nov 6 12:26:23 2017 +0100
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Mon Nov 6 12:26:23 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/tapestry5/test/SeleniumTestCase.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6b44b2cd/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
----------------------------------------------------------------------
diff --git a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
index a1fba91..1214c92 100644
--- a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
+++ b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
@@ -1474,9 +1474,8 @@ public abstract class SeleniumTestCase extends Assert implements Selenium
      */
     protected final void openBaseURL()
     {
-        open(baseURL);
+        webDriver.navigate().to(baseURL);
 
-        waitForPageToLoad();
     }
 
     /**
@@ -1626,7 +1625,7 @@ public abstract class SeleniumTestCase extends Assert implements Selenium
 
         for (String text : linkText)
         {
-            clickAndWait("link=" + text);
+            webDriver.findElement(By.linkText(text)).click();
         }
     }