Interface AlertActionListener


public interface AlertActionListener
action class for native alert dialog.
  • Method Summary

    Modifier and Type Method Description
    void actionPerformed​(org.openqa.selenium.Alert alert)
    Performs the action to alert.
    void setAccept​(boolean accept)
    Set whether or not to accept next alert dialog.
    void setAnswer​(String answer)
    Set the answer for native alert dialog.
  • Method Details

    • setAccept

      void setAccept​(boolean accept)
      Set whether or not to accept next alert dialog. true for accept, false for dismiss.
      Parameters:
      accept - result of dialog.
    • setAnswer

      void setAnswer​(String answer)
      Set the answer for native alert dialog.
      Parameters:
      answer - result of dialog.
    • actionPerformed

      void actionPerformed​(org.openqa.selenium.Alert alert)
      Performs the action to alert. After perform, instance behaviour should be reset.
      Parameters:
      alert - Alert instance of Selenium.