At SeleniumConf: delete a deprecated method
* <p>Example usage:
* <pre><code>
* SafariOptions options = new SafariOptions()
- * options.setUseCleanSession(true);
+ * options.setUseTechnologyPreview(true);
*
* // For use with SafariDriver:
* SafariDriver driver = new SafariDriver(options);
public static final String CAPABILITY = "safari.options";
private interface Option {
- String CLEAN_SESSION = "cleanSession";
String TECHNOLOGY_PREVIEW = "technologyPreview";
}
@@ -110,23 +109,6 @@ 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.
