Class AlertListener
- java.lang.Object
-
- co.verisoft.fw.selenium.listeners.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 voidafterAccept(org.openqa.selenium.Alert alert)voidafterAnyAlertCall(org.openqa.selenium.Alert alert, Method method, Object[] args, Object result)voidafterDismiss(org.openqa.selenium.Alert alert)voidafterGetText(org.openqa.selenium.Alert alert, String result)voidafterSendKeys(org.openqa.selenium.Alert alert, String keys)voidbeforeAccept(org.openqa.selenium.Alert alert)voidbeforeAnyAlertCall(org.openqa.selenium.Alert alert, Method method, Object[] args)voidbeforeDismiss(org.openqa.selenium.Alert alert)voidbeforeGetText(org.openqa.selenium.Alert alert)voidbeforeSendKeys(org.openqa.selenium.Alert alert, String keys)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
beforeAnyAlertCall
public void beforeAnyAlertCall(org.openqa.selenium.Alert alert, Method method, Object[] args)- Specified by:
beforeAnyAlertCallin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterAnyAlertCall
public void afterAnyAlertCall(org.openqa.selenium.Alert alert, Method method, Object[] args, Object result)- Specified by:
afterAnyAlertCallin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeAccept
public void beforeAccept(org.openqa.selenium.Alert alert)
- Specified by:
beforeAcceptin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterAccept
public void afterAccept(org.openqa.selenium.Alert alert)
- Specified by:
afterAcceptin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeDismiss
public void beforeDismiss(org.openqa.selenium.Alert alert)
- Specified by:
beforeDismissin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterDismiss
public void afterDismiss(org.openqa.selenium.Alert alert)
- Specified by:
afterDismissin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetText
public void beforeGetText(org.openqa.selenium.Alert alert)
- Specified by:
beforeGetTextin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetText
public void afterGetText(org.openqa.selenium.Alert alert, String result)- Specified by:
afterGetTextin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeSendKeys
public void beforeSendKeys(org.openqa.selenium.Alert alert, String keys)- Specified by:
beforeSendKeysin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterSendKeys
public void afterSendKeys(org.openqa.selenium.Alert alert, String keys)- Specified by:
afterSendKeysin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
-