Skip to content

Commit ab87a06

Browse files
committed
At SeleniumConf: delete a deprecated method
1 parent 0aa8dd4 commit ab87a06

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

java/client/src/org/openqa/selenium/safari/SafariOptions.java

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <p>Example usage:
3535
* <pre><code>
3636
* SafariOptions options = new SafariOptions()
37-
* options.setUseCleanSession(true);
37+
* options.setUseTechnologyPreview(true);
3838
*
3939
* // For use with SafariDriver:
4040
* SafariDriver driver = new SafariDriver(options);
@@ -53,7 +53,6 @@ public class SafariOptions extends MutableCapabilities {
5353
public static final String CAPABILITY = "safari.options";
5454

5555
private interface Option {
56-
String CLEAN_SESSION = "cleanSession";
5756
String TECHNOLOGY_PREVIEW = "technologyPreview";
5857
}
5958

@@ -109,24 +108,7 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
109108
}
110109

111110
// Setters
112-
113-
/**
114-
* Instruct the SafariDriver to delete all existing session data when starting a new session.
115-
* This includes browser history, cache, cookies, HTML5 local storage, and HTML5 databases.
116-
*
117-
* <p><strong>Warning:</strong> Since Safari uses a single profile for the
118-
* current user, enabling this capability will permanently erase any existing
119-
* session data.
120-
*
121-
* @param useCleanSession If true, the SafariDriver will erase all existing session data.
122-
* @deprecated SafariDriver always runs a clean session
123-
*/
124-
@Deprecated
125-
public SafariOptions useCleanSession(boolean useCleanSession) {
126-
options.put(Option.CLEAN_SESSION, useCleanSession);
127-
return this;
128-
}
129-
111+
130112
/**
131113
* Instruct the SafariDriver to use the Safari Technology Preview if true, otherwise use the
132114
* release version of Safari. Defaults to using the release version of Safari.

0 commit comments

Comments
 (0)