Skip to content

Commit 65b7a24

Browse files
committed
[java] Amending logic to warn users when w3c: true in goog:chromeOptions
Helps with #10448 [skip ci]
1 parent 9921778 commit 65b7a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ private void checkChromeW3CFalse(Capabilities capabilities) {
725725
boolean w3c = true;
726726
if ((capability instanceof Map)) {
727727
Object rawW3C = ((Map<?, ?>) capability).get("w3c");
728-
w3c = Boolean.parseBoolean(String.valueOf(rawW3C));
728+
w3c = rawW3C == null || Boolean.parseBoolean(String.valueOf(rawW3C));
729729
}
730730
if (!w3c) {
731731
logger.log(

0 commit comments

Comments
 (0)