protected class RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts extends java.lang.Object implements WebDriver.Timeouts
| Modifier | Constructor and Description |
|---|---|
protected |
RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts() |
| Modifier and Type | Method and Description |
|---|---|
WebDriver.Timeouts |
implicitlyWait(long time,
java.util.concurrent.TimeUnit unit)
Specifies the amount of time the driver should wait when searching for an element if it is
not immediately present.
|
WebDriver.Timeouts |
pageLoadTimeout(long time,
java.util.concurrent.TimeUnit unit)
Sets the amount of time to wait for a page load to complete before throwing an error.
|
WebDriver.Timeouts |
setScriptTimeout(long time,
java.util.concurrent.TimeUnit unit)
Sets the amount of time to wait for an asynchronous script to finish execution before
throwing an error.
|
protected RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts()
public WebDriver.Timeouts implicitlyWait(long time, java.util.concurrent.TimeUnit unit)
WebDriver.TimeoutsNoSuchElementException. 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.implicitlyWait in interface WebDriver.Timeoutstime - The amount of time to wait.unit - The unit of measure for time.public WebDriver.Timeouts setScriptTimeout(long time, java.util.concurrent.TimeUnit unit)
WebDriver.TimeoutssetScriptTimeout in interface WebDriver.Timeoutstime - The timeout value.unit - The unit of time.JavascriptExecutor.executeAsyncScript(String, Object...)public WebDriver.Timeouts pageLoadTimeout(long time, java.util.concurrent.TimeUnit unit)
WebDriver.TimeoutspageLoadTimeout in interface WebDriver.Timeoutstime - The timeout value.unit - The unit of time.