Skip to content

Commit

Permalink
Deleting deprecated methods from FirefoxOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Aug 30, 2017
1 parent aa232de commit f0c85e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions java/client/src/org/openqa/selenium/firefox/FirefoxOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,20 +476,6 @@ private FirefoxProfile extractProfile(Capabilities capabilities) {
return null;
}

/**
* @deprecated Use {@link #toCapabilities()}.
*/
public Capabilities toDesiredCapabilities() {
return toCapabilities();
}

/**
* @deprecated Use {@link #toCapabilities()}.
*/
public Capabilities toRequiredCapabilities() {
return toCapabilities();
}

public Capabilities toCapabilities() {
HashMap<String, Object> caps = new HashMap<>(desiredCapabilities.asMap());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void shouldBeAbleToMergeDesiredOptionsIntoFirefoxOptions() {
options.setProfile(new FirefoxProfile());
options.addCapabilities(caps);

localDriver = new RemoteWebDriver(remoteUrl, options.toDesiredCapabilities());
localDriver = new RemoteWebDriver(remoteUrl, options.toCapabilities());
localDriver.get(pages.xhtmlTestPage);
assertEquals("XHTML Test Page", localDriver.getTitle());
}
Expand All @@ -105,7 +105,7 @@ public void canStartFirefoxWithoutAnyConfigurationOptions() {
FirefoxOptions options = new FirefoxOptions();
options.addCapabilities(caps);

localDriver = new RemoteWebDriver(remoteUrl, options.toDesiredCapabilities());
localDriver = new RemoteWebDriver(remoteUrl, options.toCapabilities());
localDriver.get(pages.xhtmlTestPage);
assertEquals("XHTML Test Page", localDriver.getTitle());
}
Expand Down

0 comments on commit f0c85e0

Please sign in to comment.