Skip to content

Commit

Permalink
At SeleniumConf: delete a deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 28, 2018
1 parent 0aa8dd4 commit ab87a06
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions java/client/src/org/openqa/selenium/safari/SafariOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* <p>Example usage:
* <pre><code>
* SafariOptions options = new SafariOptions()
* options.setUseCleanSession(true);
* options.setUseTechnologyPreview(true);
*
* // For use with SafariDriver:
* SafariDriver driver = new SafariDriver(options);
Expand All @@ -53,7 +53,6 @@ public class SafariOptions extends MutableCapabilities {
public static final String CAPABILITY = "safari.options";

private interface Option {
String CLEAN_SESSION = "cleanSession";
String TECHNOLOGY_PREVIEW = "technologyPreview";
}

Expand Down Expand Up @@ -109,24 +108,7 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
}

// Setters

/**
* Instruct the SafariDriver to delete all existing session data when starting a new session.
* This includes browser history, cache, cookies, HTML5 local storage, and HTML5 databases.
*
* <p><strong>Warning:</strong> Since Safari uses a single profile for the
* current user, enabling this capability will permanently erase any existing
* session data.
*
* @param useCleanSession If true, the SafariDriver will erase all existing session data.
* @deprecated SafariDriver always runs a clean session
*/
@Deprecated
public SafariOptions useCleanSession(boolean useCleanSession) {
options.put(Option.CLEAN_SESSION, useCleanSession);
return this;
}


/**
* Instruct the SafariDriver to use the Safari Technology Preview if true, otherwise use the
* release version of Safari. Defaults to using the release version of Safari.
Expand Down

0 comments on commit ab87a06

Please sign in to comment.