Class WebDriverListener

java.lang.Object
com.shaft.listeners.internal.WebDriverListener
All Implemented Interfaces:
io.appium.java_client.proxy.MethodCallListener, org.openqa.selenium.support.events.WebDriverListener

public class WebDriverListener extends Object implements org.openqa.selenium.support.events.WebDriverListener, io.appium.java_client.proxy.MethodCallListener
  • Field Summary

    Fields inherited from interface io.appium.java_client.proxy.MethodCallListener

    UNSET
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterAnyCall(Object target, Method method, Object[] args, Object result)
     
    void
    afterBack(org.openqa.selenium.WebDriver.Navigation navigation)
     
    void
    afterClose(org.openqa.selenium.WebDriver driver)
     
    void
    afterForward(org.openqa.selenium.WebDriver.Navigation navigation)
     
    void
    afterGet(org.openqa.selenium.WebDriver driver, String url)
     
    void
    afterGetAttribute(org.openqa.selenium.WebElement element, String name, String result)
     
    void
    afterGetCurrentUrl(String result, org.openqa.selenium.WebDriver driver)
     
    void
    afterGetText(org.openqa.selenium.WebElement element, String result)
     
    void
    afterGetTitle(org.openqa.selenium.WebDriver driver, String result)
     
    void
    afterMaximize(org.openqa.selenium.WebDriver.Window window)
     
    void
    afterQuit(org.openqa.selenium.WebDriver driver)
     
    void
    afterRefresh(org.openqa.selenium.WebDriver.Navigation navigation)
     
    void
    afterTo(org.openqa.selenium.WebDriver.Navigation navigation, String url)
     
    void
    afterTo(org.openqa.selenium.WebDriver.Navigation navigation, URL url)
     
    void
    beforeClear(org.openqa.selenium.WebElement element)
     
    void
    beforeClick(org.openqa.selenium.WebElement element)
     
    void
    beforeFindElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By locator)
     
    void
    beforeSendKeys(org.openqa.selenium.Alert alert, String text)
     
    void
    beforeSendKeys(org.openqa.selenium.WebElement element, CharSequence... keysToSend)
     
    void
    beforeSubmit(org.openqa.selenium.WebElement element)
     
    void
    onError(Object target, Method method, Object[] args, InvocationTargetException e)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.appium.java_client.proxy.MethodCallListener

    afterCall, beforeCall, call, onError

    Methods inherited from interface org.openqa.selenium.support.events.WebDriverListener

    afterAccept, afterActiveElement, afterAddCookie, afterAlert, afterAnyAlertCall, afterAnyNavigationCall, afterAnyOptionsCall, afterAnyTargetLocatorCall, afterAnyTimeoutsCall, afterAnyWebDriverCall, afterAnyWebElementCall, afterAnyWindowCall, afterClear, afterClick, afterDefaultContent, afterDeleteAllCookies, afterDeleteCookie, afterDeleteCookieNamed, afterDismiss, afterExecuteAsyncScript, afterExecuteScript, afterFindElement, afterFindElement, afterFindElements, afterFindElements, afterFrame, afterFrame, afterFrame, afterFullscreen, afterGetCookieNamed, afterGetCookies, afterGetCssValue, afterGetCurrentUrl, afterGetLocation, afterGetPageSource, afterGetPosition, afterGetSize, afterGetSize, afterGetTagName, afterGetText, afterGetWindowHandle, afterGetWindowHandles, afterImplicitlyWait, afterIsDisplayed, afterIsEnabled, afterIsSelected, afterNewWindow, afterPageLoadTimeout, afterParentFrame, afterPerform, afterResetInputState, afterSendKeys, afterSendKeys, afterSetPosition, afterSetScriptTimeout, afterSetSize, afterSubmit, afterWindow, beforeAccept, beforeActiveElement, beforeAddCookie, beforeAlert, beforeAnyAlertCall, beforeAnyCall, beforeAnyNavigationCall, beforeAnyOptionsCall, beforeAnyTargetLocatorCall, beforeAnyTimeoutsCall, beforeAnyWebDriverCall, beforeAnyWebElementCall, beforeAnyWindowCall, beforeBack, beforeClose, beforeDefaultContent, beforeDeleteAllCookies, beforeDeleteCookie, beforeDeleteCookieNamed, beforeDismiss, beforeExecuteAsyncScript, beforeExecuteScript, beforeFindElement, beforeFindElements, beforeFindElements, beforeForward, beforeFrame, beforeFrame, beforeFrame, beforeFullscreen, beforeGet, beforeGetAttribute, beforeGetCookieNamed, beforeGetCookies, beforeGetCssValue, beforeGetCurrentUrl, beforeGetLocation, beforeGetPageSource, beforeGetPosition, beforeGetSize, beforeGetSize, beforeGetTagName, beforeGetText, beforeGetText, beforeGetTitle, beforeGetWindowHandle, beforeGetWindowHandles, beforeImplicitlyWait, beforeIsDisplayed, beforeIsEnabled, beforeIsSelected, beforeMaximize, beforeNewWindow, beforePageLoadTimeout, beforeParentFrame, beforePerform, beforeQuit, beforeRefresh, beforeResetInputState, beforeSetPosition, beforeSetScriptTimeout, beforeSetSize, beforeTo, beforeTo, beforeWindow
  • Constructor Details

    • WebDriverListener

      public WebDriverListener()
  • Method Details

    • afterAnyCall

      public void afterAnyCall(Object target, Method method, Object[] args, Object result)
      Specified by:
      afterAnyCall in interface org.openqa.selenium.support.events.WebDriverListener
    • onError

      public void onError(Object target, Method method, Object[] args, InvocationTargetException e)
      Specified by:
      onError in interface org.openqa.selenium.support.events.WebDriverListener
    • afterGet

      public void afterGet(org.openqa.selenium.WebDriver driver, String url)
      Specified by:
      afterGet in interface org.openqa.selenium.support.events.WebDriverListener
    • afterGetCurrentUrl

      public void afterGetCurrentUrl(String result, org.openqa.selenium.WebDriver driver)
    • afterGetTitle

      public void afterGetTitle(org.openqa.selenium.WebDriver driver, String result)
      Specified by:
      afterGetTitle in interface org.openqa.selenium.support.events.WebDriverListener
    • beforeFindElement

      public void beforeFindElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By locator)
      Specified by:
      beforeFindElement in interface org.openqa.selenium.support.events.WebDriverListener
    • afterClose

      public void afterClose(org.openqa.selenium.WebDriver driver)
      Specified by:
      afterClose in interface org.openqa.selenium.support.events.WebDriverListener
    • afterQuit

      public void afterQuit(org.openqa.selenium.WebDriver driver)
      Specified by:
      afterQuit 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
    • beforeSubmit

      public void beforeSubmit(org.openqa.selenium.WebElement element)
      Specified by:
      beforeSubmit 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
    • beforeClear

      public void beforeClear(org.openqa.selenium.WebElement element)
      Specified by:
      beforeClear 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
    • afterGetText

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

      public void afterTo(org.openqa.selenium.WebDriver.Navigation navigation, String url)
      Specified by:
      afterTo in interface org.openqa.selenium.support.events.WebDriverListener
    • afterTo

      public void afterTo(org.openqa.selenium.WebDriver.Navigation navigation, URL url)
      Specified by:
      afterTo in interface org.openqa.selenium.support.events.WebDriverListener
    • afterBack

      public void afterBack(org.openqa.selenium.WebDriver.Navigation navigation)
      Specified by:
      afterBack in interface org.openqa.selenium.support.events.WebDriverListener
    • afterForward

      public void afterForward(org.openqa.selenium.WebDriver.Navigation navigation)
      Specified by:
      afterForward in interface org.openqa.selenium.support.events.WebDriverListener
    • afterRefresh

      public void afterRefresh(org.openqa.selenium.WebDriver.Navigation navigation)
      Specified by:
      afterRefresh in interface org.openqa.selenium.support.events.WebDriverListener
    • beforeSendKeys

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

      public void afterMaximize(org.openqa.selenium.WebDriver.Window window)
      Specified by:
      afterMaximize in interface org.openqa.selenium.support.events.WebDriverListener