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

commit adcc6c595bc73ddd36ad3bb7f154ea86b68b3756
Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br>
AuthorDate: Sun Jun 8 16:18:40 2025 -0300

    Revert "More test logging (attempt 8)"
    
    This reverts commit 5cbfaded06519f7f140aa49bff3c9b88370b7448.
---
 .../apache/tapestry5/test/SeleniumTestCase.java    | 25 +++++++++++-----------
 1 file changed, 12 insertions(+), 13 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 6a816368b..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
@@ -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,17 +1451,16 @@ 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);
-//            LOGGER.error("Browser errors: " + logEntries.toJson().size());
-//            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);
+            logEntries.forEach(le -> LOGGER.error("Browser error: " + 
le.getMessage()));
+            throw e;
+        }
         
     }
 

Reply via email to