Repository: tapestry-5 Updated Branches: refs/heads/master ee2fc5199 -> 0795a42b5
Attempt to fix the StaleElementReference exceptions Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/0795a42b Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/0795a42b Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/0795a42b Branch: refs/heads/master Commit: 0795a42b5535d991f8cb190c00fcbf025ca6a020 Parents: ee2fc51 Author: Thiago H. de Paula Figueiredo <[email protected]> Authored: Fri Nov 23 17:20:59 2018 -0200 Committer: Thiago H. de Paula Figueiredo <[email protected]> Committed: Fri Nov 23 17:20:59 2018 -0200 ---------------------------------------------------------------------- .../main/java/org/apache/tapestry5/test/SeleniumTestCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/0795a42b/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 ab3c0b3..b684895 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 @@ -1392,8 +1392,9 @@ public abstract class SeleniumTestCase extends Assert implements Selenium { return; } - - waitForCondition(ExpectedConditions.attributeToBe(body, "data-page-initialized", "true"), 30); + // Attempt to fix StaleElementReferenceException: The element reference of <body> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed + // waitForCondition(ExpectedConditions.attributeToBe(body, "data-page-initialized", "true"), 30); + waitForCssSelectorToAppear("body[data-page-initialized='true'"); } catch (NoSuchElementException e) { // no body element found, there's nothing to wait for
