public class FluentList<E extends FluentWebElement> extends ArrayList<E> implements FluentDefaultActions<FluentList>, SearchActions
modCount| Constructor and Description |
|---|
FluentList(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(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(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> |
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, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic FluentList(Collection<E> listFiltered)
public E first()
org.openqa.selenium.NoSuchElementExceptionpublic FluentList click()
click in interface FluentDefaultActions<FluentList>public FluentList text(String... with)
text in interface FluentDefaultActions<FluentList>public FluentList<E> clearAll()
public void clear()
clear in interface Collection<E extends FluentWebElement>clear in interface List<E extends FluentWebElement>clear in class ArrayList<E extends FluentWebElement>public FluentList<E> submit()
submit in interface FluentDefaultActions<FluentList>public List<String> getAttributes(String attribute)
public String getValue()
public String getId()
public String getAttribute(String attribute)
public String getName()
public String getText()
public FluentList<E> find(String name, Filter... filters)
find in interface SearchActionsname - filters - public E find(String name, Integer number, Filter... filters)
find in interface SearchActionsname - number - filters - public E findFirst(String name, Filter... filters)
findFirst in interface SearchActionsname - filters - Copyright © 2014 AConsulting. All Rights Reserved.