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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts
protected RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts()
implicitlyWait
public WebDriver.Timeouts implicitlyWait(long time,
TimeUnit unit)
- 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.
- Specified by:
implicitlyWait
in interface WebDriver.Timeouts
- Parameters:
time
- The amount of time to wait.unit
- The unit of measure for time
.
- Returns:
- A self reference.
setScriptTimeout
public WebDriver.Timeouts setScriptTimeout(long time,
TimeUnit unit)
- 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, then the
script will be allowed to run indefinitely.
- Specified by:
setScriptTimeout
in interface WebDriver.Timeouts
- Parameters:
time
- The timeout value.unit
- The unit of time.
- Returns:
- A self reference.
- See Also:
JavascriptExecutor.executeAsyncScript(String, Object...)
Copyright © 2011. All Rights Reserved.