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

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

There is a newer version: 5.0.4
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy