Class RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts

java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts
All Implemented Interfaces:
WebDriver.Timeouts
Enclosing class:
RemoteWebDriver.RemoteWebDriverOptions

protected class RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts extends Object implements WebDriver.Timeouts
  • Constructor Details

    • RemoteTimeouts

      protected RemoteTimeouts()
  • Method Details

    • implicitlyWait

      public WebDriver.Timeouts implicitlyWait(Duration duration)
      Description copied from interface: WebDriver.Timeouts
      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.

      Specified by:
      implicitlyWait in interface WebDriver.Timeouts
      Parameters:
      duration - The duration to wait.
      Returns:
      A self reference.
    • getImplicitWaitTimeout

      public Duration getImplicitWaitTimeout()
      Description copied from interface: WebDriver.Timeouts
      Gets the amount of time the driver should wait when searching for an element if it is not immediately present.
      Specified by:
      getImplicitWaitTimeout in interface WebDriver.Timeouts
      Returns:
      The amount of time the driver should wait when searching for an element.
      See Also:
    • scriptTimeout

      public WebDriver.Timeouts scriptTimeout(Duration duration)
      Description copied from interface: WebDriver.Timeouts
      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.
      Specified by:
      scriptTimeout in interface WebDriver.Timeouts
      Parameters:
      duration - The timeout value.
      Returns:
      A self reference.
      See Also:
    • getScriptTimeout

      public Duration getScriptTimeout()
      Description copied from interface: WebDriver.Timeouts
      Gets 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.
      Specified by:
      getScriptTimeout in interface WebDriver.Timeouts
      Returns:
      The amount of time to wait for an asynchronous script to finish execution.
      See Also:
    • pageLoadTimeout

      public WebDriver.Timeouts pageLoadTimeout(Duration duration)
      Description copied from interface: WebDriver.Timeouts
      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.
      Specified by:
      pageLoadTimeout in interface WebDriver.Timeouts
      Parameters:
      duration - The timeout value.
      Returns:
      A Timeouts interface.
      See Also:
    • getPageLoadTimeout

      public Duration getPageLoadTimeout()
      Description copied from interface: WebDriver.Timeouts
      Gets 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.
      Specified by:
      getPageLoadTimeout in interface WebDriver.Timeouts
      Returns:
      The amount of time to wait for a page load to complete.
      See Also: