Skip to content

Commit f91fec5

Browse files
committed
[java] Throwing when a user sets w3c: false in ChromeOptions
This was initially a warning, now it is an error.
1 parent ad02160 commit f91fec5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,7 @@ private void checkChromeW3CFalse(Capabilities capabilities) {
705705
w3c = rawW3C == null || Boolean.parseBoolean(String.valueOf(rawW3C));
706706
}
707707
if (!w3c) {
708-
logger.log(
709-
Level.WARNING,
708+
throw new WebDriverException(
710709
"Setting 'w3c: false' inside 'goog:chromeOptions' will no longer be supported " +
711710
"Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/"
712711
);

0 commit comments

Comments
 (0)