net.thucydides.core.scheduling
Class ThucydidesFluentWait<T>
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ThucydidesFluentWait
public ThucydidesFluentWait(T input,
org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.support.ui.Sleeper sleeper)
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.