Interface Alert

  • All Superinterfaces:
    org.openqa.selenium.Alert
    All Known Implementing Classes:
    AlertImpl

    public interface Alert
    extends org.openqa.selenium.Alert
    Extension of Selenium's own Alert interface to manage browser alert.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean present()
      Check if this alert is present.
      void prompt​(String text)
      Send input to the alert prompt.
      • Methods inherited from interface org.openqa.selenium.Alert

        accept, dismiss, getText, sendKeys
    • Method Detail

      • prompt

        void prompt​(String text)
        Send input to the alert prompt.
        Parameters:
        text - test to send to the prompt
      • present

        boolean present()
        Check if this alert is present.
        Returns:
        true if alert is present, false otherwise