E - type of fluent elementpublic class FluentListImpl<E extends FluentWebElement> extends ComponentList<E> implements FluentList<E>
componentClass, control, instantiator, proxylist| Constructor and Description |
|---|
FluentListImpl(java.lang.Class<E> componentClass,
java.util.List<E> list,
FluentControl control,
ComponentInstantiator instantiator)
Creates a new fluent list.
|
| Modifier and Type | Method and Description |
|---|---|
FluentList<E> |
$(org.openqa.selenium.By locator,
SearchFilter... filters)
Find list of elements with Selenium locator and filters.
|
FluentList<E> |
$(java.util.List<org.openqa.selenium.WebElement> rawElements)
Wrap raw selenium elements into a list of elements.
|
FluentList<E> |
$(SearchFilter... filters)
Find list of elements with filters.
|
FluentList<E> |
$(java.lang.String selector,
SearchFilter... filters)
Find list of elements with CSS selector and filters.
|
<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 |
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 |
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.
|
E |
el(org.openqa.selenium.By locator,
SearchFilter... filters)
Find first element with Selenium locator and filters.
|
E |
el(SearchFilter... filters)
Find first element with filters.
|
E |
el(java.lang.String selector,
SearchFilter... filters)
Find first element with CSS selector and filters.
|
E |
el(org.openqa.selenium.WebElement rawElement)
Wrap existing raw selenium element into an element.
|
Fill |
fill()
Construct a Fill Builder in order to allow easy fill of visible input fields.
|
FillSelect |
fillSelect()
Construct a Fill Select Builder in order to allow easy fill of visible input fields.
|
FluentList<E> |
find(org.openqa.selenium.By locator,
SearchFilter... filters)
Find list of elements with Selenium locator and filters.
|
FluentList<E> |
find(java.util.List<org.openqa.selenium.WebElement> rawElements)
Wrap raw selenium elements into a list of elements.
|
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.
|
FluentList<E> |
frame()
Select a frame using this 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.
|
boolean |
loaded()
Check if the element is loaded.
|
java.util.List<java.lang.String> |
names()
Return the name of elements on the list
|
FluentList<E> |
now()
Search for the element now, actually performing the search on the
WebDriver. |
FluentList<E> |
now(boolean force)
Search for the element now, actually performing the search on the
WebDriver. |
FluentListConditions |
one()
Build a condition object on this element list that will match if one or more underlying element match.
|
java.util.Optional<FluentList<E>> |
optional()
Builds an optional.
|
boolean |
present()
Check if the element is present in the DOM.
|
FluentList<E> |
reset()
Reset the element.
|
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.lang.String |
toString() |
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.
|
getWrappedElementsclone, equals, finalize, getClass, hashCode, 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, toArrayscrollIntoView, scrollIntoView, scrollToCenternoHook, noHook, noHook, noHook, noHookInstance, noHookInstance, restoreHooks, withHook, withHookwithLabel, withLabelHintaddLazyComponentsListener, isLazy, isLazyInitialized, removeLazyComponentsListenerpublic FluentListImpl(java.lang.Class<E> componentClass, java.util.List<E> list, FluentControl control, ComponentInstantiator instantiator)
componentClass - component classlist - list of fluent elementcontrol - control interfaceinstantiator - component instantiatorpublic java.util.List<org.openqa.selenium.WebElement> toElements()
FluentListWebElement from this listtoElements in interface FluentList<E extends FluentWebElement>public FluentWaitElementList await()
FluentListawait in interface FluentList<E extends FluentWebElement>public E first()
FluentListfirst in interface FluentList<E extends FluentWebElement>public E single()
FluentListsingle in interface FluentList<E extends FluentWebElement>public E last()
FluentListlast in interface FluentList<E extends FluentWebElement>public E index(int index)
FluentListindex in interface FluentList<E extends FluentWebElement>index - position of the element to retrievepublic int count()
FluentListThis method ignore defined hooks.
count in interface FluentList<E extends FluentWebElement>public boolean present()
FluentProxyStatepresent in interface FluentProxyState<FluentList<E extends FluentWebElement>>public FluentList<E> now()
FluentProxyStateWebDriver.
It has no effect if the element is already loaded.
now in interface FluentProxyState<FluentList<E extends FluentWebElement>>public FluentList<E> now(boolean force)
FluentProxyStateWebDriver.
It has no effect if the element is already loaded.
now in interface FluentProxyState<FluentList<E extends FluentWebElement>>force - force the search even if element is already loadedpublic FluentList<E> reset()
FluentProxyStatereset in interface FluentProxyState<FluentList<E extends FluentWebElement>>public boolean loaded()
FluentProxyStateloaded in interface FluentProxyState<FluentList<E extends FluentWebElement>>public FluentList click()
FluentListclick in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>click in interface FluentList<E extends FluentWebElement>WebElement.click()public FluentList doubleClick()
FluentListdoubleClick in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>doubleClick in interface FluentList<E extends FluentWebElement>public FluentList<E> contextClick()
FluentListcontextClick in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>contextClick in interface FluentList<E extends FluentWebElement>public FluentList write(java.lang.String... with)
FluentListwrite in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>write in interface FluentList<E extends FluentWebElement>with - one or many text to send.WebElement.sendKeys(CharSequence...)public FluentList<E> clearAll()
FluentListOnly the visible elements are cleared.
clearAll in interface FluentList<E extends FluentWebElement>public void clearList()
FluentListList.clear() from underlying List implementation.clearList in interface FluentList<E extends FluentWebElement>List.clear()public FluentListConditions each()
FluentListeach in interface FluentList<E extends FluentWebElement>public FluentListConditions one()
FluentListone in interface FluentList<E extends FluentWebElement>public FluentListConditions awaitUntilEach()
FluentListawaitUntilEach in interface FluentList<E extends FluentWebElement>public FluentListConditions awaitUntilOne()
FluentListawaitUntilOne in interface FluentList<E extends FluentWebElement>public FluentList<E> submit()
FluentListsubmit in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>submit in interface FluentList<E extends FluentWebElement>WebElement.submit()public java.util.List<java.lang.String> values()
FluentListvalues in interface FluentList<E extends FluentWebElement>public java.util.List<java.lang.String> ids()
FluentListids in interface FluentList<E extends FluentWebElement>public java.util.List<java.lang.String> attributes(java.lang.String attribute)
FluentListattributes in interface FluentList<E extends FluentWebElement>attribute - attribute namepublic java.util.List<java.lang.String> names()
FluentListnames in interface FluentList<E extends FluentWebElement>public java.util.List<java.lang.String> tagNames()
FluentListtagNames in interface FluentList<E extends FluentWebElement>public java.util.List<java.lang.String> textContents()
FluentListtextContents in interface FluentList<E extends FluentWebElement>public java.util.List<java.lang.String> texts()
FluentListtexts in interface FluentList<E extends FluentWebElement>public FluentList<E> $(java.lang.String selector, SearchFilter... filters)
SearchControl$ in interface SearchControl<E extends FluentWebElement>selector - CSS selectorfilters - set of filterspublic E el(java.lang.String selector, SearchFilter... filters)
SearchControlel in interface SearchControl<E extends FluentWebElement>selector - CSS selectorfilters - set of filterspublic FluentList<E> $(SearchFilter... filters)
SearchControl$ in interface SearchControl<E extends FluentWebElement>filters - set of filters in the current contextpublic E el(SearchFilter... filters)
SearchControlel in interface SearchControl<E extends FluentWebElement>filters - set of filters in the current contextpublic FluentList<E> $(org.openqa.selenium.By locator, SearchFilter... filters)
SearchControl$ in interface SearchControl<E extends FluentWebElement>locator - elements locatorfilters - filters setpublic E el(org.openqa.selenium.By locator, SearchFilter... filters)
SearchControlel in interface SearchControl<E extends FluentWebElement>locator - elements locatorfilters - filters setpublic FluentList<E> find(java.util.List<org.openqa.selenium.WebElement> rawElements)
SearchControlfind in interface SearchControl<E extends FluentWebElement>rawElements - raw selenium elementspublic FluentList<E> $(java.util.List<org.openqa.selenium.WebElement> rawElements)
SearchControl$ in interface SearchControl<E extends FluentWebElement>rawElements - raw selenium elementspublic E el(org.openqa.selenium.WebElement rawElement)
SearchControlel in interface SearchControl<E extends FluentWebElement>rawElement - raw selenium elementpublic FluentList<E> find(java.lang.String selector, SearchFilter... filters)
FluentListfind in interface FluentList<E extends FluentWebElement>find in interface SearchControl<E extends FluentWebElement>selector - element namefilters - set of filterspublic FluentList<E> find(org.openqa.selenium.By locator, SearchFilter... filters)
SearchControlfind in interface SearchControl<E extends FluentWebElement>locator - elements locatorfilters - filters setpublic FluentList<E> find(SearchFilter... filters)
FluentListfind in interface FluentList<E extends FluentWebElement>find in interface SearchControl<E extends FluentWebElement>filters - set of filterspublic Fill fill()
FluentActionsfill in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>public FillSelect fillSelect()
FluentActionsfillSelect in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>public FluentList<E> frame()
FluentActionsframe in interface FluentActions<FluentList<E extends FluentWebElement>,E extends FluentWebElement>public java.util.Optional<FluentList<E>> optional()
FluentProxyStateoptional in interface FluentProxyState<FluentList<E extends FluentWebElement>>FluentProxyState.present(),
FluentProxyState.now()public <T extends FluentWebElement> FluentList<T> as(java.lang.Class<T> componentClass)
FluentListas in interface FluentList<E extends FluentWebElement>T - type of componentcomponentClass - component classpublic void clear()
FluentListclear in interface java.util.Collection<E extends FluentWebElement>clear in interface java.util.List<E extends FluentWebElement>clear in interface FluentList<E extends FluentWebElement>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 FluentLenium. All Rights Reserved.