34
34
* <p>Example usage:
35
35
* <pre><code>
36
36
* SafariOptions options = new SafariOptions()
37
- * options.setUseCleanSession (true);
37
+ * options.setUseTechnologyPreview (true);
38
38
*
39
39
* // For use with SafariDriver:
40
40
* SafariDriver driver = new SafariDriver(options);
@@ -53,7 +53,6 @@ public class SafariOptions extends MutableCapabilities {
53
53
public static final String CAPABILITY = "safari.options" ;
54
54
55
55
private interface Option {
56
- String CLEAN_SESSION = "cleanSession" ;
57
56
String TECHNOLOGY_PREVIEW = "technologyPreview" ;
58
57
}
59
58
@@ -109,24 +108,7 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
109
108
}
110
109
111
110
// 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
+
130
112
/**
131
113
* Instruct the SafariDriver to use the Safari Technology Preview if true, otherwise use the
132
114
* release version of Safari. Defaults to using the release version of Safari.
0 commit comments