Class FluentListImpl<E extends FluentWebElement>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FluentList<E> $​(java.util.List<org.openqa.selenium.WebElement> rawElements)
      Wrap raw selenium elements into a list of elements.
      <T extends FluentWebElement>
      FluentList<T>
      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
      FluentList<E> clearAllReactInputs()
      Clear all React 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.
      java.util.List<org.openqa.selenium.Dimension> dimensions()
      Return the Dimension of elements on the 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.
      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​(java.lang.String selector, SearchFilter... filters)
      find elements into the children with the corresponding 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​(org.openqa.selenium.By locator, SearchFilter... filters)
      Find list of elements with Selenium locator and 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.
      FluentList<E> modifyAttribute​(java.lang.String attributeName, java.lang.String attributeValue)
      Modifies attributes of first element only
      java.util.List<java.lang.String> names()
      Return the name of elements on the list
      FluentList<E> noHook()
      Disable all hooks from actual element.
      FluentList<E> noHook​(java.lang.Class<? extends FluentHook>... hooks)
      Disable given hook from actual element.
      <R> R noHook​(java.lang.Class<? extends FluentHook> hook, java.util.function.Function<FluentList<E>,​R> function)
      Invoke a function with no hook.
      <R> R noHook​(java.util.function.Function<FluentList<E>,​R> function)
      Invoke a function with no hook.
      FluentList<E> noHookInstance()
      Creates a new element locator instance with all hooks disabled.
      FluentList<E> noHookInstance​(java.lang.Class<? extends FluentHook>... hooks)
      Creates a new element locator instance with given hook disabled.
      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.
      FluentList<E> restoreHooks()
      Retore hooks that were defined initially.
      FluentList<E> scrollIntoView()
      Scrolls to first element of list
      FluentList<E> scrollIntoView​(boolean alignWithTop)
      Scrolls to first element of list
      FluentList<E> scrollToCenter()
      Scrolls to first element of list
      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
      <O,​H extends FluentHook<O>>
      FluentList<E>
      withHook​(java.lang.Class<H> hook)
      Enable a hook with default options.
      <O,​H extends FluentHook<O>>
      FluentList<E>
      withHook​(java.lang.Class<H> hook, O options)
      Enable a hook with given options.
      FluentList<E> withLabel​(java.lang.String label)
      Apply a label that will be displayed as the representation of this object for error message.
      FluentList<E> withLabelHint​(java.lang.String... labelHint)
      Add a label hint that will be appended to the representation of this object for error message.
      FluentList<E> write​(java.lang.String... with)
      Fill all elements on the list with the corresponding cell in the with table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        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, toArray