net.thucydides.core.scheduling
Class ThucydidesFluentWait<T>

Package class diagram package ThucydidesFluentWait
java.lang.Object
  extended by net.thucydides.core.scheduling.ThucydidesFluentWait<T>
All Implemented Interfaces:
org.openqa.selenium.support.ui.Wait<T>
Direct Known Subclasses:
FluentWaitWithRefresh, NormalFluentWait

public abstract class ThucydidesFluentWait<T>
extends Object
implements org.openqa.selenium.support.ui.Wait<T>


Field Summary
static org.openqa.selenium.support.ui.Duration FIVE_HUNDRED_MILLIS
           
protected  org.openqa.selenium.support.ui.Duration interval
           
protected  org.openqa.selenium.support.ui.Duration timeout
           
 
Constructor Summary
ThucydidesFluentWait(T input, org.openqa.selenium.support.ui.Clock clock, org.openqa.selenium.support.ui.Sleeper sleeper)
           
 
Method Summary
abstract  void doWait()
           
protected  org.openqa.selenium.support.ui.Clock getClock()
           
protected  T getInput()
           
protected  org.openqa.selenium.support.ui.Sleeper getSleeper()
           
 ThucydidesFluentWait<T> ignoring(Class<? extends RuntimeException>... types)
           
 PollingSchedule pollingEvery(int amount)
           
 ThucydidesFluentWait<T> pollingEvery(long duration, TimeUnit unit)
           
protected  RuntimeException timeoutException(String message, RuntimeException lastException)
           
<V> V
until(com.google.common.base.Function<? super T,V> isTrue)
           
 ThucydidesFluentWait<T> withTimeout(long duration, TimeUnit unit)
           
 TimeoutSchedule withTimeoutOf(int amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIVE_HUNDRED_MILLIS

public static org.openqa.selenium.support.ui.Duration FIVE_HUNDRED_MILLIS

timeout

protected org.openqa.selenium.support.ui.Duration timeout

interval

protected org.openqa.selenium.support.ui.Duration interval
Constructor Detail

ThucydidesFluentWait

public ThucydidesFluentWait(T input,
                            org.openqa.selenium.support.ui.Clock clock,
                            org.openqa.selenium.support.ui.Sleeper sleeper)
Method Detail

getClock

protected org.openqa.selenium.support.ui.Clock getClock()

getInput

protected T getInput()

getSleeper

protected org.openqa.selenium.support.ui.Sleeper getSleeper()

until

public <V> V until(com.google.common.base.Function<? super T,V> isTrue)
Specified by:
until in interface org.openqa.selenium.support.ui.Wait<T>

doWait

public abstract void doWait()
                     throws InterruptedException
Throws:
InterruptedException

ignoring

public ThucydidesFluentWait<T> ignoring(Class<? extends RuntimeException>... types)

withTimeout

public ThucydidesFluentWait<T> withTimeout(long duration,
                                           TimeUnit unit)

pollingEvery

public ThucydidesFluentWait<T> pollingEvery(long duration,
                                            TimeUnit unit)

timeoutException

protected RuntimeException timeoutException(String message,
                                            RuntimeException lastException)

withTimeoutOf

public TimeoutSchedule withTimeoutOf(int amount)

pollingEvery

public PollingSchedule pollingEvery(int amount)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.