Package org.fluentlenium.core.wait
Interface FluentWaitConditions<T>
-
- Type Parameters:
T-thisobject type to chain method calls
- All Known Implementing Classes:
FluentWait,FluentWaitElement,FluentWaitElementList
public interface FluentWaitConditions<T>Conditions API for Fluent wait objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TexplicitlyFor(long amount)Waits unconditionally for an explicit amount of time.TexplicitlyFor(long amount, java.util.concurrent.TimeUnit timeUnit)Waits unconditionally for an explicit amount of time.FluentListConditionsuntil(java.util.List<? extends FluentWebElement> elements)Get a conditions object used to wait for a condition on given elements.FluentConditionsuntil(FluentWebElement element)Get a conditions object used to wait for condition on given element.FluentListConditionsuntilEach(java.util.List<? extends FluentWebElement> elements)Get a conditions object used to wait for a condition on given elements.FluentListConditionsuntilEachElements(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)Get a conditions object used to wait for a condition on given elements.FluentConditionsuntilElement(java.util.function.Supplier<? extends FluentWebElement> element)Get a conditions object used to wait for a condition on given element.FluentListConditionsuntilElements(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)Get a conditions object used to wait for a condition on given elements.FluentWaitPageConditionsuntilPage()Get a condition object used to wait for a page condition.FluentWaitPageConditionsuntilPage(FluentPage page)Get a condition object used to wait for a page condition.FluentWaitWindowConditionsuntilWindow(java.lang.String windowName)Get a condition object used to wait for a window condition.
-
-
-
Method Detail
-
until
FluentConditions until(FluentWebElement element)
Get a conditions object used to wait for condition on given element.- Parameters:
element- element to wait for- Returns:
- conditions object
-
until
FluentListConditions until(java.util.List<? extends FluentWebElement> elements)
Get a conditions object used to wait for a condition on given elements.At least one element must verify the condition to be verified.
- Parameters:
elements- elements to wait for- Returns:
- conditions object
-
untilEach
FluentListConditions untilEach(java.util.List<? extends FluentWebElement> elements)
Get a conditions object used to wait for a condition on given elements.Each element must verify the condition to be verified.
- Parameters:
elements- elements to wait for- Returns:
- conditions object
-
untilElement
FluentConditions untilElement(java.util.function.Supplier<? extends FluentWebElement> element)
Get a conditions object used to wait for a condition on given element.- Parameters:
element- element to wait for- Returns:
- conditions object
-
untilElements
FluentListConditions untilElements(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)
Get a conditions object used to wait for a condition on given elements.At least one element must verify the condition to be verified.
- Parameters:
elements- elements to wait for- Returns:
- conditions object
-
untilEachElements
FluentListConditions untilEachElements(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)
Get a conditions object used to wait for a condition on given elements.Each element must verify the condition to be verified.
- Parameters:
elements- elements to wait for- Returns:
- conditions object
-
untilWindow
FluentWaitWindowConditions untilWindow(java.lang.String windowName)
Get a condition object used to wait for a window condition.- Parameters:
windowName- name of the window to wait for- Returns:
- window conditions object
-
untilPage
FluentWaitPageConditions untilPage()
Get a condition object used to wait for a page condition.- Returns:
- page conditions object
-
untilPage
FluentWaitPageConditions untilPage(FluentPage page)
Get a condition object used to wait for a page condition.- Parameters:
page- page to wait for- Returns:
- page conditions object
-
explicitlyFor
T explicitlyFor(long amount, java.util.concurrent.TimeUnit timeUnit)
Waits unconditionally for an explicit amount of time.The method should be used only as a last resort.
In most cases you should wait for some condition, e.g. visibility of particular element on the page.
- Parameters:
amount- amount of timetimeUnit- unit of time- Returns:
thisobject to chain method calls
-
explicitlyFor
default T explicitlyFor(long amount)
Waits unconditionally for an explicit amount of time.The method should be used only as a last resort.
In most cases you should wait for some condition, e.g. visibility of particular element on the page.
- Parameters:
amount- amount of time to wait in milliseconds- Returns:
thisobject to chain method calls
-
-