Skip to content

Commit 5b0f88e

Browse files
committed
Deprecate Capabilities.isJavascriptEnabled
This provides no useful functionality over calling: `Capabilities.is("javascriptEnabled")` Worse, it's suggesting that browsers can be used with webdriver without JS enabled, which isn't true.
1 parent bc4c207 commit 5b0f88e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

java/client/src/org/openqa/selenium/Capabilities.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public interface Capabilities {
3131

3232
String getVersion();
3333

34+
/**
35+
* @deprecated All browsers are JS enabled except
36+
* {@link org.openqa.selenium.htmlunit.HtmlUnitDriver} and it's not meaningful to disable JS execution.
37+
*/
38+
@Deprecated
3439
boolean isJavascriptEnabled();
3540

3641
/**

0 commit comments

Comments
 (0)