Skip to content

Commit

Permalink
Disable JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Oct 29, 2024
1 parent 2fc461e commit 3973d32
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void testWithIdenticalNames() throws IOException {
final URI uri = reportsFile.toURI();

try (WebClient webClient = new WebClient()) {
webClient.getOptions().setJavaScriptEnabled(false);
HtmlPage page = webClient.getPage(uri.toURL());
HtmlAnchor a = (HtmlAnchor)
page.getByXPath("//a[@href = \"javascript:toggleDisplay('surefire260.TestB.testDup');\"]")
Expand Down

0 comments on commit 3973d32

Please # to comment.