Interface WebDriverListener
Classes that implement this interface are intended to be used with 
EventFiringDecorator,
 read documentation for this class to find detailed usage description.
 This interface provides empty default implementation for all methods that do nothing.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidafterAccept(Alert alert) This action will be performed each time afterAlert.accept()default voidafterActiveElement(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.activeElement()is called.default voidafterAddCookie(WebDriver.Options options, Cookie cookie) This action will be performed each time afterWebDriver.Options.addCookie(Cookie)default voidafterAlert(WebDriver.TargetLocator targetLocator, Alert alert) This action will be performed each time afterWebDriver.TargetLocator.alert()is called.default voidafterAnyAlertCall(Alert alert, Method method, Object[] args, Object result) default voidafterAnyCall(Object target, Method method, Object[] args, Object result) This method is called after the execution of any instance methods on the 'target' object.default voidafterAnyNavigationCall(WebDriver.Navigation navigation, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver.Navigationinstance is called.default voidafterAnyOptionsCall(WebDriver.Options options, Method method, Object[] args, Object result) default voidafterAnyTargetLocatorCall(WebDriver.TargetLocator targetLocator, Method method, Object[] args, Object result) Called after any method inWebDriver.TargetLocatorclass.default voidafterAnyTimeoutsCall(WebDriver.Timeouts timeouts, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver.Timeoutsinstance isdefault voidafterAnyWebDriverCall(WebDriver driver, Method method, Object[] args, Object result) This method will be called after any method of aWebDriverinstance is called.default voidafterAnyWebElementCall(WebElement element, Method method, Object[] args, Object result) This method will be called after any method of aWebElementinstance is called.default voidafterAnyWindowCall(WebDriver.Window window, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver.Windowinstance isdefault voidafterBack(WebDriver.Navigation navigation) This action will be performed each time afterWebDriver.Navigation.back()is called.default voidafterClear(WebElement element) This action will be performed each time afterWebElement.clear()is called.default voidafterClick(WebElement element) This action will be performed each time afterWebElement.click()is called.default voidafterClose(WebDriver driver) This method will be called afterWebDriver.close()is called.default voidafterDefaultContent(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.defaultContent()is called.default voidafterDeleteAllCookies(WebDriver.Options options) This action will be performed each time afterWebDriver.Options.deleteAllCookies()default voidafterDeleteCookie(WebDriver.Options options, Cookie cookie) This action will be performed each time afterWebDriver.Options.deleteCookie(Cookie)default voidafterDeleteCookieNamed(WebDriver.Options options, String name) This action will be performed each time afterWebDriver.Options.deleteCookieNamed(String)default voidafterDismiss(Alert alert) This action will be performed each time afterAlert.dismiss()default voidafterExecuteAsyncScript(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeAsyncScript(String, Object...)is called.default voidafterExecuteScript(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeScript(ScriptKey, Object...)is called.default voidafterFindElement(WebDriver driver, By locator, WebElement result) This method will be called afterWebDriver.findElement(By)is called.default voidafterFindElement(WebElement element, By locator, WebElement result) This action will be performed each time afterWebElement.findElement(By)is called.default voidafterFindElements(WebDriver driver, By locator, List<WebElement> result) This method will be called afterWebDriver.findElements(By)is called.default voidafterFindElements(WebElement element, By locator, List<WebElement> result) This action will be performed each time afterWebElement.findElements(By)is called.default voidafterForward(WebDriver.Navigation navigation) This action will be performed each time afterWebDriver.Navigation.forward()is called.default voidafterFrame(WebDriver.TargetLocator targetLocator, int index, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(int)()} is called.default voidafterFrame(WebDriver.TargetLocator targetLocator, String nameOrId, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(String)()} is called.default voidafterFrame(WebDriver.TargetLocator targetLocator, WebElement frameElement, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(WebElement)()} is called.default voidafterFullscreen(WebDriver.Window window) This action will be performed each time afterWebDriver.Window.fullscreen()is called.default voidThis method will be called afterWebDriver.get(String)is called.default voidafterGetAttribute(WebElement element, String name, String result) This action will be performed each time afterWebElement.getAttribute(String)is called.default voidafterGetCookieNamed(WebDriver.Options options, String name, Cookie result) This action will be performed each time afterWebDriver.Options.getCookieNamed(String)default voidafterGetCookies(WebDriver.Options options, Set<Cookie> result) This action will be performed each time afterWebDriver.Options.getCookies()default voidafterGetCssValue(WebElement element, String propertyName, String result) This action will be performed each time afterWebElement.getCssValue(String)is called.default voidafterGetCurrentUrl(WebDriver driver, String result) This method will be called afterWebDriver.getCurrentUrl()is called.default voidafterGetLocation(WebElement element, Point result) This action will be performed each time afterWebElement.getLocation()is called.default voidafterGetPageSource(WebDriver driver, String result) This method will be called afterWebDriver.getPageSource()is called.default voidafterGetPosition(WebDriver.Window window, Point result) This action will be performed each time afterWebDriver.Window.getPosition()is called.default <X> voidafterGetScreenshotAs(WebDriver driver, OutputType<X> target, X result) This method will be called afterTakesScreenshot.getScreenshotAs(OutputType)is called.default <X> voidafterGetScreenshotAs(WebElement element, OutputType<X> target, X result) This method will be called afterTakesScreenshot.getScreenshotAs(OutputType)is called.default voidafterGetSize(WebDriver.Window window, Dimension result) This action will be performed each time afterWebDriver.Window.getSize()is called.default voidafterGetSize(WebElement element, Dimension result) This action will be performed each time afterWebElement.getSize()is called.default voidafterGetTagName(WebElement element, String result) This action will be performed each time afterWebElement.getTagName()is called.default voidafterGetText(Alert alert, String result) This action will be performed each time afterAlert.getText()default voidafterGetText(WebElement element, String result) This action will be performed each time afterWebElement.getText()is called.default voidafterGetTitle(WebDriver driver, String result) This method will be called afterWebDriver.getTitle()is called.default voidafterGetWindowHandle(WebDriver driver, String result) This method will be called afterWebDriver.getWindowHandle()is called.default voidafterGetWindowHandles(WebDriver driver, Set<String> result) This method will be called afterWebDriver.getWindowHandles()is called.default voidafterImplicitlyWait(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time afterWebDriver.Timeouts.implicitlyWait(Duration)is called.default voidafterIsDisplayed(WebElement element, boolean result) This action will be performed each time afterWebElement.isDisplayed()is called.default voidafterIsEnabled(WebElement element, boolean result) This action will be performed each time afterWebElement.isEnabled()is called.default voidafterIsSelected(WebElement element, boolean result) This action will be performed each time afterWebElement.isSelected()is called.default voidafterMaximize(WebDriver.Window window) This action will be performed each time afterWebDriver.Window.maximize()is called.default voidafterNewWindow(WebDriver.TargetLocator targetLocator, WindowType typeHint, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.newWindow(WindowType)is called.default voidafterPageLoadTimeout(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time afterWebDriver.Timeouts.pageLoadTimeout(Duration)is called.default voidafterParentFrame(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.parentFrame()is called.default voidafterPerform(WebDriver driver, Collection<Sequence> actions) This method will be called afterActions.perform()} is called.default voidThis method will be called afterWebDriver.quit()is called.default voidafterRefresh(WebDriver.Navigation navigation) This action will be performed each time afterWebDriver.Navigation.refresh()is called.default voidafterResetInputState(WebDriver driver) This method will be called afterRemoteWebDriver.resetInputState()is called.default voidafterScriptTimeout(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time afterWebDriver.Timeouts.scriptTimeout(Duration)is called.default voidafterSendKeys(Alert alert, String text) This action will be performed each time afterAlert.sendKeys(String)default voidafterSendKeys(WebElement element, CharSequence... keysToSend) default voidafterSetPosition(WebDriver.Window window, Point position) This action will be performed each time afterWebDriver.Window.setPosition(Point)is called.default voidafterSetSize(WebDriver.Window window, Dimension size) This action will be performed each time afterWebDriver.Window.setSize(Dimension)is called.default voidafterSubmit(WebElement element) This action will be performed each time afterWebElement.submit()is called.default voidafterTo(WebDriver.Navigation navigation, String url) This action will be performed each time afterWebDriver.Navigation.to(String)is called.default voidafterTo(WebDriver.Navigation navigation, URL url) This action will be performed each time afterWebDriver.Navigation.to(URL)is called.default voidafterWindow(WebDriver.TargetLocator targetLocator, String nameOrHandle, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.window(String).default voidbeforeAccept(Alert alert) This action will be performed each time beforeAlert.accept()default voidbeforeActiveElement(WebDriver.TargetLocator targetLocator) This action will be performed each time beforeWebDriver.TargetLocator.activeElement()is called.default voidbeforeAddCookie(WebDriver.Options options, Cookie cookie) This action will be performed each time beforeWebDriver.Options.addCookie(Cookie)default voidbeforeAlert(WebDriver.TargetLocator targetLocator) This action will be performed each time beforeWebDriver.TargetLocator.alert()is called.default voidbeforeAnyAlertCall(Alert alert, Method method, Object[] args) default voidbeforeAnyCall(Object target, Method method, Object[] args) This method is called before the execution of any method on the 'target' object.default voidbeforeAnyNavigationCall(WebDriver.Navigation navigation, Method method, Object[] args) This method will be called before any method of aWebDriver.Navigationinstance is called.default voidbeforeAnyOptionsCall(WebDriver.Options options, Method method, Object[] args) default voidbeforeAnyTargetLocatorCall(WebDriver.TargetLocator targetLocator, Method method, Object[] args) Called before any method inWebDriver.TargetLocatorclass.default voidbeforeAnyTimeoutsCall(WebDriver.Timeouts timeouts, Method method, Object[] args) This method will be called before any method of aWebDriver.Timeoutsinstance isdefault voidbeforeAnyWebDriverCall(WebDriver driver, Method method, Object[] args) This method will be called before any method of aWebDriverinstance is called.default voidbeforeAnyWebElementCall(WebElement element, Method method, Object[] args) This method will be called before any method of aWebElementinstance is called.default voidbeforeAnyWindowCall(WebDriver.Window window, Method method, Object[] args) This method will be called before any method of aWebDriver.Windowinstance isdefault voidbeforeBack(WebDriver.Navigation navigation) This action will be performed each time beforeWebDriver.Navigation.back()is called.default voidbeforeClear(WebElement element) This action will be performed each time beforeWebElement.clear()is called.default voidbeforeClick(WebElement element) This action will be performed each time beforeWebElement.click()is called.default voidbeforeClose(WebDriver driver) This method will be called beforeWebDriver.close()is called.default voidbeforeDefaultContent(WebDriver.TargetLocator targetLocator) This action will be performed each time beforeWebDriver.TargetLocator.defaultContent()is called.default voidbeforeDeleteAllCookies(WebDriver.Options options) This action will be performed each time beforeWebDriver.Options.deleteAllCookies()default voidbeforeDeleteCookie(WebDriver.Options options, Cookie cookie) This action will be performed each time beforeWebDriver.Options.deleteCookie(Cookie)default voidbeforeDeleteCookieNamed(WebDriver.Options options, String name) This action will be performed each time beforeWebDriver.Options.deleteCookieNamed(String)default voidbeforeDismiss(Alert alert) This action will be performed each time beforeAlert.dismiss()default voidbeforeExecuteAsyncScript(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeAsyncScript(String, Object...)is called.default voidbeforeExecuteScript(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeScript(ScriptKey, Object...)is called.default voidbeforeFindElement(WebDriver driver, By locator) This method will be called beforeWebDriver.findElement(By)is called.default voidbeforeFindElement(WebElement element, By locator) This action will be performed each time beforeWebElement.findElement(By)is called.default voidbeforeFindElements(WebDriver driver, By locator) This method will be called beforeWebDriver.findElements(By)is called.default voidbeforeFindElements(WebElement element, By locator) This action will be performed each time beforeWebElement.findElements(By)is called.default voidbeforeForward(WebDriver.Navigation navigation) This action will be performed each time beforeWebDriver.Navigation.forward()is called.default voidbeforeFrame(WebDriver.TargetLocator targetLocator, int index) This action will be performed each time beforeWebDriver.TargetLocator.frame(int)()} is called.default voidbeforeFrame(WebDriver.TargetLocator targetLocator, String nameOrId) This action will be performed each time beforeWebDriver.TargetLocator.frame(String)()} is called.default voidbeforeFrame(WebDriver.TargetLocator targetLocator, WebElement frameElement) This action will be performed each time beforeWebDriver.TargetLocator.frame(WebElement)()} is called.default voidbeforeFullscreen(WebDriver.Window window) This action will be performed each time beforeWebDriver.Window.fullscreen()is called.default voidThis method will be called beforeWebDriver.get(String)is called.default voidbeforeGetAttribute(WebElement element, String name) This action will be performed each time beforeWebElement.getAttribute(String)is called.default voidbeforeGetCookieNamed(WebDriver.Options options, String name) This action will be performed each time beforeWebDriver.Options.getCookieNamed(String)default voidbeforeGetCookies(WebDriver.Options options) This action will be performed each time beforeWebDriver.Options.getCookies()default voidbeforeGetCssValue(WebElement element, String propertyName) This action will be performed each time beforeWebElement.getCssValue(String)is called.default voidbeforeGetCurrentUrl(WebDriver driver) This method will be called beforeWebDriver.getCurrentUrl()is called.default voidbeforeGetLocation(WebElement element) This action will be performed each time beforeWebElement.getLocation()is called.default voidbeforeGetPageSource(WebDriver driver) This method will be called beforeWebDriver.getPageSource()is called.default voidbeforeGetPosition(WebDriver.Window window) This action will be performed each time beforeWebDriver.Window.getPosition()is called.default <X> voidbeforeGetScreenshotAs(WebDriver driver, OutputType<X> target) This method will be called beforeTakesScreenshot.getScreenshotAs(OutputType)is called.default <X> voidbeforeGetScreenshotAs(WebElement element, OutputType<X> target) This method will be called beforeTakesScreenshot.getScreenshotAs(OutputType)is called.default voidbeforeGetSize(WebDriver.Window window) This action will be performed each time beforeWebDriver.Window.getSize()is called.default voidbeforeGetSize(WebElement element) This action will be performed each time beforeWebElement.getSize()is called.default voidbeforeGetTagName(WebElement element) This action will be performed each time beforeWebElement.getTagName()is called.default voidbeforeGetText(Alert alert) This action will be performed each time beforeAlert.getText()default voidbeforeGetText(WebElement element) This action will be performed each time beforeWebElement.getText()is called.default voidbeforeGetTitle(WebDriver driver) This method will be called beforeWebDriver.getTitle()is called.default voidbeforeGetWindowHandle(WebDriver driver) This method will be called beforeWebDriver.getWindowHandle()is called.default voidbeforeGetWindowHandles(WebDriver driver) This method will be called beforeWebDriver.getWindowHandles()is called.default voidbeforeImplicitlyWait(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time beforeWebDriver.Timeouts.implicitlyWait(Duration)is called.default voidbeforeIsDisplayed(WebElement element) This action will be performed each time beforeWebElement.isDisplayed()is called.default voidbeforeIsEnabled(WebElement element) This action will be performed each time beforeWebElement.isEnabled()is called.default voidbeforeIsSelected(WebElement element) This action will be performed each time beforeWebElement.isSelected()is called.default voidbeforeMaximize(WebDriver.Window window) This action will be performed each time beforeWebDriver.Window.maximize()is called.default voidbeforeNewWindow(WebDriver.TargetLocator targetLocator, WindowType typeHint) This action will be performed each time beforeWebDriver.TargetLocator.newWindow(WindowType)is called.default voidbeforePageLoadTimeout(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time beforeWebDriver.Timeouts.pageLoadTimeout(Duration)is called.default voidbeforeParentFrame(WebDriver.TargetLocator targetLocator) This action will be performed each time beforeWebDriver.TargetLocator.parentFrame()is called.default voidbeforePerform(WebDriver driver, Collection<Sequence> actions) This method will be called beforeActions.perform()} is called.default voidbeforeQuit(WebDriver driver) This method will be called beforeWebDriver.quit()is called.default voidbeforeRefresh(WebDriver.Navigation navigation) This action will be performed each time beforeWebDriver.Navigation.refresh()is called.default voidbeforeResetInputState(WebDriver driver) This method will be called beforeRemoteWebDriver.resetInputState()is called.default voidbeforeScriptTimeout(WebDriver.Timeouts timeouts, Duration duration) This action will be performed each time beforeWebDriver.Timeouts.scriptTimeout(Duration)is called.default voidbeforeSendKeys(Alert alert, String text) This action will be performed each time beforeAlert.sendKeys(String)default voidbeforeSendKeys(WebElement element, CharSequence... keysToSend) This action will be performed each time beforeWebElement.sendKeys(CharSequence...)is called.default voidbeforeSetPosition(WebDriver.Window window, Point position) This action will be performed each time beforeWebDriver.Window.setPosition(Point)is called.default voidbeforeSetSize(WebDriver.Window window, Dimension size) This action will be performed each time beforeWebDriver.Window.setSize(Dimension)is called.default voidbeforeSubmit(WebElement element) This action will be performed each time beforeWebElement.submit()is called.default voidbeforeTo(WebDriver.Navigation navigation, String url) This action will be performed each time beforeWebDriver.Navigation.to(String)is called.default voidbeforeTo(WebDriver.Navigation navigation, URL url) This action will be performed each time beforeWebDriver.Navigation.to(URL)is called.default voidbeforeWindow(WebDriver.TargetLocator targetLocator, String nameOrHandle) This action will be performed each time beforeWebDriver.TargetLocator.window(String).default voidonError(Object target, Method method, Object[] args, InvocationTargetException e) Notifies registered listeners about an error that occurred during the execution of a decorated method.
- 
Method Details- 
beforeAnyCallThis method is called before the execution of any method on the 'target' object. It provides a hook for performing actions or logging before any method call.- Parameters:
- target- The original object on which methods will be invoked.
- method- The method that will be called on the 'target' object.
- args- The arguments that will be passed to the method.
 
- 
afterAnyCallThis method is called after the execution of any instance methods on the 'target' object. It provides a hook for performing actions or logging after any instance method call.- Parameters:
- target- The original object on which instance methods were invoked.
- method- The method that was called on the 'target' object.
- args- The arguments passed to the method.
- result- The result returned by the method.
 
- 
onErrorNotifies registered listeners about an error that occurred during the execution of a decorated method.- Parameters:
- target- The original object on which the decorated method was invoked.
- method- The method that encountered an error.
- args- The arguments passed to the method.
- e- The InvocationTargetException containing the error details.
 
- 
beforeAnyWebDriverCallThis method will be called before any method of aWebDriverinstance is called.- Parameters:
- driver- - decorated WebDriver instance
- method- - method that will be called
- args- - arguments for the method
 
- 
afterAnyWebDriverCallThis method will be called after any method of aWebDriverinstance is called.- Parameters:
- driver- - decorated WebDriver instance
- method- - method that was called
- args- - arguments for the method
- result- - result of the method call
 
- 
beforeGetThis method will be called beforeWebDriver.get(String)is called.- Parameters:
- driver- - decorated WebDriver instance
- url- - url to navigate to
 
- 
afterGetThis method will be called afterWebDriver.get(String)is called.- Parameters:
- driver- - decorated WebDriver instance
- url- - url navigated to
 
- 
beforeGetCurrentUrlThis method will be called beforeWebDriver.getCurrentUrl()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterGetCurrentUrlThis method will be called afterWebDriver.getCurrentUrl()is called.- Parameters:
- driver- - decorated WebDriver instance
- result- - url of the current page
 
- 
beforeGetTitleThis method will be called beforeWebDriver.getTitle()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterGetTitleThis method will be called afterWebDriver.getTitle()is called.- Parameters:
- driver- - decorated WebDriver instance
- result- - title of the current page
 
- 
beforeFindElementThis method will be called beforeWebDriver.findElement(By)is called.- Parameters:
- driver- - decorated WebDriver instance
- locator- - locator used to find the element
 
- 
afterFindElementThis method will be called afterWebDriver.findElement(By)is called.- Parameters:
- driver- - decorated WebDriver instance
- locator- - locator used to find the element
- result- - found WebElement
 
- 
beforeFindElementsThis method will be called beforeWebDriver.findElements(By)is called.- Parameters:
- driver- - decorated WebDriver instance
- locator- - locator used to find the elements
 
- 
afterFindElementsThis method will be called afterWebDriver.findElements(By)is called.- Parameters:
- driver- - decorated WebDriver instance
- locator- - locator used to find the elements
- result- - list of found WebElements
 
- 
beforeGetPageSourceThis method will be called beforeWebDriver.getPageSource()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterGetPageSourceThis method will be called afterWebDriver.getPageSource()is called.- Parameters:
- driver- - decorated WebDriver instance
- result- - page source of the current page
 
- 
beforeCloseThis method will be called beforeWebDriver.close()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterCloseThis method will be called afterWebDriver.close()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
beforeQuitThis method will be called beforeWebDriver.quit()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterQuitThis method will be called afterWebDriver.quit()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
beforeGetWindowHandlesThis method will be called beforeWebDriver.getWindowHandles()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterGetWindowHandlesThis method will be called afterWebDriver.getWindowHandles()is called.- Parameters:
- driver- - decorated WebDriver instance
- result- - set of window handles
 
- 
beforeGetWindowHandleThis method will be called beforeWebDriver.getWindowHandle()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterGetWindowHandleThis method will be called afterWebDriver.getWindowHandle()is called.- Parameters:
- driver- - decorated WebDriver instance
- result- - window handle of the current window
 
- 
beforeExecuteScriptThis method will be called beforeJavascriptExecutor.executeScript(ScriptKey, Object...)is called.- Parameters:
- driver- - decorated WebDriver instance
- script- - script to be executed
- args- - arguments to the script
 
- 
afterExecuteScriptThis method will be called afterJavascriptExecutor.executeScript(ScriptKey, Object...)is called.- Parameters:
- driver- - decorated WebDriver instance
- script- - script to be executed
- args- - arguments to the script
- result- - result of the script execution
 
- 
beforeExecuteAsyncScriptThis method will be called beforeJavascriptExecutor.executeAsyncScript(String, Object...)is called.- Parameters:
- driver- - decorated WebDriver instance
- script- - script to be executed
- args- - arguments to the script
 
- 
afterExecuteAsyncScriptThis method will be called afterJavascriptExecutor.executeAsyncScript(String, Object...)is called.- Parameters:
- driver- - decorated WebDriver instance
- script- - script to be executed
- args- - arguments to the script
- result- - result of the script execution
 
- 
beforePerformThis method will be called beforeActions.perform()} is called.- Parameters:
- driver- - decorated WebDriver instance
- actions- - sequence of actions to be performed
 
- 
afterPerformThis method will be called afterActions.perform()} is called.- Parameters:
- driver- - decorated WebDriver instance
- actions- - sequence of actions to be performed
 
- 
beforeResetInputStateThis method will be called beforeRemoteWebDriver.resetInputState()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
afterResetInputStateThis method will be called afterRemoteWebDriver.resetInputState()is called.- Parameters:
- driver- - decorated WebDriver instance
 
- 
beforeGetScreenshotAsThis method will be called beforeTakesScreenshot.getScreenshotAs(OutputType)is called.- Type Parameters:
- X- return type for getScreenshotAs
- Parameters:
- driver- decorated WebDriver instance
- target- target type, see- OutputType
 
- 
afterGetScreenshotAsThis method will be called afterTakesScreenshot.getScreenshotAs(OutputType)is called.- Type Parameters:
- X- return type for getScreenshotAs
- Parameters:
- driver- decorated WebDriver instance
- target- target type, see- OutputType
- result- object that stores the screenshot information
 
- 
beforeAnyWebElementCallThis method will be called before any method of aWebElementinstance is called.- Parameters:
- element- - decorated WebElement instance
- method- - method that will be called
- args- - arguments for the method
 
- 
afterAnyWebElementCalldefault void afterAnyWebElementCall(WebElement element, Method method, Object[] args, Object result) This method will be called after any method of aWebElementinstance is called.- Parameters:
- element- - decorated WebElement instance
- method- - method that was called
- args- - arguments for the method
- result- - result of the method call
 
- 
beforeClickThis action will be performed each time beforeWebElement.click()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterClickThis action will be performed each time afterWebElement.click()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
beforeSubmitThis action will be performed each time beforeWebElement.submit()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterSubmitThis action will be performed each time afterWebElement.submit()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
beforeSendKeysThis action will be performed each time beforeWebElement.sendKeys(CharSequence...)is called.- Parameters:
- element- - decorated WebElement instance
- keysToSend- - keys to send
 
- 
afterSendKeys
- 
beforeClearThis action will be performed each time beforeWebElement.clear()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterClearThis action will be performed each time afterWebElement.clear()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
beforeGetTagNameThis action will be performed each time beforeWebElement.getTagName()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterGetTagNameThis action will be performed each time afterWebElement.getTagName()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (tag name of the element)
 
- 
beforeGetAttributeThis action will be performed each time beforeWebElement.getAttribute(String)is called.- Parameters:
- element- - decorated WebElement instance
- name- - name of the attribute
 
- 
afterGetAttributeThis action will be performed each time afterWebElement.getAttribute(String)is called.- Parameters:
- element- - decorated WebElement instance
- name- - name of the attribute
- result- - result of the method call (value of the attribute)
 
- 
beforeIsSelectedThis action will be performed each time beforeWebElement.isSelected()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterIsSelectedThis action will be performed each time afterWebElement.isSelected()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (true if the element is selected)
 
- 
beforeIsEnabledThis action will be performed each time beforeWebElement.isEnabled()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterIsEnabledThis action will be performed each time afterWebElement.isEnabled()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (true if the element is enabled)
 
- 
beforeGetTextThis action will be performed each time beforeWebElement.getText()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterGetTextThis action will be performed each time afterWebElement.getText()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (text of the element)
 
- 
beforeFindElementThis action will be performed each time beforeWebElement.findElement(By)is called.- Parameters:
- element- - decorated WebElement instance
- locator- - locator used to find the elements
 
- 
afterFindElementThis action will be performed each time afterWebElement.findElement(By)is called.- Parameters:
- element- - decorated WebElement instance
- locator- - locator used to find the elements
- result- - found WebElement (can be null)
 
- 
beforeFindElementsThis action will be performed each time beforeWebElement.findElements(By)is called.- Parameters:
- element- - decorated WebElement instance
- locator- - locator used to find the elements
 
- 
afterFindElementsThis action will be performed each time afterWebElement.findElements(By)is called.- Parameters:
- element- - decorated WebElement instance
- locator- - locator used to find the elements
- result- - list of found WebElements (can be empty)
 
- 
beforeIsDisplayedThis action will be performed each time beforeWebElement.isDisplayed()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterIsDisplayedThis action will be performed each time afterWebElement.isDisplayed()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (true if the element is displayed)
 
- 
beforeGetLocationThis action will be performed each time beforeWebElement.getLocation()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterGetLocationThis action will be performed each time afterWebElement.getLocation()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (coordinates of the top-left corner of the element)
 
- 
beforeGetSizeThis action will be performed each time beforeWebElement.getSize()is called.- Parameters:
- element- - decorated WebElement instance
 
- 
afterGetSizeThis action will be performed each time afterWebElement.getSize()is called.- Parameters:
- element- - decorated WebElement instance
- result- - result of the method call (size of the element)
 
- 
beforeGetCssValueThis action will be performed each time beforeWebElement.getCssValue(String)is called.- Parameters:
- element- - decorated WebElement instance
- propertyName- - name of the css property
 
- 
afterGetCssValueThis action will be performed each time afterWebElement.getCssValue(String)is called.- Parameters:
- element- - decorated WebElement instance
- propertyName- - name of the css property
- result- - result of the method call (value of the css property)
 
- 
beforeGetScreenshotAsThis method will be called beforeTakesScreenshot.getScreenshotAs(OutputType)is called.- Type Parameters:
- X- return type for getScreenshotAs
- Parameters:
- element- decorated WebElement instance
- target- target type, see- OutputType
 
- 
afterGetScreenshotAsThis method will be called afterTakesScreenshot.getScreenshotAs(OutputType)is called.- Type Parameters:
- X- return type for getScreenshotAs
- Parameters:
- element- decorated WebElement instance
- target- target type, see- OutputType
- result- result object that stores the screenshot information
 
- 
beforeAnyAlertCall- Parameters:
- alert- - The alert that will be called
- method- - The method that will be called
- args- - The arguments that will be passed to the method
 
- 
afterAnyAlertCall
- 
beforeAcceptThis action will be performed each time beforeAlert.accept()- Parameters:
- alert- - alert to accept
 
- 
afterAcceptThis action will be performed each time afterAlert.accept()- Parameters:
- alert- - alert to accept
 
- 
beforeDismissThis action will be performed each time beforeAlert.dismiss()- Parameters:
- alert- - alert to dismiss
 
- 
afterDismissThis action will be performed each time afterAlert.dismiss()- Parameters:
- alert- - alert to dismiss
 
- 
beforeGetTextThis action will be performed each time beforeAlert.getText()- Parameters:
- alert- - alert to get text from
 
- 
afterGetTextThis action will be performed each time afterAlert.getText()- Parameters:
- alert- - alert to get text from
 
- 
beforeSendKeysThis action will be performed each time beforeAlert.sendKeys(String)- Parameters:
- alert- - alert to send keys to
- text- - keys to send
 
- 
afterSendKeysThis action will be performed each time afterAlert.sendKeys(String)- Parameters:
- alert- - alert to send keys to
- text- - keys to send
 
- 
beforeAnyOptionsCall- Parameters:
- options- The options object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
 
- 
afterAnyOptionsCalldefault void afterAnyOptionsCall(WebDriver.Options options, Method method, Object[] args, Object result) - Parameters:
- options- The options object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
- result- The result of the method call
 
- 
beforeAddCookieThis action will be performed each time beforeWebDriver.Options.addCookie(Cookie)- Parameters:
- options- - options to add cookie to
- cookie- - cookie to add
 
- 
afterAddCookieThis action will be performed each time afterWebDriver.Options.addCookie(Cookie)- Parameters:
- options- - options to add cookie to
- cookie- - cookie to add
 
- 
beforeDeleteCookieNamedThis action will be performed each time beforeWebDriver.Options.deleteCookieNamed(String)- Parameters:
- options- - options to delete cookie from
- name- - name of the cookie to delete
 
- 
afterDeleteCookieNamedThis action will be performed each time afterWebDriver.Options.deleteCookieNamed(String)- Parameters:
- options- - options to delete cookie from
- name- - name of the cookie to delete
 
- 
beforeDeleteCookieThis action will be performed each time beforeWebDriver.Options.deleteCookie(Cookie)- Parameters:
- options- - options to delete cookie from
- cookie- - cookie to delete
 
- 
afterDeleteCookieThis action will be performed each time afterWebDriver.Options.deleteCookie(Cookie)- Parameters:
- options- - options to delete cookie from
- cookie- - cookie to delete
 
- 
beforeDeleteAllCookiesThis action will be performed each time beforeWebDriver.Options.deleteAllCookies()- Parameters:
- options- - options to delete cookies from
 
- 
afterDeleteAllCookiesThis action will be performed each time afterWebDriver.Options.deleteAllCookies()- Parameters:
- options- - options to delete cookies from
 
- 
beforeGetCookiesThis action will be performed each time beforeWebDriver.Options.getCookies()- Parameters:
- options- - options to get cookies from
 
- 
afterGetCookiesThis action will be performed each time afterWebDriver.Options.getCookies()- Parameters:
- options- - options to get cookies from
- result- - set of cookies
 
- 
beforeGetCookieNamedThis action will be performed each time beforeWebDriver.Options.getCookieNamed(String)- Parameters:
- options- - options to get cookie from
- name- - name of the cookie to get
 
- 
afterGetCookieNamedThis action will be performed each time afterWebDriver.Options.getCookieNamed(String)- Parameters:
- options- - options to get cookie from
- name- - name of the cookie to get
- result- - cookie with the given name
 
- 
beforeAnyTimeoutsCallThis method will be called before any method of aWebDriver.Timeoutsinstance is- Parameters:
- timeouts- The timeouts object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
 
- 
afterAnyTimeoutsCalldefault void afterAnyTimeoutsCall(WebDriver.Timeouts timeouts, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver.Timeoutsinstance is- Parameters:
- timeouts- The timeouts object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
- result- The result of the method call
 
- 
beforeImplicitlyWaitThis action will be performed each time beforeWebDriver.Timeouts.implicitlyWait(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
afterImplicitlyWaitThis action will be performed each time afterWebDriver.Timeouts.implicitlyWait(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
beforeScriptTimeoutThis action will be performed each time beforeWebDriver.Timeouts.scriptTimeout(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
afterScriptTimeoutThis action will be performed each time afterWebDriver.Timeouts.scriptTimeout(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
beforePageLoadTimeoutThis action will be performed each time beforeWebDriver.Timeouts.pageLoadTimeout(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
afterPageLoadTimeoutThis action will be performed each time afterWebDriver.Timeouts.pageLoadTimeout(Duration)is called.- Parameters:
- timeouts- The timeouts object that will be called
- duration- The duration that will be passed to the method
 
- 
beforeAnyWindowCallThis method will be called before any method of aWebDriver.Windowinstance is- Parameters:
- window- The window object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
 
- 
afterAnyWindowCalldefault void afterAnyWindowCall(WebDriver.Window window, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver.Windowinstance is- Parameters:
- window- The window object that will be called
- method- The method that will be called
- args- The arguments that will be passed to the method
- result- The result of the method call
 
- 
beforeGetSizeThis action will be performed each time beforeWebDriver.Window.getSize()is called.- Parameters:
- window- The window object that will be called
 
- 
afterGetSizeThis action will be performed each time afterWebDriver.Window.getSize()is called.- Parameters:
- window- The window object that will be called
- result- The result of the method call
 
- 
beforeSetSizeThis action will be performed each time beforeWebDriver.Window.setSize(Dimension)is called.- Parameters:
- window- The window object that will be called
- size- The size that will be passed to the method
 
- 
afterSetSizeThis action will be performed each time afterWebDriver.Window.setSize(Dimension)is called.- Parameters:
- window- The window object that will be called
- size- The size that will be passed to the method
 
- 
beforeGetPositionThis action will be performed each time beforeWebDriver.Window.getPosition()is called.- Parameters:
- window- The window object that will be called
 
- 
afterGetPositionThis action will be performed each time afterWebDriver.Window.getPosition()is called.- Parameters:
- window- The window object that will be called
- result- The result of the method call
 
- 
beforeSetPositionThis action will be performed each time beforeWebDriver.Window.setPosition(Point)is called.- Parameters:
- window- The window object that will be called
- position- The position that will be passed to the method
 
- 
afterSetPositionThis action will be performed each time afterWebDriver.Window.setPosition(Point)is called.- Parameters:
- window- The window object that will be called
- position- The position that will be passed to the method
 
- 
beforeMaximizeThis action will be performed each time beforeWebDriver.Window.maximize()is called.- Parameters:
- window- The window object that will be called
 
- 
afterMaximizeThis action will be performed each time afterWebDriver.Window.maximize()is called.- Parameters:
- window- The window object that will be called
 
- 
beforeFullscreenThis action will be performed each time beforeWebDriver.Window.fullscreen()is called.- Parameters:
- window- The window object that will be called
 
- 
afterFullscreenThis action will be performed each time afterWebDriver.Window.fullscreen()is called.- Parameters:
- window- The window object that will be called
 
- 
beforeAnyTargetLocatorCalldefault void beforeAnyTargetLocatorCall(WebDriver.TargetLocator targetLocator, Method method, Object[] args) Called before any method inWebDriver.TargetLocatorclass.- Parameters:
- targetLocator- the target locator being used for the action
- method- the method being invoked
- args- the arguments to the method
 
- 
afterAnyTargetLocatorCalldefault void afterAnyTargetLocatorCall(WebDriver.TargetLocator targetLocator, Method method, Object[] args, Object result) Called after any method inWebDriver.TargetLocatorclass.- Parameters:
- targetLocator- the target locator being used for the action
- method- the method being invoked
- args- the arguments to the method
- result- the result of the method call
 
- 
beforeFrameThis action will be performed each time beforeWebDriver.TargetLocator.frame(int)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- index- The zero-based index.
 
- 
afterFrameThis action will be performed each time afterWebDriver.TargetLocator.frame(int)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- index- The zero-based index.
 
- 
beforeFrameThis action will be performed each time beforeWebDriver.TargetLocator.frame(String)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- nameOrId- The name of the frame window, the id of the <frame> or <iframe> element, or the (zero-based) index.
 
- 
afterFrameThis action will be performed each time afterWebDriver.TargetLocator.frame(String)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- nameOrId- The name of the frame window, the id of the <frame> or <iframe> element, or the (zero-based) index.
- driver- The current driver instance.
 
- 
beforeFrameThis action will be performed each time beforeWebDriver.TargetLocator.frame(WebElement)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- frameElement- The frame element to switch to.
 
- 
afterFramedefault void afterFrame(WebDriver.TargetLocator targetLocator, WebElement frameElement, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(WebElement)()} is called.- Parameters:
- targetLocator- The target locator being used for the action.
- frameElement- The frame element to switch to.
- driver- The current driver instance.
 
- 
beforeParentFrameThis action will be performed each time beforeWebDriver.TargetLocator.parentFrame()is called.- Parameters:
- targetLocator- The target locator being used for the action.
 
- 
afterParentFrameThis action will be performed each time afterWebDriver.TargetLocator.parentFrame()is called.- Parameters:
- targetLocator- The target locator being used for the action.
- driver- The current driver instance.
 
- 
beforeWindowThis action will be performed each time beforeWebDriver.TargetLocator.window(String).- Parameters:
- targetLocator- the target locator being used for the action
- nameOrHandle- The name of the window or the handle as returned by- WebDriver.getWindowHandle()or- nullif switching to a new window created by- WebDriver.TargetLocator.newWindow(WindowType)
 
- 
afterWindowdefault void afterWindow(WebDriver.TargetLocator targetLocator, String nameOrHandle, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.window(String).- Parameters:
- targetLocator- The target locator being used for the action.
- nameOrHandle- The name of the window or the handle as returned by- WebDriver.getWindowHandle()or- nullif switching to a new window created by- WebDriver.TargetLocator.newWindow(WindowType).
- driver- The current driver instance.
 
- 
beforeNewWindowThis action will be performed each time beforeWebDriver.TargetLocator.newWindow(WindowType)is called.- Parameters:
- targetLocator- The target locator being used for the action.
- typeHint- The type of new browser window to be created. The created window is not guaranteed to be of the requested type; if the driver does not support the requested type, a new browser window will be created of whatever type the driver does support.
 
- 
afterNewWindowdefault void afterNewWindow(WebDriver.TargetLocator targetLocator, WindowType typeHint, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.newWindow(WindowType)is called.- Parameters:
- targetLocator- The target locator being used for the action.
- typeHint- The type of new browser window to be created. The created window is not guaranteed to be of the requested type; if the driver does not support the requested type, a new browser window will be created of whatever type the driver does support.
- driver- The current driver instance.
 
- 
beforeDefaultContentThis action will be performed each time beforeWebDriver.TargetLocator.defaultContent()is called.- Parameters:
- targetLocator- The target locator being used for the action.
 
- 
afterDefaultContentThis action will be performed each time afterWebDriver.TargetLocator.defaultContent()is called.- Parameters:
- targetLocator- The target locator being used for the action.
- driver- The current driver instance.
 
- 
beforeActiveElementThis action will be performed each time beforeWebDriver.TargetLocator.activeElement()is called.- Parameters:
- targetLocator- The target locator being used for the action.
 
- 
afterActiveElementThis action will be performed each time afterWebDriver.TargetLocator.activeElement()is called.- Parameters:
- targetLocator- The target locator being used for the action.
- driver- The current driver instance.
 
- 
beforeAlertThis action will be performed each time beforeWebDriver.TargetLocator.alert()is called.- Parameters:
- targetLocator- The target locator being used for the action.
 
- 
afterAlertThis action will be performed each time afterWebDriver.TargetLocator.alert()is called.- Parameters:
- targetLocator- The target locator being used for the action.
- alert- The found alert.
 
 
-