Skip to content

Commit

Permalink
[java] Throwing when a user sets w3c: false in ChromeOptions
Browse files Browse the repository at this point in the history
This was initially a warning, now it is an error.
  • Loading branch information
diemol committed Aug 5, 2022
1 parent ad02160 commit f91fec5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java/src/org/openqa/selenium/remote/RemoteWebDriver.java
Expand Up @@ -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/"
);
Expand Down

0 comments on commit f91fec5

Please sign in to comment.