T - this object type to chain method callspublic interface FluentWaitConfiguration<T>
| Modifier and Type | Method and Description |
|---|---|
T |
atMost(long duration)
Configure wait timeout for this wait object.
|
T |
atMost(long duration,
TimeUnit unit)
Configure timeout for this wait object.
|
org.openqa.selenium.support.ui.FluentWait |
getWait()
Get the underlying selenium wait object
|
boolean |
hasMessageDefined()
Check if a message is defined.
|
T |
ignoreAll(Collection<Class<? extends Throwable>> types)
Add given exceptions to ignore list to avoid breaking the wait when they occurs in the underlying condition evaluation.
|
T |
ignoring(Class<? extends RuntimeException> exceptionType)
Add given exception to ignore list to avoid breaking the wait when they occurs in the underlying condition evaluation.
|
T |
ignoring(Class<? extends RuntimeException> firstType,
Class<? extends RuntimeException> secondType)
Add given exceptions to ignore list to avoid breaking the wait when they occurs in the underlying condition evaluation.
|
T |
pollingEvery(long duration)
Configure polling time for this wait object.
|
T |
pollingEvery(long duration,
TimeUnit unit)
Configure polling time for this wait object.
|
T |
withMessage(String message)
Configures a custom message to be used if the condition fails during the timeout duration.
|
T |
withMessage(com.google.common.base.Supplier<String> message)
Configures a custom message supplier to be used if the condition fails during the timeout duration.
|
T |
withNoDefaultsException()
Removes default exceptions from exceptions ignore list.
|
org.openqa.selenium.support.ui.FluentWait getWait()
T atMost(long duration, TimeUnit unit)
duration - durationunit - time unitthis object to chain method callsT atMost(long duration)
duration - duration in millisecondthis object to chain method callsT pollingEvery(long duration, TimeUnit unit)
duration - duration between each condition invocationunit - time unitthis object to chain method callsT pollingEvery(long duration)
duration - duration in millisecond between each condition invocationthis object to chain method callsT ignoreAll(Collection<Class<? extends Throwable>> types)
types - collection of exception type to ignorethis object to chain method callsT ignoring(Class<? extends RuntimeException> exceptionType)
exceptionType - exception type to ignorethis object to chain method callsT ignoring(Class<? extends RuntimeException> firstType, Class<? extends RuntimeException> secondType)
firstType - exception type to ignoresecondType - exception type to ignorethis object to chain method callsT withMessage(String message)
message - failing messagethis object to chain method callsT withMessage(com.google.common.base.Supplier<String> message)
message - failing messagethis object to chain method callsboolean hasMessageDefined()
T withNoDefaultsException()
this object to chain method callsCopyright © 2016 FluentLenium. All Rights Reserved.