Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse constructor with timeout parameter:
BiDi(Connection, Duration)BiDi is an internal implementation detail. Direct access to the BiDi object from drivers will be removed in a future release.BiDi is an internal implementation detail. Direct access to the BiDi object from drivers will be removed in a future release.useNoOpCdpInfo(String, Collection)insteadUseNoOpDomains(String, Collection)instead.
-
Deprecated ClassesClassDescriptionNot used. In BiDi spec, type `browser.ClientWindow` is just text (String).The JSON Wire Protocol is no longer used; use
ErrorCodecfor mapping between W3C states and exceptions. Removal is tracked by #17638 and is gated on providing a replacement extensibility seam for downstream consumers.
-
Deprecated FieldsFieldDescriptionlocalStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.clear()") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.clear()") instead.use
DriverCommand.DOWNLOAD_FILEinsteadlocalStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.localStorage.getItem('key')") instead.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return Object.keys(window.localStorage)") instead.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.localStorage.length") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.sessionStorage.getItem('key')") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return Object.keys(window.sessionStorage)") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.sessionStorage.length") instead.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.removeItem('key')") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.removeItem('key')") instead.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.setItem('key', 'value')") instead.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.setItem('key', 'value')") instead.
-
Deprecated MethodsMethodDescriptionBiDi is an internal implementation detail. Direct access to the BiDi object from drivers will be removed in a future release.BiDi is an internal implementation detail. Direct access to the BiDi object from drivers will be removed in a future release.Not needed. All CDP commands return something, at least empty map.Use method
RemoteWebDriver.getDownloadedFiles()insteadThe integer status is a JSON Wire Protocol artifact; useResponse.getState()(the W3C state) instead. Removal is tracked by #17638.The integer status is a JSON Wire Protocol artifact; useResponse.setState(String)(the W3C state) instead. Removal is tracked by #17638.
-
Deprecated ConstructorsConstructorDescriptionUse constructor with timeout parameter:
BiDi(Connection, Duration)Use constructor withClientConfigparameteruseNoOpCdpInfo(String, Collection)insteadUseNoOpDomains(String, Collection)instead.