Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterAnyWebElementCall​(org.openqa.selenium.WebElement element, Method method, Object[] args, Object result)  
      void afterClear​(org.openqa.selenium.WebElement element)  
      void afterClick​(org.openqa.selenium.WebElement element)  
      void afterFindElement​(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, org.openqa.selenium.WebElement result)  
      void afterFindElements​(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator, List<org.openqa.selenium.WebElement> result)  
      void afterGetAttribute​(org.openqa.selenium.WebElement element, String name, String result)  
      void afterGetCssValue​(org.openqa.selenium.WebElement element, String propertyName, String result)  
      void afterGetLocation​(org.openqa.selenium.WebElement element, org.openqa.selenium.Point result)  
      void afterGetSize​(org.openqa.selenium.WebElement element, org.openqa.selenium.Dimension result)  
      void afterGetTagName​(org.openqa.selenium.WebElement element, String result)  
      void afterGetText​(org.openqa.selenium.WebElement element, String result)  
      void afterIsDisplayed​(org.openqa.selenium.WebElement element, boolean result)  
      void afterIsEnabled​(org.openqa.selenium.WebElement element, boolean result)  
      void afterIsSelected​(org.openqa.selenium.WebElement element, boolean result)  
      void afterSendKeys​(org.openqa.selenium.WebElement element, CharSequence... keysToSend)  
      void afterSubmit​(org.openqa.selenium.WebElement element)  
      void beforeAnyWebElementCall​(org.openqa.selenium.WebElement element, Method method, Object[] args)  
      void beforeClear​(org.openqa.selenium.WebElement element)  
      void beforeClick​(org.openqa.selenium.WebElement element)  
      void beforeFindElement​(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)  
      void beforeFindElements​(org.openqa.selenium.WebElement element, org.openqa.selenium.By locator)  
      void beforeGetAttribute​(org.openqa.selenium.WebElement element, String name)  
      void beforeGetCssValue​(org.openqa.selenium.WebElement element, String propertyName)  
      void beforeGetLocation​(org.openqa.selenium.WebElement element)  
      void beforeGetSize​(org.openqa.selenium.WebElement element)  
      void beforeGetTagName​(org.openqa.selenium.WebElement element)  
      void beforeGetText​(org.openqa.selenium.WebElement element)  
      void beforeIsDisplayed​(org.openqa.selenium.WebElement element)  
      void beforeIsEnabled​(org.openqa.selenium.WebElement element)  
      void beforeIsSelected​(org.openqa.selenium.WebElement element)  
      void beforeSendKeys​(org.openqa.selenium.WebElement element, CharSequence... keysToSend)  
      void beforeSubmit​(org.openqa.selenium.WebElement element)  
      • 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
    • Constructor Detail

      • WebElementListener

        public WebElementListener()
    • Method Detail

      • beforeAnyWebElementCall

        public void beforeAnyWebElementCall​(org.openqa.selenium.WebElement element,
                                            Method method,
                                            Object[] args)
        Specified by:
        beforeAnyWebElementCall in interface org.openqa.selenium.support.events.WebDriverListener
      • afterAnyWebElementCall

        public void afterAnyWebElementCall​(org.openqa.selenium.WebElement element,
                                           Method method,
                                           Object[] args,
                                           Object result)
        Specified by:
        afterAnyWebElementCall in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeClick

        public void beforeClick​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeClick in interface org.openqa.selenium.support.events.WebDriverListener
      • afterClick

        public void afterClick​(org.openqa.selenium.WebElement element)
        Specified by:
        afterClick in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeSubmit

        public void beforeSubmit​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeSubmit in interface org.openqa.selenium.support.events.WebDriverListener
      • afterSubmit

        public void afterSubmit​(org.openqa.selenium.WebElement element)
        Specified by:
        afterSubmit in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeSendKeys

        public void beforeSendKeys​(org.openqa.selenium.WebElement element,
                                   CharSequence... keysToSend)
        Specified by:
        beforeSendKeys in interface org.openqa.selenium.support.events.WebDriverListener
      • afterSendKeys

        public void afterSendKeys​(org.openqa.selenium.WebElement element,
                                  CharSequence... keysToSend)
        Specified by:
        afterSendKeys in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeClear

        public void beforeClear​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeClear in interface org.openqa.selenium.support.events.WebDriverListener
      • afterClear

        public void afterClear​(org.openqa.selenium.WebElement element)
        Specified by:
        afterClear in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetTagName

        public void beforeGetTagName​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeGetTagName in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetTagName

        public void afterGetTagName​(org.openqa.selenium.WebElement element,
                                    String result)
        Specified by:
        afterGetTagName in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetAttribute

        public void beforeGetAttribute​(org.openqa.selenium.WebElement element,
                                       String name)
        Specified by:
        beforeGetAttribute in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetAttribute

        public void afterGetAttribute​(org.openqa.selenium.WebElement element,
                                      String name,
                                      String result)
        Specified by:
        afterGetAttribute in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeIsSelected

        public void beforeIsSelected​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeIsSelected in interface org.openqa.selenium.support.events.WebDriverListener
      • afterIsSelected

        public void afterIsSelected​(org.openqa.selenium.WebElement element,
                                    boolean result)
        Specified by:
        afterIsSelected in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeIsEnabled

        public void beforeIsEnabled​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeIsEnabled in interface org.openqa.selenium.support.events.WebDriverListener
      • afterIsEnabled

        public void afterIsEnabled​(org.openqa.selenium.WebElement element,
                                   boolean result)
        Specified by:
        afterIsEnabled in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetText

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

        public void afterGetText​(org.openqa.selenium.WebElement element,
                                 String result)
        Specified by:
        afterGetText in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeFindElement

        public void beforeFindElement​(org.openqa.selenium.WebElement element,
                                      org.openqa.selenium.By locator)
        Specified by:
        beforeFindElement in interface org.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:
        afterFindElement in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeFindElements

        public void beforeFindElements​(org.openqa.selenium.WebElement element,
                                       org.openqa.selenium.By locator)
        Specified by:
        beforeFindElements in interface org.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:
        afterFindElements in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeIsDisplayed

        public void beforeIsDisplayed​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeIsDisplayed in interface org.openqa.selenium.support.events.WebDriverListener
      • afterIsDisplayed

        public void afterIsDisplayed​(org.openqa.selenium.WebElement element,
                                     boolean result)
        Specified by:
        afterIsDisplayed in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetLocation

        public void beforeGetLocation​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeGetLocation in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetLocation

        public void afterGetLocation​(org.openqa.selenium.WebElement element,
                                     org.openqa.selenium.Point result)
        Specified by:
        afterGetLocation in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetSize

        public void beforeGetSize​(org.openqa.selenium.WebElement element)
        Specified by:
        beforeGetSize in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetSize

        public void afterGetSize​(org.openqa.selenium.WebElement element,
                                 org.openqa.selenium.Dimension result)
        Specified by:
        afterGetSize in interface org.openqa.selenium.support.events.WebDriverListener
      • beforeGetCssValue

        public void beforeGetCssValue​(org.openqa.selenium.WebElement element,
                                      String propertyName)
        Specified by:
        beforeGetCssValue in interface org.openqa.selenium.support.events.WebDriverListener
      • afterGetCssValue

        public void afterGetCssValue​(org.openqa.selenium.WebElement element,
                                     String propertyName,
                                     String result)
        Specified by:
        afterGetCssValue in interface org.openqa.selenium.support.events.WebDriverListener