52
52
import org .openqa .selenium .devtools .DevTools ;
53
53
import org .openqa .selenium .devtools .HasDevTools ;
54
54
import org .openqa .selenium .devtools .noop .NoOpCdpInfo ;
55
- import org .openqa .selenium .html5 .LocalStorage ;
56
55
import org .openqa .selenium .html5 .Location ;
57
56
import org .openqa .selenium .html5 .LocationContext ;
58
- import org .openqa .selenium .html5 .SessionStorage ;
59
- import org .openqa .selenium .html5 .WebStorage ;
60
57
import org .openqa .selenium .internal .Require ;
61
58
import org .openqa .selenium .json .TypeToken ;
62
59
import org .openqa .selenium .logging .EventType ;
65
62
import org .openqa .selenium .remote .FileDetector ;
66
63
import org .openqa .selenium .remote .RemoteWebDriver ;
67
64
import org .openqa .selenium .remote .html5 .RemoteLocationContext ;
68
- import org .openqa .selenium .remote .html5 .RemoteWebStorage ;
69
65
import org .openqa .selenium .remote .http .ClientConfig ;
70
66
import org .openqa .selenium .remote .http .ConnectionFailedException ;
71
67
import org .openqa .selenium .remote .http .HttpClient ;
@@ -84,16 +80,14 @@ public class ChromiumDriver extends RemoteWebDriver
84
80
HasLogEvents ,
85
81
HasNetworkConditions ,
86
82
HasPermissions ,
87
- LocationContext ,
88
- WebStorage {
83
+ LocationContext {
89
84
90
85
public static final Predicate <String > IS_CHROMIUM_BROWSER =
91
86
name -> CHROME .is (name ) || EDGE .is (name ) || OPERA .is (name );
92
87
private static final Logger LOG = Logger .getLogger (ChromiumDriver .class .getName ());
93
88
94
89
private final Capabilities capabilities ;
95
90
private final RemoteLocationContext locationContext ;
96
- private final RemoteWebStorage webStorage ;
97
91
private final HasNetworkConditions networkConditions ;
98
92
private final HasPermissions permissions ;
99
93
private final HasLaunchApp launch ;
@@ -109,7 +103,6 @@ protected ChromiumDriver(
109
103
CommandExecutor commandExecutor , Capabilities capabilities , String capabilityKey ) {
110
104
super (commandExecutor , capabilities );
111
105
locationContext = new RemoteLocationContext (getExecuteMethod ());
112
- webStorage = new RemoteWebStorage (getExecuteMethod ());
113
106
permissions = new AddHasPermissions ().getImplementation (getCapabilities (), getExecuteMethod ());
114
107
networkConditions =
115
108
new AddHasNetworkConditions ().getImplementation (getCapabilities (), getExecuteMethod ());
@@ -287,18 +280,6 @@ public void register(Predicate<URI> whenThisMatches, Supplier<Credentials> useTh
287
280
getDevTools ().getDomains ().network ().addAuthHandler (whenThisMatches , useTheseCredentials );
288
281
}
289
282
290
- @ Override
291
- @ Deprecated
292
- public LocalStorage getLocalStorage () {
293
- return webStorage .getLocalStorage ();
294
- }
295
-
296
- @ Override
297
- @ Deprecated
298
- public SessionStorage getSessionStorage () {
299
- return webStorage .getSessionStorage ();
300
- }
301
-
302
283
@ Override
303
284
@ Deprecated
304
285
public Location location () {
0 commit comments