Skip to content

Commit e28df87

Browse files
juangjsevaseva
authored andcommitted
Remove obsolete ChromeOptions code.
Signed-off-by: Seva Lotoshnikov <[email protected]>
1 parent b132aba commit e28df87

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: java/client/src/org/openqa/selenium/chrome/ChromeOptions.java

-11
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,7 @@ public JsonElement toJson() throws IOException {
233233
*/
234234
DesiredCapabilities toCapabilities() {
235235
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
236-
237236
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-
248237
return capabilities;
249238
}
250239

0 commit comments

Comments
 (0)