Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse constructor with timeout parameter:
BiDi(Connection, Duration)Instant is not a basic JSON type, use theInstantCoercerinstead.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and CLIENT type is no longer supported.logging is not in the W3C WebDriver spec and PROFILER type is no longer supported.logging is not in the W3C WebDriver spec and SERVER type is no longer supported.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.org.openqa.selenium.remote.http.HttpClient.sendAsyncNative(HttpRequest, HttpResponse.BodyHandler<T>) use JdkHttpClient#httpClient() instead.use JdkHttpClient#httpClient() instead.logging is not in the W3C WebDriver spec and is no longer supported.logging is not in the W3C WebDriver spec and LocalLogs are no longer supported. UseRemoteLogs(ExecuteMethod)instead.logging is not in the W3C WebDriver spec and LocalLogs are no longer supported.
-
Deprecated InterfacesInterfaceDescriptionlogging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.
-
Deprecated ClassesClassDescriptionNot used. In BiDi spec, type `browser.ClientWindow` is just text (String).logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.logging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.
-
Deprecated Enum ClassesEnum ClassDescriptionlogging is not in the W3C WebDriver spec and is no longer supported. This class will be removed in a future release.
-
Deprecated FieldsFieldDescriptionlogging is not in the W3C WebDriver spec and CLIENT type is no longer supported.logging is not in the W3C WebDriver spec and PROFILER type is no longer supported.logging is not in the W3C WebDriver spec and SERVER type is no longer supported.localStorage 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 MethodsMethodDescriptionNot needed. All CDP commands return something, at least empty map.List of container logs might be very long. If you need to write down the logs, use
ContainerLogs.getLogs()to avoid reading the whole content to memory.Use methodHasDownloads.getDownloadedFiles()insteadUseRead.resourceAsString(Class, String)insteadInstant is not a basic JSON type, use theInstantCoercerinstead.getFtpProxy is deprecated and will be removed in a future release.setFtpProxy is deprecated and will be removed in a future release.Not needed anymore. It's a bad idea to read the entire file to memory. It may cause OutOfMemory errors in case of large files.Use methodContents.Supplier.contentAsString(Charset)instead.Use methodHttpMessage.contentAsString()insteadorg.openqa.selenium.remote.http.HttpClient.sendAsyncNative(HttpRequest, HttpResponse.BodyHandler<T>) use JdkHttpClient#httpClient() instead.use JdkHttpClient#httpClient() instead.logging is not in the W3C WebDriver spec and is no longer supported.Use methodRemoteWebDriver.getDownloadedFiles()insteadlogging is not in the W3C WebDriver spec and LocalLogs are no longer supported.
-
Deprecated ConstructorsConstructorDescriptionUse constructor with timeout parameter:
BiDi(Connection, Duration)Use constructor withClientConfigparameterlogging is not in the W3C WebDriver spec and LocalLogs are no longer supported. UseRemoteLogs(ExecuteMethod)instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionThe FN key is not part of the W3C WebDriver specification and does not have a standardized Unicode mapping. Its behavior is not guaranteed across drivers/platforms.