Package org.openqa.selenium.remote
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the amount of time the driver should wait when searching for an element if it is not immediately present.Gets the amount of time to wait for a page load to complete before throwing an error.Gets the amount of time to wait for an asynchronous script to finish execution before throwing an error.implicitlyWait
(long time, TimeUnit unit) Deprecated.implicitlyWait
(Duration duration) Specifies the amount of time the driver should wait when searching for an element if it is not immediately present.pageLoadTimeout
(long time, TimeUnit unit) Deprecated.pageLoadTimeout
(Duration duration) Sets the amount of time to wait for a page load to complete before throwing an error.scriptTimeout
(Duration duration) Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.setScriptTimeout
(long time, TimeUnit unit) Deprecated.setScriptTimeout
(Duration duration) Deprecated.
-
Constructor Details
-
RemoteTimeouts
protected RemoteTimeouts()
-
-
Method Details
-
implicitlyWait
Deprecated.- Specified by:
implicitlyWait
in interfaceWebDriver.Timeouts
- Parameters:
time
- The amount of time to wait.unit
- The unit of measure fortime
.- Returns:
- A self reference.
-
implicitlyWait
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 interfaceWebDriver.Timeouts
- Parameters:
duration
- The duration to wait.- Returns:
- A self reference.
-
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 interfaceWebDriver.Timeouts
- Returns:
- The amount of time the driver should wait when searching for an element.
- See Also:
-
setScriptTimeout
Deprecated.- Specified by:
setScriptTimeout
in interfaceWebDriver.Timeouts
- Parameters:
time
- The timeout value.unit
- The unit of time.- Returns:
- A self reference.
- See Also:
-
setScriptTimeout
Deprecated.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:
setScriptTimeout
in interfaceWebDriver.Timeouts
- Parameters:
duration
- The timeout value.- Returns:
- A self reference.
- See Also:
-
scriptTimeout
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 interfaceWebDriver.Timeouts
- Parameters:
duration
- The timeout value.- Returns:
- A self reference.
- See Also:
-
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 interfaceWebDriver.Timeouts
- Returns:
- The amount of time to wait for an asynchronous script to finish execution.
- See Also:
-
pageLoadTimeout
Deprecated.- Specified by:
pageLoadTimeout
in interfaceWebDriver.Timeouts
- Parameters:
time
- The timeout value.unit
- The unit of time.- Returns:
- A Timeouts interface.
- See Also:
-
pageLoadTimeout
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 interfaceWebDriver.Timeouts
- Parameters:
duration
- The timeout value.- Returns:
- A Timeouts interface.
- See Also:
-
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 interfaceWebDriver.Timeouts
- Returns:
- The amount of time to wait for a page load to complete.
- See Also:
-