Interface FluentConditions

    • Method Summary

      All Methods Instance Methods Abstract 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.
      StringConditions id()
      Check conditions on this element id.
      boolean id​(java.lang.String id)
      Check that this element has the given id.
      StringConditions name()
      Check conditions on this element name.
      boolean name​(java.lang.String name)
      Check that this element has the given name
      FluentConditions not()
      Negates this condition object.
      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.
      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
      • Methods inherited from interface org.fluentlenium.core.conditions.Conditions

        verify
    • Method Detail

      • present

        boolean present()
        Check that this element is present
        Returns:
        true if the element is present, false otherwise.
      • clickable

        boolean clickable()
        Check that this element is visible and enabled such that you can click it.
        Returns:
        true if the element can be clicked, false otherwise.
      • stale

        boolean stale()
        Check that this element is no longer attached to the DOM.
        Returns:
        false is the element is still attached to the DOM, true otherwise.
      • displayed

        boolean displayed()
        Check that this element is displayed.
        Returns:
        true if element is displayed, false otherwise.
      • enabled

        boolean enabled()
        Check that this element is enabled.
        Returns:
        true if element is enabled, false otherwise.
      • selected

        boolean selected()
        Check that this element is selected.
        Returns:
        true if element is selected, false otherwise.
      • id

        StringConditions id()
        Check conditions on this element id.
        Returns:
        An object to configure id conditions.
      • id

        boolean id​(java.lang.String id)
        Check that this element has the given id.
        Parameters:
        id - id to check
        Returns:
        true if the element has the given id, false otherwise.
      • name

        StringConditions name()
        Check conditions on this element name.
        Returns:
        An object to configure name conditions.
      • name

        boolean name​(java.lang.String name)
        Check that this element has the given name
        Parameters:
        name - name to check
        Returns:
        true if the element has the given name, false otherwise.
      • tagName

        StringConditions tagName()
        Check conditions on this element tagName.
        Returns:
        An object to configure tagName conditions.
      • tagName

        boolean tagName​(java.lang.String tagName)
        Check that this element has the given tagName
        Parameters:
        tagName - tagName to check
        Returns:
        true if the element has the given tagName, false otherwise.
      • value

        StringConditions value()
        Check conditions on this element value.
        Returns:
        An object to configure value conditions.
      • value

        boolean value​(java.lang.String value)
        Check that this element has the given value
        Parameters:
        value - value to check
        Returns:
        true if the element has the given value, false otherwise.
      • text

        boolean text​(java.lang.String text)
        Check that this element has the given text.
        Parameters:
        text - string to compare with
        Returns:
        true if the element has the given text, false otherwise.
        See Also:
        StringConditions.equalTo(String)
      • text

        StringConditions text()
        Check conditions on this element text.
        Returns:
        An object to configure text conditions.
      • textContent

        boolean textContent​(java.lang.String anotherString)
        Check conditions on this element text content.
        Parameters:
        anotherString - string to compare with
        Returns:
        true if the element has the given text content, false otherwise.
        See Also:
        StringConditions.equalTo(String)
      • textContent

        StringConditions textContent()
        Check conditions on this element text content.
        Returns:
        An object to configure text content conditions.
      • attribute

        boolean attribute​(java.lang.String name,
                          java.lang.String value)
        Check that the attribute has the given value.
        Parameters:
        name - attribute name to check
        value - attribute value to check
        Returns:
        true if the given attribute has the given value, false otherwise.
      • attribute

        StringConditions attribute​(java.lang.String name)
        Check conditions on the given attribute the attribute has the given value.
        Parameters:
        name - attribute name to check
        Returns:
        An object to configure text attribute value conditions.
      • rectangle

        RectangleConditions rectangle()
        check conditions on rectangle of this element
        Returns:
        An object to configure advanced position conditions
      • className

        boolean className​(java.lang.String className)
        Check that the class attribute has the given class name.
        Parameters:
        className - class name
        Returns:
        true if it has the given class name, false otherwise.