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 #10448

[skip ci]
  • Loading branch information
diemol committed Jun 13, 2022
1 parent 9921778 commit 65b7a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/remote/RemoteWebDriver.java
Original file line number Diff line number Diff line change
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 65b7a24

Please sign in to comment.