Interface WebDriverEventListener
- All Known Implementing Classes:
AbstractWebDriverEventListener
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterAlertAccept(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time afterAlert.accept()voidafterAlertDismiss(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time beforeAlert.dismiss()voidafterChangeValueOf(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, CharSequence[] keysToSend) Deprecated.Called afterWebElement.clear(),WebElement.sendKeys(...)}.voidafterClickOn(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called afterWebElement.click().voidafterFindBy(org.openqa.selenium.By by, org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called afterWebDriver.findElement(...), orWebDriver.findElements(...), orWebElement.findElement(...), orWebElement.findElements(...).<X> voidafterGetScreenshotAs(org.openqa.selenium.OutputType<X> target, X screenshot) Deprecated.Called afterTakesScreenshot.getScreenshotAs(OutputType)allows the implementation to determine which type of output was generated and to access the output itselfvoidafterGetText(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, String text) Deprecated.Called right afterWebElement.getText()method is being calledvoidafterNavigateBack(org.openqa.selenium.WebDriver driver) Deprecated.Called afternavigate().back().voidafterNavigateForward(org.openqa.selenium.WebDriver driver) Deprecated.Called afternavigate().forward().voidafterNavigateRefresh(org.openqa.selenium.WebDriver driver) Deprecated.Called afternavigate().refresh().voidafterNavigateTo(String url, org.openqa.selenium.WebDriver driver) Deprecated.Called afterget(String url)respectivelynavigate().to(String url).voidafterScript(String script, org.openqa.selenium.WebDriver driver) Deprecated.Called afterRemoteWebDriver.executeScript(String, Object...).voidafterSwitchToWindow(String windowName, org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time afterWebDriver.TargetLocator.window(String)voidbeforeAlertAccept(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time beforeAlert.accept()voidbeforeAlertDismiss(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time afterAlert.dismiss()voidbeforeChangeValueOf(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, CharSequence[] keysToSend) Deprecated.Called beforeWebElement.clear(),WebElement.sendKeys(...).voidbeforeClickOn(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebElement.click().voidbeforeFindBy(org.openqa.selenium.By by, org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebDriver.findElement(...), orWebDriver.findElements(...), orWebElement.findElement(...), orWebElement.findElements(...).<X> voidbeforeGetScreenshotAs(org.openqa.selenium.OutputType<X> target) Deprecated.Called beforeTakesScreenshot.getScreenshotAs(OutputType)allows the implementation to determine which type of output will be generatedvoidbeforeGetText(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebElement.getText()method is being calledvoidbeforeNavigateBack(org.openqa.selenium.WebDriver driver) Deprecated.Called beforenavigate().back().voidbeforeNavigateForward(org.openqa.selenium.WebDriver driver) Deprecated.Called beforenavigate().forward().voidbeforeNavigateRefresh(org.openqa.selenium.WebDriver driver) Deprecated.Called beforenavigate().refresh().voidbeforeNavigateTo(String url, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeget(String url)respectivelynavigate().to(String url).voidbeforeScript(String script, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeRemoteWebDriver.executeScript(String, Object...)voidbeforeSwitchToWindow(String windowName, org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time beforeWebDriver.TargetLocator.window(String)voidonException(Throwable throwable, org.openqa.selenium.WebDriver driver) Deprecated.Called whenever an exception would be thrown.
-
Method Details
-
beforeAlertAccept
void beforeAlertAccept(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time beforeAlert.accept()- Parameters:
driver- WebDriver
-
afterAlertAccept
void afterAlertAccept(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time afterAlert.accept()- Parameters:
driver- WebDriver
-
afterAlertDismiss
void afterAlertDismiss(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time beforeAlert.dismiss()- Parameters:
driver- WebDriver
-
beforeAlertDismiss
void beforeAlertDismiss(org.openqa.selenium.WebDriver driver) Deprecated.This action will be performed each time afterAlert.dismiss()- Parameters:
driver- WebDriver
-
beforeFindBy
void beforeFindBy(org.openqa.selenium.By by, org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebDriver.findElement(...), orWebDriver.findElements(...), orWebElement.findElement(...), orWebElement.findElements(...).- Parameters:
element- will benull, if a find method ofWebDriveris called.by- locator being useddriver- WebDriver
-
afterFindBy
void afterFindBy(org.openqa.selenium.By by, org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called afterWebDriver.findElement(...), orWebDriver.findElements(...), orWebElement.findElement(...), orWebElement.findElements(...).- Parameters:
element- will benull, if a find method ofWebDriveris called.by- locator being useddriver- WebDriver
-
beforeClickOn
void beforeClickOn(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebElement.click().- Parameters:
driver- WebDriverelement- the WebElement being used for the action
-
afterClickOn
void afterClickOn(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called afterWebElement.click(). Not called, if an exception is thrown.- Parameters:
driver- WebDriverelement- the WebElement being used for the action
-
beforeChangeValueOf
void beforeChangeValueOf(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, CharSequence[] keysToSend) Deprecated.Called beforeWebElement.clear(),WebElement.sendKeys(...).- Parameters:
driver- WebDriverelement- the WebElement being used for the action
-
afterChangeValueOf
void afterChangeValueOf(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, CharSequence[] keysToSend) Deprecated.Called afterWebElement.clear(),WebElement.sendKeys(...)}. Not called, if an exception is thrown.- Parameters:
driver- WebDriverelement- the WebElement being used for the action
-
beforeScript
Deprecated.Called beforeRemoteWebDriver.executeScript(String, Object...)- Parameters:
driver- WebDriverscript- the script to be executed
-
afterScript
Deprecated.Called afterRemoteWebDriver.executeScript(String, Object...). Not called if an exception is thrown- Parameters:
driver- WebDriverscript- the script that was executed
-
beforeSwitchToWindow
Deprecated.This action will be performed each time beforeWebDriver.TargetLocator.window(String)- Parameters:
windowName- The name of the window or the handle as returned byWebDriver.getWindowHandle()ornullif switching to a new window created byWebDriver.TargetLocator.newWindow(WindowType)driver- WebDriver
-
afterSwitchToWindow
Deprecated.This action will be performed each time afterWebDriver.TargetLocator.window(String)- Parameters:
windowName- The name of the window or the handle as returned byWebDriver.getWindowHandle()ornullif switching to a new window created byWebDriver.TargetLocator.newWindow(WindowType)driver- WebDriver
-
onException
Deprecated.Called whenever an exception would be thrown.- Parameters:
driver- WebDriverthrowable- the exception that will be thrown
-
beforeGetScreenshotAs
<X> void beforeGetScreenshotAs(org.openqa.selenium.OutputType<X> target) Deprecated.Called beforeTakesScreenshot.getScreenshotAs(OutputType)allows the implementation to determine which type of output will be generated- Type Parameters:
X- Return type for getScreenshotAs.- Parameters:
target- target type, @see OutputType
-
afterGetScreenshotAs
<X> void afterGetScreenshotAs(org.openqa.selenium.OutputType<X> target, X screenshot) Deprecated.Called afterTakesScreenshot.getScreenshotAs(OutputType)allows the implementation to determine which type of output was generated and to access the output itself- Type Parameters:
X- Return type for getScreenshotAs.- Parameters:
target- target type, @see OutputTypescreenshot- screenshot output of the specified type
-
beforeGetText
void beforeGetText(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver) Deprecated.Called beforeWebElement.getText()method is being called- Parameters:
element- -WebElementagainst which call is being madedriver- - instance ofWebDriver
-
afterGetText
void afterGetText(org.openqa.selenium.WebElement element, org.openqa.selenium.WebDriver driver, String text) Deprecated.Called right afterWebElement.getText()method is being called- Parameters:
element- -WebElementagainst which call is being madedriver- - instance ofWebDrivertext- -Stringobject extracted from respectiveWebElement
-
EventFiringDecoratorandWebDriverListenerinstead