| Constructor and Description |
|---|
FluentWait(Fluent fluent,
Search search) |
| Modifier and Type | Method and Description |
|---|---|
FluentWait |
atMost(long timeInMillis) |
FluentWait |
atMost(long duration,
TimeUnit unit) |
org.openqa.selenium.support.ui.FluentWait |
getWait() |
FluentWait |
ignoreAll(Collection<Class<? extends Throwable>> types) |
FluentWait |
ignoring(Class<? extends RuntimeException> exceptionType) |
FluentWait |
ignoring(Class<? extends RuntimeException> firstType,
Class<? extends RuntimeException> secondType)
Ignoring the two exceptions passed as params
|
FluentWait |
pollingEvery(long duration,
TimeUnit unit) |
FluentWaitElementMatcher |
until(FluentWebElement element)
Return a matcher configured to wait for particular condition for given element.
|
<T> T |
until(com.google.common.base.Function<? super Fluent,T> isTrue)
Wait until the given condition is true.
|
FluentWaitElementListMatcher |
until(List<? extends FluentWebElement> elements)
Return a matcher configured to wait for particular condition for given elements.
|
void |
until(com.google.common.base.Predicate<Fluent> isTrue)
Deprecated.
This method is java8 lambda ambigous with
until(Function) and will be removed. |
FluentWaitSelectorMatcher |
until(String selector)
Return a matcher configured to wait for particular condition for elements matching then given selector.
|
void |
until(com.google.common.base.Supplier<Boolean> isTrue)
Wait until the given condition is true.
|
FluentWaitSupplierMatcher |
untilElement(com.google.common.base.Supplier<? extends FluentWebElement> selector)
Return a matcher configured to wait for particular condition for elements matching then given functional supplier.
|
FluentWaitSupplierListMatcher |
untilElements(com.google.common.base.Supplier<? extends FluentList<? extends FluentWebElement>> selector)
Return a matcher configured to wait for particular condition for elements matching then given functional supplier.
|
FluentWaitPageMatcher |
untilPage() |
FluentWaitPageMatcher |
untilPage(FluentPage page) |
void |
untilPredicate(com.google.common.base.Predicate<Fluent> predicate)
Wait until the predicate returns true.
|
boolean |
useCustomMessage() |
FluentWait |
withMessage(String message) |
FluentWait |
withNoDefaultsException()
Use this methods only to avoid ignoring StateElementReferenceException
|
public org.openqa.selenium.support.ui.FluentWait getWait()
public FluentWait atMost(long duration, TimeUnit unit)
public FluentWait atMost(long timeInMillis)
timeInMillis - time In Millispublic FluentWait pollingEvery(long duration, TimeUnit unit)
public FluentWait ignoreAll(Collection<Class<? extends Throwable>> types)
public FluentWait ignoring(Class<? extends RuntimeException> exceptionType)
public FluentWait ignoring(Class<? extends RuntimeException> firstType, Class<? extends RuntimeException> secondType)
firstType - first type of exception which extends java.lang.RuntimeExceptionsecondType - second type of exception which extends java.lang.RuntimeException@Deprecated public void until(com.google.common.base.Predicate<Fluent> isTrue)
until(Function) and will be removed.isTrue - predicate condition for waitpublic void untilPredicate(com.google.common.base.Predicate<Fluent> predicate)
predicate - predicate condition for waitpublic FluentWait withMessage(String message)
message - - the failing messagepublic FluentWait withNoDefaultsException()
public FluentWaitSelectorMatcher until(String selector)
selector - - CSS selectorpublic FluentWaitElementMatcher until(FluentWebElement element)
element - Element to wait for.public FluentWaitElementListMatcher until(List<? extends FluentWebElement> elements)
elements - Elements to wait for.public FluentWaitSupplierMatcher untilElement(com.google.common.base.Supplier<? extends FluentWebElement> selector)
selector - Supplier of the element to wait for.public FluentWaitSupplierListMatcher untilElements(com.google.common.base.Supplier<? extends FluentList<? extends FluentWebElement>> selector)
selector - Supplier of the element to wait for.public FluentWaitPageMatcher untilPage()
public FluentWaitPageMatcher untilPage(FluentPage page)
page - - the page to work withpublic void until(com.google.common.base.Supplier<Boolean> isTrue)
isTrue - supplier of a condition returning a boolean.public <T> T until(com.google.common.base.Function<? super Fluent,T> isTrue)
until in interface org.openqa.selenium.support.ui.Wait<Fluent>isTrue - function of a condition returning a boolean or any other object.public boolean useCustomMessage()
Copyright © 2016 FluentLenium. All Rights Reserved.