com.atlassian.webdriver.waiter.webdriver
Class WebDriverWaiter

java.lang.Object
  extended by com.atlassian.webdriver.waiter.webdriver.WebDriverWaiter
All Implemented Interfaces:
Waiter

@ExperimentalApi
public class WebDriverWaiter
extends Object
implements Waiter

WARNING: This API is still experimental and may be changed between versions.

Since:
2.1.0

Constructor Summary
WebDriverWaiter(AtlassianWebDriver driver)
           
 
Method Summary
 WaiterQuery until()
          Creates a WaiterQuery that uses the default interval DEFAULT_INTERVAL_TIME
 WaiterQuery until(long timeout)
          Creates a WaiterQuery which allows the timeout interval for the waiter to be set.
 WaiterQuery until(long time, TimeUnit unit)
          Creates a WaiterQuery which setgs the timeout interval to a more specific value in seconds or milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDriverWaiter

@Inject
public WebDriverWaiter(AtlassianWebDriver driver)
Method Detail

until

public WaiterQuery until()
Creates a WaiterQuery that uses the default interval DEFAULT_INTERVAL_TIME

Specified by:
until in interface Waiter
Returns:

until

public WaiterQuery until(long timeout)
Creates a WaiterQuery which allows the timeout interval for the waiter to be set.

Specified by:
until in interface Waiter
Parameters:
timeout - in seconds for the waiter to run for before failing.
Returns:
a WaiterQuery with the timeout interval set to the provided interval

until

public WaiterQuery until(long time,
                         TimeUnit unit)
Creates a WaiterQuery which setgs the timeout interval to a more specific value in seconds or milliseconds.

Specified by:
until in interface Waiter
Parameters:
time - the maximum time to wait
unit - the time unit of the time argument
Returns:
a WaiterQuery with the timeout interval set to the provided interval


Copyright © 2014 Atlassian. All rights reserved.