We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b132aba commit e28df87Copy full SHA for e28df87
java/client/src/org/openqa/selenium/chrome/ChromeOptions.java
@@ -233,18 +233,7 @@ public JsonElement toJson() throws IOException {
233
*/
234
DesiredCapabilities toCapabilities() {
235
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
236
-
237
capabilities.setCapability(CAPABILITY, this);
238
239
- // chromeOptions is only recognized by chromedriver 17.0.963.0 or newer.
240
- // Provide backwards compatibility for capabilities supported by older
241
- // versions of chromedriver.
242
- // TODO: remove this once the deprecated capabilities are no longer supported.
243
- capabilities.setCapability("chrome.switches", args);
244
- if (binary != null) {
245
- capabilities.setCapability("chrome.binary", binary);
246
- }
247
248
return capabilities;
249
}
250
0 commit comments