Repository: tapestry-5 Updated Branches: refs/heads/master 6b44b2cd5 -> 2e96e0179
fix clicks on wrong elements Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/2e96e017 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/2e96e017 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/2e96e017 Branch: refs/heads/master Commit: 2e96e017954e25f3acb3b03fd4a2d88ed30ef3df Parents: 6b44b2c Author: Jochen Kemnade <[email protected]> Authored: Mon Nov 6 12:36:13 2017 +0100 Committer: Jochen Kemnade <[email protected]> Committed: Mon Nov 6 12:36:13 2017 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/tapestry5/test/SeleniumTestCase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/2e96e017/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 1214c92..ca256a3 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 @@ -1625,7 +1625,9 @@ public abstract class SeleniumTestCase extends Assert implements Selenium for (String text : linkText) { - webDriver.findElement(By.linkText(text)).click(); + WebElement link = webDriver.findElement(By.linkText(text)); + scrollIntoView(link); + link.click(); } }
