public interface FluentList<E extends FluentWebElement> extends List<E>, FluentDefaultActions<FluentList>, SearchActions
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all elements on the list
Only the visible elements are filled
|
FluentList<E> |
clearAll()
Clear all elements on the list
Only the visible elements are filled
|
FluentList |
click()
Click on all elements on the list
Only the visible elements are filled
|
FluentList<E> |
find(Filter... filters)
find elements in the children with the corresponding filters
|
E |
find(Integer number,
Filter... filters)
find element in the children with the corresponding filters at the position indicated by the number
|
FluentList<E> |
find(String name,
Filter... filters)
find elements into the children with the corresponding filters
|
E |
find(String name,
Integer number,
Filter... filters)
find elements into the children with the corresponding filters at the position indicated by the number
|
E |
findFirst(Filter... filters)
find element in the children with the corresponding filters at the first position
|
E |
findFirst(String name,
Filter... filters)
find elements into the children with the corresponding filters at the first position
|
E |
first()
Return the first element of the list
If none, return NoSuchElementException
|
String |
getAttribute(String attribute)
Return a custom attribute of the first element on the list
|
List<String> |
getAttributes(String attribute)
Return a custom attribute of elements on the list
|
String |
getId()
Return the id of the first element on the list
|
List<String> |
getIds()
Return the id of elements on the list
|
String |
getName()
Return the name of the first element on the list
|
List<String> |
getNames()
Return the name of elements on the list
|
String |
getText()
Return the text of the first element on the list
|
List<String> |
getTextContents()
Return the text contents of list elements
|
List<String> |
getTexts()
Return the texts of list elements
|
String |
getValue()
Return the value of the first element in the list
|
List<String> |
getValues()
Return the value of elements on the list
|
FluentList<E> |
submit()
submit on all elements on the list
Only the visible elements are submitted
|
FluentList |
text(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, toArrayparallelStream, removeIf, streamE first()
org.openqa.selenium.NoSuchElementException - when element not foundFluentList click()
click in interface FluentDefaultActions<FluentList>FluentList text(String... with)
text in interface FluentDefaultActions<FluentList>FluentList<E> submit()
submit in interface FluentDefaultActions<FluentList>List<String> getValues()
List<String> getAttributes(String attribute)
attribute - attribute nameList<String> getNames()
List<String> getTextContents()
String getValue()
String getId()
String getAttribute(String attribute)
attribute - attribute nameString getName()
String getText()
FluentList<E> find(String name, Filter... filters)
find in interface SearchActionsname - element namefilters - set of filtersFluentList<E> find(Filter... filters)
find in interface SearchActionsfilters - set of filtersE find(String name, Integer number, Filter... filters)
find in interface SearchActionsname - element namenumber - set of filtersfilters - set of filtersE find(Integer number, Filter... filters)
find in interface SearchActionsnumber - element namefilters - set of filtersE findFirst(String name, Filter... filters)
findFirst in interface SearchActionsname - element namefilters - set of filtersE findFirst(Filter... filters)
findFirst in interface SearchActionsfilters - set of filtersFluentList<E> clearAll()
void clear()
clear in interface Collection<E extends FluentWebElement>clear in interface List<E extends FluentWebElement>Copyright © 2015 AConsulting. All Rights Reserved.