Class AlertOverride


  • public class AlertOverride
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AlertOverride​(boolean enableOverrides)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNextAlert​(org.openqa.selenium.WebDriver driver)  
      java.lang.String getNextConfirmation​(org.openqa.selenium.WebDriver driver)  
      boolean isAlertPresent​(org.openqa.selenium.WebDriver driver)  
      boolean isConfirmationPresent​(org.openqa.selenium.WebDriver driver)  
      boolean isPromptPresent​(org.openqa.selenium.WebDriver driver)  
      void replaceAlertMethod​(org.openqa.selenium.WebDriver driver)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlertOverride

        public AlertOverride​(boolean enableOverrides)
    • Method Detail

      • replaceAlertMethod

        public void replaceAlertMethod​(org.openqa.selenium.WebDriver driver)
      • getNextAlert

        public java.lang.String getNextAlert​(org.openqa.selenium.WebDriver driver)
      • isAlertPresent

        public boolean isAlertPresent​(org.openqa.selenium.WebDriver driver)
      • getNextConfirmation

        public java.lang.String getNextConfirmation​(org.openqa.selenium.WebDriver driver)
      • isConfirmationPresent

        public boolean isConfirmationPresent​(org.openqa.selenium.WebDriver driver)
      • isPromptPresent

        public boolean isPromptPresent​(org.openqa.selenium.WebDriver driver)