public class ConditionalWait extends Object implements IConditionalWait
| Constructor and Description |
|---|
ConditionalWait(com.google.inject.Provider<IApplication> applicationProvider,
ITimeoutConfiguration timeoutConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
waitFor(BooleanSupplier condition,
Duration timeout,
Duration pollingInterval,
String message,
Collection<Class<? extends Throwable>> exceptionsToIgnore)
Wait for some condition within timeout.
|
<T> T |
waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> condition,
Duration timeout,
Duration pollingInterval,
String message,
Collection<Class<? extends Throwable>> exceptionsToIgnore)
Waits for function will be true or return some except false.
|
void |
waitForTrue(BooleanSupplier condition,
Duration timeout,
Duration pollingInterval,
String message,
Collection<Class<? extends Throwable>> exceptionsToIgnore)
Wait for some condition within timeout.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwaitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitForTrue, waitForTrue, waitForTrue, waitForTrue, waitForTrue, waitForTrue, waitForTrue, waitForTrue@Inject public ConditionalWait(com.google.inject.Provider<IApplication> applicationProvider, ITimeoutConfiguration timeoutConfiguration)
public boolean waitFor(BooleanSupplier condition, Duration timeout, Duration pollingInterval, String message, Collection<Class<? extends Throwable>> exceptionsToIgnore)
IConditionalWaitwaitFor in interface IConditionalWaitcondition - Condition with boolean result (predicate)timeout - Condition timeoutpollingInterval - Condition check intervalmessage - Part of error message in case of Timeout exceptionexceptionsToIgnore - Exceptions to ignorepublic void waitForTrue(BooleanSupplier condition, Duration timeout, Duration pollingInterval, String message, Collection<Class<? extends Throwable>> exceptionsToIgnore) throws TimeoutException
IConditionalWaitwaitForTrue in interface IConditionalWaitcondition - Condition with boolean result (predicate)timeout - Condition timeoutpollingInterval - Condition check intervalmessage - Part of error message in case of Timeout exceptionexceptionsToIgnore - Exceptions to ignoreTimeoutException - will be thrown in case if timeout is over but condition was not metpublic <T> T waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> condition,
Duration timeout,
Duration pollingInterval,
String message,
Collection<Class<? extends Throwable>> exceptionsToIgnore)
IConditionalWaitwaitFor in interface IConditionalWaitT - Type of object which is waitingcondition - Function for waiting Functiontimeout - Duration before the time-outpollingInterval - interval between checks whether condition matchmessage - the message that will be added to an error in case if the condition is not matched during the timeoutexceptionsToIgnore - list of exceptions that should be ignored during waitingCopyright © 2020. All rights reserved.