
org.fluentlenium.assertj.custom.AlertStateAssert Maven / Gradle / Ivy
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();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy