Class AlertListener

  • All Implemented Interfaces:
    org.openqa.selenium.support.events.WebDriverListener

    public final class AlertListener
    extends Object
    implements org.openqa.selenium.support.events.WebDriverListener
    Listener for alerts activation. Currently - logs only
    Author:
    Nir Gallner
    • Constructor Summary

      Constructors 
      Constructor Description
      AlertListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterAccept​(org.openqa.selenium.Alert alert)  
      void afterAnyAlertCall​(org.openqa.selenium.Alert alert, Method method, Object[] args, Object result)  
      void afterDismiss​(org.openqa.selenium.Alert alert)  
      void afterGetText​(org.openqa.selenium.Alert alert, String result)  
      void afterSendKeys​(org.openqa.selenium.Alert alert, String keys)  
      void beforeAccept​(org.openqa.selenium.Alert alert)  
      void beforeAnyAlertCall​(org.openqa.selenium.Alert alert, Method method, Object[] args)  
      void beforeDismiss​(org.openqa.selenium.Alert alert)  
      void beforeGetText​(org.openqa.selenium.Alert alert)  
      void beforeSendKeys​(org.openqa.selenium.Alert alert, String keys)  
      • Methods inherited from interface org.openqa.selenium.support.events.WebDriverListener

        afterAddCookie, afterAnyCall, afterAnyNavigationCall, afterAnyOptionsCall, afterAnyTimeoutsCall, afterAnyWebDriverCall, afterAnyWebElementCall, afterAnyWindowCall, afterBack, afterClear, afterClick, afterClose, afterDeleteAllCookies, afterDeleteCookie, afterDeleteCookieNamed, afterExecuteAsyncScript, afterExecuteScript, afterFindElement, afterFindElement, afterFindElements, afterFindElements, afterForward, afterFullscreen, afterGet, afterGetAttribute, afterGetCookieNamed, afterGetCookies, afterGetCssValue, afterGetCurrentUrl, afterGetLocation, afterGetPageSource, afterGetPosition, afterGetSize, afterGetSize, afterGetTagName, afterGetText, afterGetTitle, afterGetWindowHandle, afterGetWindowHandles, afterImplicitlyWait, afterIsDisplayed, afterIsEnabled, afterIsSelected, afterMaximize, afterPageLoadTimeout, afterPerform, afterQuit, afterRefresh, afterResetInputState, afterSendKeys, afterSetPosition, afterSetScriptTimeout, afterSetSize, afterSubmit, afterTo, afterTo, beforeAddCookie, beforeAnyCall, beforeAnyNavigationCall, beforeAnyOptionsCall, beforeAnyTimeoutsCall, beforeAnyWebDriverCall, beforeAnyWebElementCall, beforeAnyWindowCall, beforeBack, beforeClear, beforeClick, beforeClose, beforeDeleteAllCookies, beforeDeleteCookie, beforeDeleteCookieNamed, beforeExecuteAsyncScript, beforeExecuteScript, beforeFindElement, beforeFindElement, beforeFindElements, beforeFindElements, beforeForward, beforeFullscreen, beforeGet, beforeGetAttribute, beforeGetCookieNamed, beforeGetCookies, beforeGetCssValue, beforeGetCurrentUrl, beforeGetLocation, beforeGetPageSource, beforeGetPosition, beforeGetSize, beforeGetSize, beforeGetTagName, beforeGetText, beforeGetTitle, beforeGetWindowHandle, beforeGetWindowHandles, beforeImplicitlyWait, beforeIsDisplayed, beforeIsEnabled, beforeIsSelected, beforeMaximize, beforePageLoadTimeout, beforePerform, beforeQuit, beforeRefresh, beforeResetInputState, beforeSendKeys, beforeSetPosition, beforeSetScriptTimeout, beforeSetSize, beforeSubmit, beforeTo, beforeTo, onError
    • Constructor Detail

      • AlertListener

        public AlertListener()
    • Method Detail

      • beforeAnyAlertCall

        public void beforeAnyAlertCall​(org.openqa.selenium.Alert alert,
                                       Method method,
                                       Object[] args)
        Specified by:
        beforeAnyAlertCall in interface org.openqa.selenium.support.events.WebDriverListener
      • afterAnyAlertCall

        public void afterAnyAlertCall​(org.openqa.selenium.Alert alert,
                                      Method method,
                                      Object[] args,
                                      Object result)
        Specified by:
        afterAnyAlertCall in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeAccept

        public void beforeAccept​(org.openqa.selenium.Alert alert)
        Specified by:
        beforeAccept in interface org.openqa.selenium.support.events.WebDriverListener
      • afterAccept

        public void afterAccept​(org.openqa.selenium.Alert alert)
        Specified by:
        afterAccept in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeDismiss

        public void beforeDismiss​(org.openqa.selenium.Alert alert)
        Specified by:
        beforeDismiss in interface org.openqa.selenium.support.events.WebDriverListener
      • afterDismiss

        public void afterDismiss​(org.openqa.selenium.Alert alert)
        Specified by:
        afterDismiss in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetText

        public void beforeGetText​(org.openqa.selenium.Alert alert)
        Specified by:
        beforeGetText in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetText

        public void afterGetText​(org.openqa.selenium.Alert alert,
                                 String result)
        Specified by:
        afterGetText in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeSendKeys

        public void beforeSendKeys​(org.openqa.selenium.Alert alert,
                                   String keys)
        Specified by:
        beforeSendKeys in interface org.openqa.selenium.support.events.WebDriverListener
      • afterSendKeys

        public void afterSendKeys​(org.openqa.selenium.Alert alert,
                                  String keys)
        Specified by:
        afterSendKeys in interface org.openqa.selenium.support.events.WebDriverListener