Class WebElementListener
- java.lang.Object
-
- co.verisoft.fw.selenium.listeners.WebElementListener
-
- All Implemented Interfaces:
org.openqa.selenium.support.events.WebDriverListener
public final class WebElementListener extends Object implements org.openqa.selenium.support.events.WebDriverListener
Listener for all WebElement related actions Currently - logs only- Author:
- Nir Gallner
-
-
Constructor Summary
Constructors Constructor Description WebElementListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAnyWebElementCall(org.openqa.selenium.WebElement element, Method method, Object[] args, Object result)voidafterClear(org.openqa.selenium.WebElement element)voidafterClick(org.openqa.selenium.WebElement element)voidafterFindElement(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, org.openqa.selenium.WebElement result)voidafterFindElements(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, List<org.openqa.selenium.WebElement> result)voidafterGetAttribute(org.openqa.selenium.WebElement element, String name, String result)voidafterGetCssValue(org.openqa.selenium.WebElement element, String propertyName, String result)voidafterGetLocation(org.openqa.selenium.WebElement element, org.openqa.selenium.Point result)voidafterGetSize(org.openqa.selenium.WebElement element, org.openqa.selenium.Dimension result)voidafterGetTagName(org.openqa.selenium.WebElement element, String result)voidafterGetText(org.openqa.selenium.WebElement element, String result)voidafterIsDisplayed(org.openqa.selenium.WebElement element, boolean result)voidafterIsEnabled(org.openqa.selenium.WebElement element, boolean result)voidafterIsSelected(org.openqa.selenium.WebElement element, boolean result)voidafterSendKeys(org.openqa.selenium.WebElement element, CharSequence... keysToSend)voidafterSubmit(org.openqa.selenium.WebElement element)voidbeforeAnyWebElementCall(org.openqa.selenium.WebElement element, Method method, Object[] args)voidbeforeClear(org.openqa.selenium.WebElement element)voidbeforeClick(org.openqa.selenium.WebElement element)voidbeforeFindElement(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)voidbeforeFindElements(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)voidbeforeGetAttribute(org.openqa.selenium.WebElement element, String name)voidbeforeGetCssValue(org.openqa.selenium.WebElement element, String propertyName)voidbeforeGetLocation(org.openqa.selenium.WebElement element)voidbeforeGetSize(org.openqa.selenium.WebElement element)voidbeforeGetTagName(org.openqa.selenium.WebElement element)voidbeforeGetText(org.openqa.selenium.WebElement element)voidbeforeIsDisplayed(org.openqa.selenium.WebElement element)voidbeforeIsEnabled(org.openqa.selenium.WebElement element)voidbeforeIsSelected(org.openqa.selenium.WebElement element)voidbeforeSendKeys(org.openqa.selenium.WebElement element, CharSequence... keysToSend)voidbeforeSubmit(org.openqa.selenium.WebElement element)-
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
afterAccept, afterAddCookie, afterAnyAlertCall, afterAnyCall, afterAnyNavigationCall, afterAnyOptionsCall, afterAnyTimeoutsCall, afterAnyWebDriverCall, afterAnyWindowCall, afterBack, afterClose, afterDeleteAllCookies, afterDeleteCookie, afterDeleteCookieNamed, afterDismiss, afterExecuteAsyncScript, afterExecuteScript, afterFindElement, afterFindElements, afterForward, afterFullscreen, afterGet, afterGetCookieNamed, afterGetCookies, afterGetCurrentUrl, afterGetPageSource, afterGetPosition, afterGetSize, afterGetText, afterGetTitle, afterGetWindowHandle, afterGetWindowHandles, afterImplicitlyWait, afterMaximize, afterPageLoadTimeout, afterPerform, afterQuit, afterRefresh, afterResetInputState, afterSendKeys, afterSetPosition, afterSetScriptTimeout, afterSetSize, afterTo, afterTo, beforeAccept, beforeAddCookie, beforeAnyAlertCall, beforeAnyCall, beforeAnyNavigationCall, beforeAnyOptionsCall, beforeAnyTimeoutsCall, beforeAnyWebDriverCall, beforeAnyWindowCall, beforeBack, beforeClose, beforeDeleteAllCookies, beforeDeleteCookie, beforeDeleteCookieNamed, beforeDismiss, beforeExecuteAsyncScript, beforeExecuteScript, beforeFindElement, beforeFindElements, beforeForward, beforeFullscreen, beforeGet, beforeGetCookieNamed, beforeGetCookies, beforeGetCurrentUrl, beforeGetPageSource, beforeGetPosition, beforeGetSize, beforeGetText, beforeGetTitle, beforeGetWindowHandle, beforeGetWindowHandles, beforeImplicitlyWait, beforeMaximize, beforePageLoadTimeout, beforePerform, beforeQuit, beforeRefresh, beforeResetInputState, beforeSendKeys, beforeSetPosition, beforeSetScriptTimeout, beforeSetSize, beforeTo, beforeTo, onError
-
-
-
-
Method Detail
-
beforeAnyWebElementCall
public void beforeAnyWebElementCall(org.openqa.selenium.WebElement element, Method method, Object[] args)- Specified by:
beforeAnyWebElementCallin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterAnyWebElementCall
public void afterAnyWebElementCall(org.openqa.selenium.WebElement element, Method method, Object[] args, Object result)- Specified by:
afterAnyWebElementCallin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeClick
public void beforeClick(org.openqa.selenium.WebElement element)
- Specified by:
beforeClickin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterClick
public void afterClick(org.openqa.selenium.WebElement element)
- Specified by:
afterClickin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeSubmit
public void beforeSubmit(org.openqa.selenium.WebElement element)
- Specified by:
beforeSubmitin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterSubmit
public void afterSubmit(org.openqa.selenium.WebElement element)
- Specified by:
afterSubmitin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeSendKeys
public void beforeSendKeys(org.openqa.selenium.WebElement element, CharSequence... keysToSend)- Specified by:
beforeSendKeysin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterSendKeys
public void afterSendKeys(org.openqa.selenium.WebElement element, CharSequence... keysToSend)- Specified by:
afterSendKeysin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeClear
public void beforeClear(org.openqa.selenium.WebElement element)
- Specified by:
beforeClearin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterClear
public void afterClear(org.openqa.selenium.WebElement element)
- Specified by:
afterClearin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetTagName
public void beforeGetTagName(org.openqa.selenium.WebElement element)
- Specified by:
beforeGetTagNamein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetTagName
public void afterGetTagName(org.openqa.selenium.WebElement element, String result)- Specified by:
afterGetTagNamein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetAttribute
public void beforeGetAttribute(org.openqa.selenium.WebElement element, String name)- Specified by:
beforeGetAttributein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetAttribute
public void afterGetAttribute(org.openqa.selenium.WebElement element, String name, String result)- Specified by:
afterGetAttributein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeIsSelected
public void beforeIsSelected(org.openqa.selenium.WebElement element)
- Specified by:
beforeIsSelectedin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterIsSelected
public void afterIsSelected(org.openqa.selenium.WebElement element, boolean result)- Specified by:
afterIsSelectedin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeIsEnabled
public void beforeIsEnabled(org.openqa.selenium.WebElement element)
- Specified by:
beforeIsEnabledin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterIsEnabled
public void afterIsEnabled(org.openqa.selenium.WebElement element, boolean result)- Specified by:
afterIsEnabledin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetText
public void beforeGetText(org.openqa.selenium.WebElement element)
- Specified by:
beforeGetTextin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetText
public void afterGetText(org.openqa.selenium.WebElement element, String result)- Specified by:
afterGetTextin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeFindElement
public void beforeFindElement(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)- Specified by:
beforeFindElementin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterFindElement
public void afterFindElement(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, org.openqa.selenium.WebElement result)- Specified by:
afterFindElementin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeFindElements
public void beforeFindElements(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)- Specified by:
beforeFindElementsin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterFindElements
public void afterFindElements(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, List<org.openqa.selenium.WebElement> result)- Specified by:
afterFindElementsin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeIsDisplayed
public void beforeIsDisplayed(org.openqa.selenium.WebElement element)
- Specified by:
beforeIsDisplayedin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterIsDisplayed
public void afterIsDisplayed(org.openqa.selenium.WebElement element, boolean result)- Specified by:
afterIsDisplayedin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetLocation
public void beforeGetLocation(org.openqa.selenium.WebElement element)
- Specified by:
beforeGetLocationin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetLocation
public void afterGetLocation(org.openqa.selenium.WebElement element, org.openqa.selenium.Point result)- Specified by:
afterGetLocationin interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetSize
public void beforeGetSize(org.openqa.selenium.WebElement element)
- Specified by:
beforeGetSizein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
afterGetSize
public void afterGetSize(org.openqa.selenium.WebElement element, org.openqa.selenium.Dimension result)- Specified by:
afterGetSizein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
beforeGetCssValue
public void beforeGetCssValue(org.openqa.selenium.WebElement element, String propertyName)- Specified by:
beforeGetCssValuein interfaceorg.openqa.selenium.support.events.WebDriverListener
-
-