From e6fd1283a57743f8af293a184938f0dbca177da0 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Tue, 29 Oct 2024 18:39:04 +0100 Subject: [PATCH] Ignore script errors --- .../surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java index 995ec35615..5438b5e231 100644 --- a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java +++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java @@ -53,6 +53,7 @@ public void testWithIdenticalNames() throws IOException { final URI uri = reportsFile.toURI(); try (WebClient webClient = new WebClient()) { + webClient.getOptions().setThrowExceptionOnScriptError(false); HtmlPage page = webClient.getPage(uri.toURL()); HtmlAnchor a = (HtmlAnchor) page.getByXPath("//a[@href = \"javascript:toggleDisplay('surefire260.TestB.testDup');\"]")