org.fluentlenium.assertj.custom.AlertStateAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluentlenium-assertj Show documentation
Show all versions of fluentlenium-assertj Show documentation
AssertJ Extension for FluentLenium
package org.fluentlenium.assertj.custom;
/**
* Interface for asserting the state of alert boxes.
*/
public interface AlertStateAssert {
/**
* Check that the alert box contains the given text.
*
* It fails assertion when
*
* - there is an alert box but the text in it doesn't contain the expected text,
* - there is no alert box at all.
*
*
* @param text text to search for
* @return this assertion object
*/
AlertStateAssert hasText(String text);
/**
* Check that an alert box is present.
*
* @return this assertion object
*/
AlertStateAssert isPresent();
}