org.fluentlenium.assertj.custom.ElementStateAssert Maven / Gradle / Ivy
Show all versions of fluentlenium-assertj Show documentation
package org.fluentlenium.assertj.custom;
/**
* Interface for asserting the state of an element.
*/
public interface ElementStateAssert {
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isClickable();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isNotClickable();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isDisplayed();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isNotDisplayed();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isEnabled();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isNotEnabled();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isSelected();
/**
* 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();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isNotSelected();
/**
* Checks if the element is present.
*
* Example:
*
* assertThat(element).isPresent();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isPresent();
/**
* Checks if the element is not present.
*
* Example:
*
* assertThat(element).isNotPresent();
*
*
* @return {@code this} assertion object.
*/
FluentWebElementAssert isNotPresent();
}