E - type of elementpublic interface FluentList<E extends FluentWebElement> extends java.util.List<E>, FluentActions<FluentList<E>,E>, FluentProxyState<FluentList<E>>, SearchControl<E>, HookControl<FluentList<E>>, FluentLabel<FluentList<E>>
FluentWebElement. It provides an enhanced API to control list of selenium elements.| Modifier and Type | Method and Description |
|---|---|
<T extends FluentWebElement> |
as(java.lang.Class<T> componentClass)
Wrap all underlying elements in a componen..
|
java.util.List<java.lang.String> |
attributes(java.lang.String attribute)
Return a custom attribute of elements on the list
|
FluentWaitElementList |
await()
Build a wait object to wait for a condition of this element list.
|
FluentListConditions |
awaitUntilEach()
Build a condition object on this element list that will match if each underlying element match,
automatically waiting for condition to be verified.
|
FluentListConditions |
awaitUntilOne()
Build a condition object on this element list that will match if one or more underlying element match,
automatically waiting for condition to be verified.
|
void |
clear()
Clear visible elements on the list
|
FluentList<E> |
clearAll()
Clear all elements on the list
|
void |
clearList()
Calls
List.clear() from underlying List implementation. |
FluentList<E> |
click()
Click on all elements on the list
Only the clickable elements are clicked
|
FluentList<E> |
contextClick()
context click on all elements on the list
Only the clickable elements are clicked
|
int |
count()
Count elements without actually loading the lazy list.
|
FluentList<E> |
doubleClick()
double click on all elements on the list
Only the clickable elements are clicked
|
FluentListConditions |
each()
Build a condition object on this element list that will match if each underlying element match.
|
FluentList<E> |
find(SearchFilter... filters)
find elements in the children with the corresponding filters
|
FluentList<E> |
find(java.lang.String selector,
SearchFilter... filters)
find elements into the children with the corresponding filters
|
E |
first()
Retrieve the first element.
|
java.util.List<java.lang.String> |
ids()
Return the id of elements on the list
|
E |
index(int index)
Retrieve an element at given index.
|
E |
last()
Retrieve the last element.
|
java.util.List<java.lang.String> |
names()
Return the name of elements on the list
|
FluentListConditions |
one()
Build a condition object on this element list that will match if one or more underlying element match.
|
E |
single()
Retrieve the first element and checks is it exactly one element in the list
|
FluentList<E> |
submit()
submit on all elements on the list
Only the visible elements are submitted
|
java.util.List<java.lang.String> |
tagNames()
Return the tag name of elements on the list
|
java.util.List<java.lang.String> |
textContents()
Return the text contents of list elements
|
java.util.List<java.lang.String> |
texts()
Return the texts of list elements
|
java.util.List<org.openqa.selenium.WebElement> |
toElements()
Creates a list of Selenium
WebElement from this list |
java.util.List<java.lang.String> |
values()
Return the value of elements on the list
|
FluentList |
write(java.lang.String... with)
Fill all elements on the list with the corresponding cell in the with table.
|
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayfill, fillSelect, framescrollIntoView, scrollIntoView, scrollToCenterloaded, now, now, optional, present, reset$, $, $, $, el, el, el, el, find, findnoHook, noHook, noHook, noHook, noHookInstance, noHookInstance, restoreHooks, withHook, withHookwithLabel, withLabelHintE first()
E single()
E last()
E index(int index)
index - position of the element to retrievejava.util.List<org.openqa.selenium.WebElement> toElements()
WebElement from this listFluentList<E> click()
click in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>WebElement.click()FluentList<E> doubleClick()
doubleClick in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>FluentList<E> contextClick()
contextClick in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>FluentList write(java.lang.String... with)
write in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>with - one or many text to send.WebElement.sendKeys(CharSequence...)FluentList<E> submit()
submit in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>WebElement.submit()java.util.List<java.lang.String> values()
java.util.List<java.lang.String> ids()
java.util.List<java.lang.String> attributes(java.lang.String attribute)
attribute - attribute namejava.util.List<java.lang.String> names()
java.util.List<java.lang.String> tagNames()
java.util.List<java.lang.String> texts()
java.util.List<java.lang.String> textContents()
FluentList<E> find(java.lang.String selector, SearchFilter... filters)
find in interface SearchControl<E extends FluentWebElement>selector - element namefilters - set of filtersFluentList<E> find(SearchFilter... filters)
find in interface SearchControl<E extends FluentWebElement>filters - set of filtersint count()
This method ignore defined hooks.
FluentList<E> clearAll()
Only the visible elements are cleared.
void clear()
clear in interface java.util.Collection<E extends FluentWebElement>clear in interface java.util.List<E extends FluentWebElement>void clearList()
List.clear() from underlying List implementation.List.clear()<T extends FluentWebElement> FluentList<T> as(java.lang.Class<T> componentClass)
T - type of componentcomponentClass - component classFluentListConditions each()
FluentListConditions one()
FluentWaitElementList await()
FluentListConditions awaitUntilEach()
FluentListConditions awaitUntilOne()
Copyright © 2018 FluentLenium. All Rights Reserved.