We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023a0d5 commit 42796daCopy full SHA for 42796da
java/src/org/openqa/selenium/Capabilities.java
@@ -77,8 +77,7 @@ default String getBrowserVersion() {
77
default boolean is(String capabilityName) {
78
Object cap = getCapability(capabilityName);
79
if (cap == null) {
80
- // If it's not set explicitly, javascriptEnabled is true.
81
- return "javascriptEnabled".equals(capabilityName);
+ return false;
82
}
83
return cap instanceof Boolean ? (Boolean) cap : Boolean.parseBoolean(String.valueOf(cap));
84
0 commit comments