Class AbstractFluentListConditions

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      StringConditions attribute​(java.lang.String name)
      Check conditions on the given attribute the attribute has the given value.
      boolean attribute​(java.lang.String name, java.lang.String value)
      Check that the attribute has the given value.
      boolean className​(java.lang.String className)
      Check that the class attribute has the given class name.
      boolean clickable()
      Check that this element is visible and enabled such that you can click it.
      boolean displayed()
      Check that this element is displayed.
      boolean enabled()
      Check that this element is enabled.
      java.util.List<? extends FluentWebElement> getActualElements()
      Get the actual list of elements.
      protected java.util.List<? extends FluentWebElement> getElements()
      Get the underlying list of elements
      StringConditions id()
      Check conditions on this element id.
      boolean id​(java.lang.String id)
      Check that this element has the given id.
      protected boolean isNegation()
      Is this conditions list negated ?
      StringConditions name()
      Check conditions on this element name.
      boolean name​(java.lang.String name)
      Check that this element has the given name
      boolean present()
      Check that this element is present.
      RectangleConditions rectangle()
      check conditions on rectangle of this element
      boolean selected()
      Check that this element is selected.
      void setNegation​(boolean negation)
      Set negation value
      AbstractIntegerConditions size()
      Check that this element list has the given size.
      boolean size​(int size)
      Check that this element list has the given size.
      boolean stale()
      Check that this element is no longer attached to the DOM.
      StringConditions tagName()
      Check conditions on this element tagName.
      boolean tagName​(java.lang.String tagName)
      Check that this element has the given tagName
      StringConditions text()
      Check conditions on this element text.
      boolean text​(java.lang.String text)
      Check that this element has the given text.
      StringConditions textContent()
      Check conditions on this element text content.
      boolean textContent​(java.lang.String anotherString)
      Check conditions on this element text content.
      StringConditions value()
      Check conditions on this element value.
      boolean value​(java.lang.String value)
      Check that this element has the given value
      boolean verify​(java.util.function.Predicate<FluentWebElement> predicate)
      Check that the given predicate is verified against this condition object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFluentListConditions

        protected AbstractFluentListConditions​(java.util.List<? extends FluentWebElement> elements)
        Creates a new conditions on list of elements.
        Parameters:
        elements - underlying elements
    • Method Detail

      • size

        public boolean size​(int size)
        Description copied from interface: FluentListConditions
        Check that this element list has the given size.
        Specified by:
        size in interface FluentListConditions
        Parameters:
        size - size of the list
        Returns:
        true if it has the given size, false otherwise
      • isNegation

        protected boolean isNegation()
        Is this conditions list negated ?
        Returns:
        true if this conditions list is negated, false otherwise.
      • setNegation

        public void setNegation​(boolean negation)
        Set negation value
        Parameters:
        negation - negation value
      • getElements

        protected java.util.List<? extends FluentWebElement> getElements()
        Get the underlying list of elements
        Returns:
        underlying list of elements
      • verify

        public boolean verify​(java.util.function.Predicate<FluentWebElement> predicate)
        Description copied from interface: Conditions
        Check that the given predicate is verified against this condition object.
        Specified by:
        verify in interface Conditions<FluentWebElement>
        Parameters:
        predicate - predicate to check
        Returns:
        true if the predicated is checked, false otherwise
      • clickable

        public boolean clickable()
        Description copied from interface: FluentConditions
        Check that this element is visible and enabled such that you can click it.
        Specified by:
        clickable in interface FluentConditions
        Returns:
        true if the element can be clicked, false otherwise.
      • stale

        public boolean stale()
        Description copied from interface: FluentConditions
        Check that this element is no longer attached to the DOM.
        Specified by:
        stale in interface FluentConditions
        Returns:
        false is the element is still attached to the DOM, true otherwise.
      • displayed

        public boolean displayed()
        Description copied from interface: FluentConditions
        Check that this element is displayed.
        Specified by:
        displayed in interface FluentConditions
        Returns:
        true if element is displayed, false otherwise.
      • enabled

        public boolean enabled()
        Description copied from interface: FluentConditions
        Check that this element is enabled.
        Specified by:
        enabled in interface FluentConditions
        Returns:
        true if element is enabled, false otherwise.
      • selected

        public boolean selected()
        Description copied from interface: FluentConditions
        Check that this element is selected.
        Specified by:
        selected in interface FluentConditions
        Returns:
        true if element is selected, false otherwise.
      • attribute

        public boolean attribute​(java.lang.String name,
                                 java.lang.String value)
        Description copied from interface: FluentConditions
        Check that the attribute has the given value.
        Specified by:
        attribute in interface FluentConditions
        Parameters:
        name - attribute name to check
        value - attribute value to check
        Returns:
        true if the given attribute has the given value, false otherwise.
      • attribute

        public StringConditions attribute​(java.lang.String name)
        Description copied from interface: FluentConditions
        Check conditions on the given attribute the attribute has the given value.
        Specified by:
        attribute in interface FluentConditions
        Parameters:
        name - attribute name to check
        Returns:
        An object to configure text attribute value conditions.
      • id

        public boolean id​(java.lang.String id)
        Description copied from interface: FluentConditions
        Check that this element has the given id.
        Specified by:
        id in interface FluentConditions
        Parameters:
        id - id to check
        Returns:
        true if the element has the given id, false otherwise.
      • name

        public boolean name​(java.lang.String name)
        Description copied from interface: FluentConditions
        Check that this element has the given name
        Specified by:
        name in interface FluentConditions
        Parameters:
        name - name to check
        Returns:
        true if the element has the given name, false otherwise.
      • tagName

        public boolean tagName​(java.lang.String tagName)
        Description copied from interface: FluentConditions
        Check that this element has the given tagName
        Specified by:
        tagName in interface FluentConditions
        Parameters:
        tagName - tagName to check
        Returns:
        true if the element has the given tagName, false otherwise.
      • value

        public boolean value​(java.lang.String value)
        Description copied from interface: FluentConditions
        Check that this element has the given value
        Specified by:
        value in interface FluentConditions
        Parameters:
        value - value to check
        Returns:
        true if the element has the given value, false otherwise.
      • text

        public boolean text​(java.lang.String text)
        Description copied from interface: FluentConditions
        Check that this element has the given text.
        Specified by:
        text in interface FluentConditions
        Parameters:
        text - string to compare with
        Returns:
        true if the element has the given text, false otherwise.
        See Also:
        StringConditions.equalTo(String)
      • textContent

        public boolean textContent​(java.lang.String anotherString)
        Description copied from interface: FluentConditions
        Check conditions on this element text content.
        Specified by:
        textContent in interface FluentConditions
        Parameters:
        anotherString - string to compare with
        Returns:
        true if the element has the given text content, false otherwise.
        See Also:
        StringConditions.equalTo(String)
      • className

        public boolean className​(java.lang.String className)
        Description copied from interface: FluentConditions
        Check that the class attribute has the given class name.
        Specified by:
        className in interface FluentConditions
        Parameters:
        className - class name
        Returns:
        true if it has the given class name, false otherwise.