org.openqa.selenium.support.ui
Class WebDriverWait
java.lang.Object
org.openqa.selenium.support.ui.FluentWait<WebDriver>
org.openqa.selenium.support.ui.WebDriverWait
- All Implemented Interfaces:
- Wait<WebDriver>
public class WebDriverWait
- extends FluentWait<WebDriver>
A specialization of FluentWait
that uses WebDriver instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SLEEP_TIMEOUT
public static final long DEFAULT_SLEEP_TIMEOUT
- See Also:
- Constant Field Values
WebDriverWait
public WebDriverWait(WebDriver driver,
long timeOutInSeconds)
- Parameters:
driver
- The WebDriver instance to pass to the expected conditionstimeOutInSeconds
- The timeout in seconds when an expectation is
called
WebDriverWait
public WebDriverWait(WebDriver driver,
long timeOutInSeconds,
long sleepInMillis)
- Parameters:
driver
- The WebDriver instance to pass to the expected conditionstimeOutInSeconds
- The timeout in seconds when an expectation is
calledsleepInMillis
- The duration in milliseconds to sleep between polls.
WebDriverWait
protected WebDriverWait(WebDriver driver,
Clock clock,
Sleeper sleeper,
long timeOutInSeconds,
long sleepTimeOut)
- Parameters:
driver
- The WebDriver instance to pass to the expected conditionsclock
- The clock to use when measuring the timeoutsleeper
- Object used to make the current thread go to sleep.timeOutInSeconds
- The timeout in seconds when an expectation issleepTimeOut
- The timeout used whilst sleeping. Defaults to 500ms
called.
Copyright © 2011. All Rights Reserved.