Skip to content

Commit

Permalink
[java] Amending logic to warn users when w3c: true in `goog:chromeO…
Browse files Browse the repository at this point in the history
…ptions`

Helps with SeleniumHQ#10448

[skip ci]
  • Loading branch information
diemol authored and elgatov committed Jun 27, 2022
1 parent cc0d470 commit 764bf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/remote/RemoteWebDriver.java
Expand Up @@ -725,7 +725,7 @@ private void checkChromeW3CFalse(Capabilities capabilities) {
boolean w3c = true;
if ((capability instanceof Map)) {
Object rawW3C = ((Map<?, ?>) capability).get("w3c");
w3c = Boolean.parseBoolean(String.valueOf(rawW3C));
w3c = rawW3C == null || Boolean.parseBoolean(String.valueOf(rawW3C));
}
if (!w3c) {
logger.log(
Expand Down

0 comments on commit 764bf93

Please sign in to comment.