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)
           
  WebDriverWait(WebDriver driver, long timeOutInSeconds, long sleepInMillis)
           
 
Method Summary
 
Methods inherited from class org.openqa.selenium.support.ui.FluentWait
ignoring, pollingEvery, timeoutException, until, until, 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)
Parameters:
driver - The WebDriver instance to pass to the expected conditions
timeOutInSeconds - 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 conditions
timeOutInSeconds - The timeout in seconds when an expectation is called
sleepInMillis - 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 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 © 2011. All Rights Reserved.