Skip to content

Commit

Permalink
Remove deprecated methods from FirefoxOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 29, 2017
1 parent 3528c0c commit aba4bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
16 changes: 0 additions & 16 deletions java/client/src/org/openqa/selenium/firefox/FirefoxOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -410,22 +410,6 @@ public FirefoxOptions setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behav
return this;
}

/**
* @deprecated Use {@link #addCapabilities(Capabilities)}
*/
@Deprecated
public FirefoxOptions addDesiredCapabilities(Capabilities desiredCapabilities) {
return addCapabilities(desiredCapabilities);
}

/**
* @deprecated Use {@link #addCapabilities(Capabilities)}
*/
@Deprecated
public FirefoxOptions addRequiredCapabilities(Capabilities requiredCapabilities) {
return addCapabilities(requiredCapabilities);
}

public FirefoxOptions addCapabilities(Capabilities capabilities) {
return validateAndAmendUsing(this.desiredCapabilities, capabilities);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void shouldBeAbleToMergeDesiredOptionsIntoFirefoxOptions() {

FirefoxOptions options = new FirefoxOptions();
options.setProfile(new FirefoxProfile());
options.addDesiredCapabilities(caps);
options.addCapabilities(caps);

localDriver = new RemoteWebDriver(remoteUrl, options.toDesiredCapabilities());
localDriver.get(pages.xhtmlTestPage);
Expand All @@ -103,7 +103,7 @@ public void canStartFirefoxWithoutAnyConfigurationOptions() {
caps.setBrowserName(DesiredCapabilities.firefox().getBrowserName());

FirefoxOptions options = new FirefoxOptions();
options.addDesiredCapabilities(caps);
options.addCapabilities(caps);

localDriver = new RemoteWebDriver(remoteUrl, options.toDesiredCapabilities());
localDriver.get(pages.xhtmlTestPage);
Expand Down

0 comments on commit aba4bb0

Please sign in to comment.