Interface FluentListConditions

All Superinterfaces:
Conditions<FluentWebElement>, FluentConditions
All Known Implementing Classes:
AbstractFluentListConditions, AtLeastOneElementConditions, EachElementConditions

public interface FluentListConditions extends FluentConditions
Conditions API for list of elements.
  • Method Details

    • not

      Negates this condition object.
      Specified by:
      not in interface Conditions<FluentWebElement>
      Specified by:
      not in interface FluentConditions
      Returns:
      a new negated condition object
    • verify

      boolean verify (Predicate<FluentWebElement> predicate, boolean defaultValue)
      Check that the given predicate is verified.
      Parameters:
      predicate - predicate to check
      defaultValue - default value if input is not present
      Returns:
      true if the predicate is verified, false otherwise
    • present

      boolean present()
      Check that the currently validated element of this list is present.
      Specified by:
      present in interface FluentConditions
      Returns:
      true if the element is present, false otherwise
    • size

      boolean size (int size)
      Check that this element list has the given size.
      Parameters:
      size - size of the list
      Returns:
      true if it has the given size, false otherwise
    • size

      Check that this element list has the given size.
      Returns:
      an object to configure advanced conditions on size