[java] Throwing when a user sets w3c: false in ChromeOptions
This was initially a warning, now it is an error.
@@ -705,8 +705,7 @@ private void checkChromeW3CFalse(Capabilities capabilities) {
w3c = rawW3C == null || Boolean.parseBoolean(String.valueOf(rawW3C));
}
if (!w3c) {
- logger.log(
- Level.WARNING,
+ throw new WebDriverException(
"Setting 'w3c: false' inside 'goog:chromeOptions' will no longer be supported " +
"Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/"
);
