com.atlassian.webdriver.waiter.webdriver
Class AtlassianWebDriverWait

java.lang.Object
  extended by org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>
      extended by com.atlassian.webdriver.waiter.webdriver.AtlassianWebDriverWait
All Implemented Interfaces:
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver>

@ExperimentalApi
public class AtlassianWebDriverWait
extends org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>

A specialization of FluentWait that uses WebDriver instances and uses milliseconds for the time interval instead of seconds.

Since:
2.1.0
See Also:
WARNING: This API is still experimental and may be changed between versions.

Field Summary
 
Fields inherited from class org.openqa.selenium.support.ui.FluentWait
FIVE_HUNDRED_MILLIS
 
Constructor Summary
  AtlassianWebDriverWait(org.openqa.selenium.WebDriver input, org.openqa.selenium.support.ui.Clock clock, org.openqa.selenium.support.ui.Sleeper sleeper)
           
protected AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.ui.Clock clock, org.openqa.selenium.support.ui.Sleeper sleeper, long timeOutInMilliSeconds, long sleepTimeOut)
           
  AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver, long timeOutInMilliSeconds)
           
  AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver, long timeOutInMilliSeconds, long sleepInMillis)
           
 
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
 

Constructor Detail

AtlassianWebDriverWait

public AtlassianWebDriverWait(org.openqa.selenium.WebDriver input,
                              org.openqa.selenium.support.ui.Clock clock,
                              org.openqa.selenium.support.ui.Sleeper sleeper)

AtlassianWebDriverWait

public AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver,
                              long timeOutInMilliSeconds)
Parameters:
driver - The WebDriver instance to pass to the expected conditions
timeOutInMilliSeconds - The timeout in seconds when an expectation is called

AtlassianWebDriverWait

public AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver,
                              long timeOutInMilliSeconds,
                              long sleepInMillis)
Parameters:
driver - The WebDriver instance to pass to the expected conditions
timeOutInMilliSeconds - The timeout in seconds when an expectation is called
sleepInMillis - The duration in milliseconds to sleep between polls.

AtlassianWebDriverWait

protected AtlassianWebDriverWait(org.openqa.selenium.WebDriver driver,
                                 org.openqa.selenium.support.ui.Clock clock,
                                 org.openqa.selenium.support.ui.Sleeper sleeper,
                                 long timeOutInMilliSeconds,
                                 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.
timeOutInMilliSeconds - The timeout in seconds when an expectation is
sleepTimeOut - The timeout used whilst sleeping. Defaults to 500ms called.


Copyright © 2014 Atlassian. All rights reserved.