Interface ElementStateAssert

All Known Implementing Classes:
FluentWebElementAssert

public interface ElementStateAssert
Interface for asserting the state of an element.
  • Method Details

    • isClickable

      FluentWebElementAssert isClickable()
      Checks if the element is clickable.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isClickable();
       
      Returns:
      this assertion object.
    • isNotClickable

      FluentWebElementAssert isNotClickable()
      Checks if the element is not clickable.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isNotClickable();
       
      Returns:
      this assertion object.
    • isDisplayed

      FluentWebElementAssert isDisplayed()
      Checks if the element is displayed.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isDisplayed();
       
      Returns:
      this assertion object.
    • isNotDisplayed

      FluentWebElementAssert isNotDisplayed()
      Checks if the element is not displayed.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isNotDisplayed();
       
      Returns:
      this assertion object.
    • isEnabled

      Checks if the element is enabled.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isEnabled();
       
      Returns:
      this assertion object.
    • isNotEnabled

      FluentWebElementAssert isNotEnabled()
      Checks if the element is not enabled.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isNotEnabled();
       
      Returns:
      this assertion object.
    • isSelected

      FluentWebElementAssert isSelected()
      Checks if the element is selected.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isSelected();
       
      Returns:
      this assertion object.
    • isNotSelected

      FluentWebElementAssert isNotSelected()
      Checks if the element is not selected.

      This method also has a preceding validation for the presence of the element, which fails this assertion method if it would fail.

      Example:

       assertThat(element).isNotSelected();
       
      Returns:
      this assertion object.
    • isPresent

      Checks if the element is present.

      Example:

       assertThat(element).isPresent();
       
      Returns:
      this assertion object.
    • isNotPresent

      FluentWebElementAssert isNotPresent()
      Checks if the element is not present.

      Example:

       assertThat(element).isNotPresent();
       
      Returns:
      this assertion object.