All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fluentlenium.assertj.custom.AlertStateAssert Maven / Gradle / Ivy

The newest version!
package io.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(); AlertStateAssert isNotPresent(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy