This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch feature/coffeescript-to-typescript
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to
refs/heads/feature/coffeescript-to-typescript by this push:
new 5cbfaded0 More test logging (attempt 8)
5cbfaded0 is described below
commit 5cbfaded06519f7f140aa49bff3c9b88370b7448
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sun Jun 8 11:22:40 2025 -0300
More test logging (attempt 8)
---
.../apache/tapestry5/test/SeleniumTestCase.java | 25 +++++++++++-----------
1 file changed, 13 insertions(+), 12 deletions(-)
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 8f64520b9..6a816368b 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
@@ -1442,8 +1442,8 @@ public abstract class SeleniumTestCase extends Assert
implements Selenium
}
// 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']");
+ 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
@@ -1451,16 +1451,17 @@ public abstract class SeleniumTestCase extends Assert
implements Selenium
e.printStackTrace();
System.out.println("Continuing execution after exception above.");
}
- catch (RuntimeException e) {
- LOGGER.error("Exception happened: " + e.getMessage());
- LOGGER.error("User agent: " + getEval("navigator.userAgent"));
- LOGGER.error("-------- HTML");
- LOGGER.error(getHtmlSource());
- LOGGER.error("--------------");
- final LogEntries logEntries =
webDriver.manage().logs().get(LogType.BROWSER);
- logEntries.forEach(le -> LOGGER.error("Browser error: " +
le.getMessage()));
- throw e;
- }
+// catch (RuntimeException e) {
+// LOGGER.error("Exception happened: " + e.getMessage());
+// LOGGER.error("User agent: " + getEval("navigator.userAgent"));
+// LOGGER.error("-------- HTML");
+// LOGGER.error(getHtmlSource());
+// LOGGER.error("--------------");
+// final LogEntries logEntries =
webDriver.manage().logs().get(LogType.BROWSER);
+// LOGGER.error("Browser errors: " + logEntries.toJson().size());
+// logEntries.forEach(le -> LOGGER.error("Browser error: " +
le.getMessage()));
+// throw e;
+// }
}