Interface FluentList<E extends FluentWebElement>

    • Method Detail

      • first

        E first()
        Retrieve the first element.
        Returns:
        first element
      • single

        E single()
        Retrieve the first element and checks is it exactly one element in the list
        Returns:
        first element
      • last

        E last()
        Retrieve the last element.
        Returns:
        last element
      • index

        E index​(int index)
        Retrieve an element at given index.
        Parameters:
        index - position of the element to retrieve
        Returns:
        element at given index
      • toElements

        default List<org.openqa.selenium.WebElement> toElements()
        Creates a list of Selenium WebElement from this list
        Returns:
        list of selenium elements
      • write

        FluentList<E> write​(String... with)
        Fill all elements on the list with the corresponding cell in the with array. Only the visible elements are filled If there are more elements on the list than in the with array, the last element of the table is repeated
        Specified by:
        write in interface FluentActions<FluentList<E extends FluentWebElement>,​E extends FluentWebElement>
        Parameters:
        with - one or many text to send.
        Returns:
        the current instance of FluentList to provide capability for chaining calls
        See Also:
        WebElement.sendKeys(CharSequence...)
      • values

        default List<String> values()
        Return the value of elements on the list
        Returns:
        list of string values
      • ids

        default List<String> ids()
        Return the id of elements on the list
        Returns:
        list of string values
      • attributes

        default List<String> attributes​(String attribute)
        Return a custom attribute of elements on the list
        Parameters:
        attribute - attribute name
        Returns:
        list of string values
      • names

        default List<String> names()
        Return the name of elements on the list
        Returns:
        list of string values
      • dimensions

        default List<org.openqa.selenium.Dimension> dimensions()
        Return the Dimension of elements on the list
        Returns:
        list of Dimensions
      • tagNames

        default List<String> tagNames()
        Return the tag name of elements on the list
        Returns:
        list of string values
      • texts

        default List<String> texts()
        Return the texts of list elements
        Returns:
        list of string values
      • textContents

        default List<String> textContents()
        Return the text contents of list elements
        Returns:
        list of string values
      • find

        FluentList<E> find​(String selector,
                           SearchFilter... filters)
        find elements into the children with the corresponding filters
        Specified by:
        find in interface SearchControl<E extends FluentWebElement>
        Parameters:
        selector - element name
        filters - set of filters
        Returns:
        extended by FluentWebElement objects list
      • count

        int count()
        Count elements without actually loading the lazy list.

        This method ignore defined hooks.

        Returns:
        elements count
      • clearAll

        FluentList<E> clearAll()
        Clear all elements on the list

        Only the visible elements are cleared.

        Returns:
        extended by FluentWebElement object
      • clearAllReactInputs

        FluentList<E> clearAllReactInputs()
        Clear all React elements on the list

        Only the visible elements are cleared.

        Returns:
        extended by FluentWebElement object
      • as

        <T extends FluentWebElementFluentList<T> as​(Class<T> componentClass)
        Wrap all underlying elements in a component.
        Type Parameters:
        T - type of component
        Parameters:
        componentClass - component class
        Returns:
        fluent list of elements as components.
      • each

        FluentListConditions each()
        Build a condition object on this element list that will match if each underlying element match.
        Returns:
        a condition object
      • one

        FluentListConditions one()
        Build a condition object on this element list that will match if one or more underlying element match.
        Returns:
        a condition object
      • await

        FluentWaitElementList await()
        Build a wait object to wait for a condition of this element list.
        Returns:
        a wait object
      • awaitUntilEach

        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.
        Returns:
        a condition object
      • awaitUntilOne

        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.
        Returns:
        a condition object