Repository: tapestry-5 Updated Branches: refs/heads/master 7c398b117 -> 9c5e8abc4
fix isElementPresent Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/9c5e8abc Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/9c5e8abc Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/9c5e8abc Branch: refs/heads/master Commit: 9c5e8abc437aa048f0c2ab031c9eae41fe7012c0 Parents: 7c398b1 Author: Jochen Kemnade <[email protected]> Authored: Fri Nov 3 11:47:40 2017 +0100 Committer: Jochen Kemnade <[email protected]> Committed: Fri Nov 3 11:47:40 2017 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/9c5e8abc/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 6ae7c64..4a64591 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 @@ -976,7 +976,7 @@ public abstract class SeleniumTestCase extends Assert implements Selenium @Override public boolean isElementPresent(String locator) { - return webDriver.findElement(convertLocator(locator)) != null; + return !webDriver.findElements(convertLocator(locator)).isEmpty(); } @Override
