5252import org .openqa .selenium .devtools .DevTools ;
5353import org .openqa .selenium .devtools .HasDevTools ;
5454import org .openqa .selenium .devtools .noop .NoOpCdpInfo ;
55- import org .openqa .selenium .html5 .LocalStorage ;
5655import org .openqa .selenium .html5 .Location ;
5756import org .openqa .selenium .html5 .LocationContext ;
58- import org .openqa .selenium .html5 .SessionStorage ;
59- import org .openqa .selenium .html5 .WebStorage ;
6057import org .openqa .selenium .internal .Require ;
6158import org .openqa .selenium .json .TypeToken ;
6259import org .openqa .selenium .logging .EventType ;
6562import org .openqa .selenium .remote .FileDetector ;
6663import org .openqa .selenium .remote .RemoteWebDriver ;
6764import org .openqa .selenium .remote .html5 .RemoteLocationContext ;
68- import org .openqa .selenium .remote .html5 .RemoteWebStorage ;
6965import org .openqa .selenium .remote .http .ClientConfig ;
7066import org .openqa .selenium .remote .http .ConnectionFailedException ;
7167import org .openqa .selenium .remote .http .HttpClient ;
@@ -84,16 +80,14 @@ public class ChromiumDriver extends RemoteWebDriver
8480 HasLogEvents ,
8581 HasNetworkConditions ,
8682 HasPermissions ,
87- LocationContext ,
88- WebStorage {
83+ LocationContext {
8984
9085 public static final Predicate <String > IS_CHROMIUM_BROWSER =
9186 name -> CHROME .is (name ) || EDGE .is (name ) || OPERA .is (name );
9287 private static final Logger LOG = Logger .getLogger (ChromiumDriver .class .getName ());
9388
9489 private final Capabilities capabilities ;
9590 private final RemoteLocationContext locationContext ;
96- private final RemoteWebStorage webStorage ;
9791 private final HasNetworkConditions networkConditions ;
9892 private final HasPermissions permissions ;
9993 private final HasLaunchApp launch ;
@@ -109,7 +103,6 @@ protected ChromiumDriver(
109103 CommandExecutor commandExecutor , Capabilities capabilities , String capabilityKey ) {
110104 super (commandExecutor , capabilities );
111105 locationContext = new RemoteLocationContext (getExecuteMethod ());
112- webStorage = new RemoteWebStorage (getExecuteMethod ());
113106 permissions = new AddHasPermissions ().getImplementation (getCapabilities (), getExecuteMethod ());
114107 networkConditions =
115108 new AddHasNetworkConditions ().getImplementation (getCapabilities (), getExecuteMethod ());
@@ -287,18 +280,6 @@ public void register(Predicate<URI> whenThisMatches, Supplier<Credentials> useTh
287280 getDevTools ().getDomains ().network ().addAuthHandler (whenThisMatches , useTheseCredentials );
288281 }
289282
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-
302283 @ Override
303284 @ Deprecated
304285 public Location location () {
0 commit comments