Skip to content

Commit de86899

Browse files
committed
[java] Removing deprecated SessionStorage commands from ChromiumDriver
Related to #10397
1 parent f14ad29 commit de86899

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

java/src/org/openqa/selenium/chromium/ChromiumDriver.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@
5252
import org.openqa.selenium.devtools.DevTools;
5353
import org.openqa.selenium.devtools.HasDevTools;
5454
import org.openqa.selenium.devtools.noop.NoOpCdpInfo;
55-
import org.openqa.selenium.html5.LocalStorage;
5655
import org.openqa.selenium.html5.Location;
5756
import org.openqa.selenium.html5.LocationContext;
58-
import org.openqa.selenium.html5.SessionStorage;
59-
import org.openqa.selenium.html5.WebStorage;
6057
import org.openqa.selenium.internal.Require;
6158
import org.openqa.selenium.json.TypeToken;
6259
import org.openqa.selenium.logging.EventType;
@@ -65,7 +62,6 @@
6562
import org.openqa.selenium.remote.FileDetector;
6663
import org.openqa.selenium.remote.RemoteWebDriver;
6764
import org.openqa.selenium.remote.html5.RemoteLocationContext;
68-
import org.openqa.selenium.remote.html5.RemoteWebStorage;
6965
import org.openqa.selenium.remote.http.ClientConfig;
7066
import org.openqa.selenium.remote.http.ConnectionFailedException;
7167
import 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

Comments
 (0)