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.
Constructor Summary |
protected |
WebDriverWait(WebDriver driver,
Clock clock,
Sleeper sleeper,
long timeOutInSeconds,
long sleepTimeOut)
|
|
WebDriverWait(WebDriver driver,
long timeOutInSeconds)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others. |
|
WebDriverWait(WebDriver driver,
long timeOutInSeconds,
long sleepInMillis)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others. |
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)
- Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others. You can add more to the ignore
list by calling ignoring(exceptions to add).
- Parameters:
driver
- The WebDriver instance to pass to the expected conditionstimeOutInSeconds
- The timeout in seconds when an expectation is called- See Also:
equals
WebDriverWait
public WebDriverWait(WebDriver driver,
long timeOutInSeconds,
long sleepInMillis)
- Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others. You can add more to the ignore
list by calling ignoring(exceptions to add).
- 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.- See Also:
equals
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 © 2012. All Rights Reserved.