Package org.fluentlenium.core.wait
Interface FluentWaitConditions<T>
-
- Type Parameters:
T
-this
object 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 T
explicitlyFor(long amount)
Waits unconditionally for an explicit amount of time.T
explicitlyFor(long amount, java.util.concurrent.TimeUnit timeUnit)
Waits unconditionally for an explicit amount of time.FluentListConditions
until(java.util.List<? extends FluentWebElement> elements)
Get a conditions object used to wait for a condition on given elements.FluentConditions
until(FluentWebElement element)
Get a conditions object used to wait for condition on given element.FluentListConditions
untilEach(java.util.List<? extends FluentWebElement> elements)
Get a conditions object used to wait for a condition on given elements.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.FluentConditions
untilElement(java.util.function.Supplier<? extends FluentWebElement> element)
Get a conditions object used to wait for a condition on given element.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.FluentWaitPageConditions
untilPage()
Get a condition object used to wait for a page condition.FluentWaitPageConditions
untilPage(FluentPage page)
Get a condition object used to wait for a page condition.FluentWaitWindowConditions
untilWindow(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:
this
object 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:
this
object to chain method calls
-
-