public class FluentListImpl<E extends FluentWebElement> extends ArrayList<E> implements FluentList<E>
modCount| Constructor and Description |
|---|
FluentListImpl(Collection<E> listFiltered) |
| 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, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, streampublic FluentListImpl(Collection<E> listFiltered)
public E first()
first in interface FluentList<E extends FluentWebElement>public FluentList click()
click in interface FluentDefaultActions<FluentList>click in interface FluentList<E extends FluentWebElement>public FluentList text(String... with)
text in interface FluentDefaultActions<FluentList>text in interface FluentList<E extends FluentWebElement>public FluentList<E> clearAll()
clearAll in interface FluentList<E extends FluentWebElement>public void clear()
clear in interface Collection<E extends FluentWebElement>clear in interface List<E extends FluentWebElement>clear in interface FluentList<E extends FluentWebElement>clear in class ArrayList<E extends FluentWebElement>public FluentList<E> submit()
submit in interface FluentDefaultActions<FluentList>submit in interface FluentList<E extends FluentWebElement>public List<String> getValues()
getValues in interface FluentList<E extends FluentWebElement>public List<String> getIds()
getIds in interface FluentList<E extends FluentWebElement>public List<String> getAttributes(String attribute)
getAttributes in interface FluentList<E extends FluentWebElement>attribute - attribute namepublic List<String> getNames()
getNames in interface FluentList<E extends FluentWebElement>public List<String> getTextContents()
getTextContents in interface FluentList<E extends FluentWebElement>public List<String> getTexts()
getTexts in interface FluentList<E extends FluentWebElement>public String getValue()
getValue in interface FluentList<E extends FluentWebElement>public String getId()
getId in interface FluentList<E extends FluentWebElement>public String getAttribute(String attribute)
getAttribute in interface FluentList<E extends FluentWebElement>attribute - attribute namepublic String getName()
getName in interface FluentList<E extends FluentWebElement>public String getText()
getText in interface FluentList<E extends FluentWebElement>public FluentList<E> find(String name, Filter... filters)
find in interface FluentList<E extends FluentWebElement>find in interface SearchActionsname - element namefilters - set of filterspublic FluentList<E> find(Filter... filters)
find in interface FluentList<E extends FluentWebElement>find in interface SearchActionsfilters - set of filterspublic E find(String name, Integer number, Filter... filters)
find in interface FluentList<E extends FluentWebElement>find in interface SearchActionsname - element namenumber - set of filtersfilters - set of filterspublic E find(Integer number, Filter... filters)
find in interface FluentList<E extends FluentWebElement>find in interface SearchActionsnumber - element namefilters - set of filterspublic E findFirst(String name, Filter... filters)
findFirst in interface FluentList<E extends FluentWebElement>findFirst in interface SearchActionsname - element namefilters - set of filterspublic E findFirst(Filter... filters)
findFirst in interface FluentList<E extends FluentWebElement>findFirst in interface SearchActionsfilters - set of filtersCopyright © 2015 AConsulting. All Rights Reserved.