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 5b10b0132 More test logging (attempt 7)
5b10b0132 is described below

commit 5b10b0132e7c906183602f68c2fce50ad3b9bd8e
Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br>
AuthorDate: Sun Jun 8 10:59:07 2025 -0300

    More test logging (attempt 7)
---
 .../src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java     | 4 ++++
 1 file changed, 4 insertions(+)

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 be6be27e4..8f64520b9 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
@@ -30,6 +30,8 @@ import org.openqa.selenium.firefox.FirefoxDriverLogLevel;
 import org.openqa.selenium.firefox.FirefoxOptions;
 import org.openqa.selenium.firefox.FirefoxProfile;
 import org.openqa.selenium.firefox.GeckoDriverService;
+import org.openqa.selenium.logging.LogEntries;
+import org.openqa.selenium.logging.LogType;
 import org.openqa.selenium.remote.DesiredCapabilities;
 import org.openqa.selenium.support.ui.ExpectedCondition;
 import org.openqa.selenium.support.ui.ExpectedConditions;
@@ -1455,6 +1457,8 @@ public abstract class SeleniumTestCase extends Assert 
implements Selenium
             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;
         }
         

Reply via email to