org.openqa.selenium.support.ui
Class WebDriverWait

java.lang.Object
  extended by org.openqa.selenium.support.ui.FluentWait<WebDriver>
      extended by 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.


Field Summary
static long DEFAULT_SLEEP_TIMEOUT
           
 
Fields inherited from class org.openqa.selenium.support.ui.FluentWait
FIVE_HUNDRED_MILLIS
 
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.
 
Method Summary
 
Methods inherited from class org.openqa.selenium.support.ui.FluentWait
ignoreAll, ignoring, ignoring, pollingEvery, timeoutException, until, until, withMessage, withTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SLEEP_TIMEOUT

public static final long DEFAULT_SLEEP_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

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 conditions
timeOutInSeconds - 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 conditions
timeOutInSeconds - The timeout in seconds when an expectation is called
sleepInMillis - 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 conditions
clock - The clock to use when measuring the timeout
sleeper - Object used to make the current thread go to sleep.
timeOutInSeconds - The timeout in seconds when an expectation is
sleepTimeOut - The timeout used whilst sleeping. Defaults to 500ms called.


Copyright © 2013. All Rights Reserved.