Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enum Classes
  • Exceptions
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    org.openqa.selenium.remote.ErrorCodes
  • Deprecated Interfaces
    Interface
    Description
    org.openqa.selenium.ContextAware
    org.openqa.selenium.html5.LocalStorage
    org.openqa.selenium.html5.LocationContext
    This functionality is no longer supported
    org.openqa.selenium.html5.SessionStorage
    org.openqa.selenium.html5.Storage
    org.openqa.selenium.html5.WebStorage
  • Deprecated Classes
    Class
    Description
    org.openqa.selenium.firefox.FirefoxBinary
    Use FirefoxOptions.setBinary(Path) or FirefoxOptions.setBinary(String) instead.
    org.openqa.selenium.html5.Location
    org.openqa.selenium.os.CommandLine
    org.openqa.selenium.remote.ErrorCodes
    org.openqa.selenium.remote.html5.AddWebStorage
    org.openqa.selenium.remote.html5.RemoteLocalStorage
    LocalStorage can be managed by executing JavaScript. @see #executeScript(String, Object...)
    org.openqa.selenium.remote.html5.RemoteLocationContext
    This functionality is no longer supported
    org.openqa.selenium.remote.html5.RemoteSessionStorage
    LocalStorage can be managed by executing JavaScript. @see #executeScript(String, Object...)
    org.openqa.selenium.remote.internal.WebElementToJsonConverter
    This class has moved to a new location.
  • Deprecated Enum Classes
    Enum Class
    Description
    org.openqa.selenium.html5.AppCacheStatus
  • Deprecated Exceptions
    Exceptions
    Description
    org.openqa.selenium.NoSuchContextException
  • Deprecated Fields
    Field
    Description
    org.openqa.selenium.ie.InternetExplorerDriver.NATIVE_EVENTS
    Non W3C compliant
  • Deprecated Methods
    Method
    Description
    org.openqa.selenium.chromium.ChromiumDriver.getLocalStorage()
    org.openqa.selenium.chromium.ChromiumDriver.getSessionStorage()
    org.openqa.selenium.chromium.ChromiumDriver.location()
    org.openqa.selenium.chromium.ChromiumDriver.setLocation(Location)
    org.openqa.selenium.firefox.FirefoxDriver.getLocalStorage()
    org.openqa.selenium.firefox.FirefoxDriver.getSessionStorage()
    org.openqa.selenium.ie.InternetExplorerOptions.disableNativeEvents()
    Non W3C compliant
    org.openqa.selenium.remote.DriverCommand.SET_IMPLICIT_WAIT_TIMEOUT(long, TimeUnit)
    org.openqa.selenium.remote.DriverCommand.SET_PAGE_LOAD_TIMEOUT(long, TimeUnit)
    org.openqa.selenium.remote.DriverCommand.SET_SCRIPT_TIMEOUT(long, TimeUnit)
    org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts.implicitlyWait(long, TimeUnit)
    org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts.pageLoadTimeout(long, TimeUnit)
    org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts.setScriptTimeout(long, TimeUnit)
    org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts.setScriptTimeout(Duration)
    org.openqa.selenium.remote.Response.getStatus()
    org.openqa.selenium.remote.Response.setStatus(Integer)
    org.openqa.selenium.WebDriver.Timeouts.implicitlyWait(long, TimeUnit)
    Use WebDriver.Timeouts.implicitlyWait(Duration)

    Specifies the amount of time the driver should wait when searching for an element if it is not immediately present.

    When searching for a single element, the driver should poll the page until the element has been found, or this timeout expires before throwing a NoSuchElementException. When searching for multiple elements, the driver should poll the page until at least one element has been found or this timeout has expired.

    Increasing the implicit wait timeout should be used judiciously as it will have an adverse effect on test run time, especially when used with slower location strategies like XPath.

    If the timeout is negative, not null, or greater than 2e16 - 1, an error code with invalid argument will be returned.

    org.openqa.selenium.WebDriver.Timeouts.pageLoadTimeout(long, TimeUnit)
    Use WebDriver.Timeouts.pageLoadTimeout(Duration)

    Sets the amount of time to wait for a page load to complete before throwing an error. If the timeout is negative, not null, or greater than 2e16 - 1, an error code with invalid argument will be returned.

    org.openqa.selenium.WebDriver.Timeouts.setScriptTimeout(long, TimeUnit)
    Use WebDriver.Timeouts.scriptTimeout(Duration)

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, not null, or greater than 2e16 - 1, an error code with invalid argument will be returned.

    org.openqa.selenium.WebDriver.Timeouts.setScriptTimeout(Duration)
    Use WebDriver.Timeouts.scriptTimeout(Duration)
    org.openqa.selenium.WebElement.getAttribute(String)
    This method is deprecated. Use WebElement.getDomProperty(String) or WebElement.getDomAttribute(String) for more precise attribute retrieval.
  • Deprecated Constructors
    Constructor
    Description
    org.openqa.selenium.bidi.browsingcontext.BrowsingContext(WebDriver, WindowType, String)
    org.openqa.selenium.support.ui.SlowLoadableComponent(Clock, int)
    Use SlowLoadableComponent(Clock, Duration) instead.