Skip to content

Commit

Permalink
fix for latest htmlunit
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Aug 19, 2022
1 parent 32d6e45 commit 86c7520
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/test/java/org/openqa/selenium/htmlunit/HtmlUnitDriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,6 @@ protected WebClient modifyWebClient(final WebClient client) {
};
}

@Test
public void ctorWebClientBrowserVersionFirefox78() {
new HtmlUnitDriver(BrowserVersion.FIREFOX_78) {
@Override
protected WebClient modifyWebClient(final WebClient client) {

assertEquals(BrowserVersion.FIREFOX_ESR, client.getBrowserVersion());

assertFalse("client.getOptions().isJavaScriptEnabled() is true",
client.getOptions().isJavaScriptEnabled());
assertFalse("client.isJavaScriptEnabled() is true", client.isJavaScriptEnabled());
assertTrue("client.isJavaScriptEngineEnabled() is false", client.isJavaScriptEngineEnabled());

return client;
}
};
}

@Test
public void ctorWebClientBrowserVersionFirefoxEsr() {
new HtmlUnitDriver(BrowserVersion.FIREFOX_ESR) {
Expand Down Expand Up @@ -243,24 +225,6 @@ protected WebClient modifyWebClient(final WebClient client) {
};
}

@Test
public void ctorWebClientBrowserVersionFirefox78JsTrue() {
new HtmlUnitDriver(BrowserVersion.FIREFOX_78, true) {
@Override
protected WebClient modifyWebClient(final WebClient client) {

assertEquals(BrowserVersion.FIREFOX_ESR, client.getBrowserVersion());

assertTrue("client.getOptions().isJavaScriptEnabled() is false",
client.getOptions().isJavaScriptEnabled());
assertTrue("client.isJavaScriptEnabled() is false", client.isJavaScriptEnabled());
assertTrue("client.isJavaScriptEngineEnabled() is false", client.isJavaScriptEngineEnabled());

return client;
}
};
}

@Test
public void ctorWebClientBrowserVersionFirefoxEsrJsTrue() {
new HtmlUnitDriver(BrowserVersion.FIREFOX_ESR, true) {
Expand Down

0 comments on commit 86c7520

Please sign in to comment.