|
37 | 37 | import org.openqa.selenium.bidi.BiDi; |
38 | 38 | import org.openqa.selenium.bidi.BiDiException; |
39 | 39 | import org.openqa.selenium.bidi.HasBiDi; |
40 | | -import org.openqa.selenium.html5.LocalStorage; |
41 | | -import org.openqa.selenium.html5.SessionStorage; |
42 | | -import org.openqa.selenium.html5.WebStorage; |
43 | 40 | import org.openqa.selenium.internal.Require; |
44 | 41 | import org.openqa.selenium.remote.CommandInfo; |
45 | 42 | import org.openqa.selenium.remote.FileDetector; |
46 | 43 | import org.openqa.selenium.remote.RemoteWebDriver; |
47 | 44 | import org.openqa.selenium.remote.RemoteWebDriverBuilder; |
48 | | -import org.openqa.selenium.remote.html5.RemoteWebStorage; |
49 | 45 | import org.openqa.selenium.remote.http.ClientConfig; |
50 | 46 | import org.openqa.selenium.remote.http.HttpClient; |
51 | 47 | import org.openqa.selenium.remote.service.DriverCommandExecutor; |
|
68 | 64 | * </pre> |
69 | 65 | */ |
70 | 66 | public class FirefoxDriver extends RemoteWebDriver |
71 | | - implements WebStorage, HasExtensions, HasFullPageScreenshot, HasContext, HasBiDi { |
| 67 | + implements HasExtensions, HasFullPageScreenshot, HasContext, HasBiDi { |
72 | 68 |
|
73 | 69 | private static final Logger LOG = Logger.getLogger(FirefoxDriver.class.getName()); |
74 | 70 | private final Capabilities capabilities; |
75 | | - private final RemoteWebStorage webStorage; |
76 | 71 | private final HasExtensions extensions; |
77 | 72 | private final HasFullPageScreenshot fullPageScreenshot; |
78 | 73 | private final HasContext context; |
@@ -140,7 +135,6 @@ private FirefoxDriver(FirefoxDriverCommandExecutor executor, FirefoxOptions opti |
140 | 135 | private FirefoxDriver( |
141 | 136 | FirefoxDriverCommandExecutor executor, FirefoxOptions options, ClientConfig clientConfig) { |
142 | 137 | super(executor, checkCapabilitiesAndProxy(options)); |
143 | | - webStorage = new RemoteWebStorage(getExecuteMethod()); |
144 | 138 | extensions = new AddHasExtensions().getImplementation(getCapabilities(), getExecuteMethod()); |
145 | 139 | fullPageScreenshot = |
146 | 140 | new AddHasFullPageScreenshot().getImplementation(getCapabilities(), getExecuteMethod()); |
@@ -201,18 +195,6 @@ public void setFileDetector(FileDetector detector) { |
201 | 195 | + "via RemoteWebDriver"); |
202 | 196 | } |
203 | 197 |
|
204 | | - @Override |
205 | | - @Deprecated |
206 | | - public LocalStorage getLocalStorage() { |
207 | | - return webStorage.getLocalStorage(); |
208 | | - } |
209 | | - |
210 | | - @Override |
211 | | - @Deprecated |
212 | | - public SessionStorage getSessionStorage() { |
213 | | - return webStorage.getSessionStorage(); |
214 | | - } |
215 | | - |
216 | 198 | @Override |
217 | 199 | public String installExtension(Path path) { |
218 | 200 | Require.nonNull("Path", path); |
|
0 commit comments