Class EventFiringWebDriver
- java.lang.Object
-
- org.openqa.selenium.support.events.EventFiringWebDriver
-
- All Implemented Interfaces:
org.openqa.selenium.HasCapabilities
,org.openqa.selenium.interactions.HasInputDevices
,org.openqa.selenium.interactions.HasTouchScreen
,org.openqa.selenium.interactions.Interactive
,org.openqa.selenium.JavascriptExecutor
,org.openqa.selenium.SearchContext
,org.openqa.selenium.TakesScreenshot
,org.openqa.selenium.WebDriver
,org.openqa.selenium.WrapsDriver
@Deprecated public class EventFiringWebDriver extends java.lang.Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WrapsDriver, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.interactions.HasTouchScreen, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.HasCapabilities
Deprecated.UseEventFiringDecorator
andWebDriverListener
insteadA wrapper around an arbitraryWebDriver
instance which supports registering of aWebDriverEventListener
, e.g. for logging purposes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
-
-
Constructor Summary
Constructors Constructor Description EventFiringWebDriver(org.openqa.selenium.WebDriver driver)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.java.lang.Object
executeAsyncScript(java.lang.String script, java.lang.Object... args)
Deprecated.java.lang.Object
executeScript(java.lang.String script, java.lang.Object... args)
Deprecated.org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
Deprecated.java.util.List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
Deprecated.void
get(java.lang.String url)
Deprecated.org.openqa.selenium.Capabilities
getCapabilities()
Deprecated.java.lang.String
getCurrentUrl()
Deprecated.org.openqa.selenium.interactions.Keyboard
getKeyboard()
Deprecated.org.openqa.selenium.interactions.Mouse
getMouse()
Deprecated.java.lang.String
getPageSource()
Deprecated.<X> X
getScreenshotAs(org.openqa.selenium.OutputType<X> target)
Deprecated.java.lang.String
getTitle()
Deprecated.org.openqa.selenium.interactions.TouchScreen
getTouch()
Deprecated.java.lang.String
getWindowHandle()
Deprecated.java.util.Set<java.lang.String>
getWindowHandles()
Deprecated.org.openqa.selenium.WebDriver
getWrappedDriver()
Deprecated.org.openqa.selenium.WebDriver.Options
manage()
Deprecated.org.openqa.selenium.WebDriver.Navigation
navigate()
Deprecated.void
perform(java.util.Collection<org.openqa.selenium.interactions.Sequence> actions)
Deprecated.void
quit()
Deprecated.EventFiringWebDriver
register(WebDriverEventListener eventListener)
Deprecated.void
resetInputState()
Deprecated.org.openqa.selenium.WebDriver.TargetLocator
switchTo()
Deprecated.EventFiringWebDriver
unregister(WebDriverEventListener eventListener)
Deprecated.
-
-
-
Method Detail
-
register
public EventFiringWebDriver register(WebDriverEventListener eventListener)
Deprecated.- Parameters:
eventListener
- the event listener to register- Returns:
- this for method chaining.
-
unregister
public EventFiringWebDriver unregister(WebDriverEventListener eventListener)
Deprecated.- Parameters:
eventListener
- the event listener to unregister- Returns:
- this for method chaining.
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()
Deprecated.- Specified by:
getWrappedDriver
in interfaceorg.openqa.selenium.WrapsDriver
-
get
public void get(java.lang.String url)
Deprecated.- Specified by:
get
in interfaceorg.openqa.selenium.WebDriver
-
getCurrentUrl
public java.lang.String getCurrentUrl()
Deprecated.- Specified by:
getCurrentUrl
in interfaceorg.openqa.selenium.WebDriver
-
getTitle
public java.lang.String getTitle()
Deprecated.- Specified by:
getTitle
in interfaceorg.openqa.selenium.WebDriver
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
Deprecated.- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElements
in interfaceorg.openqa.selenium.WebDriver
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
Deprecated.- Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElement
in interfaceorg.openqa.selenium.WebDriver
-
getPageSource
public java.lang.String getPageSource()
Deprecated.- Specified by:
getPageSource
in interfaceorg.openqa.selenium.WebDriver
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceorg.openqa.selenium.WebDriver
-
quit
public void quit()
Deprecated.- Specified by:
quit
in interfaceorg.openqa.selenium.WebDriver
-
getWindowHandles
public java.util.Set<java.lang.String> getWindowHandles()
Deprecated.- Specified by:
getWindowHandles
in interfaceorg.openqa.selenium.WebDriver
-
getWindowHandle
public java.lang.String getWindowHandle()
Deprecated.- Specified by:
getWindowHandle
in interfaceorg.openqa.selenium.WebDriver
-
executeScript
public java.lang.Object executeScript(java.lang.String script, java.lang.Object... args)
Deprecated.- Specified by:
executeScript
in interfaceorg.openqa.selenium.JavascriptExecutor
-
executeAsyncScript
public java.lang.Object executeAsyncScript(java.lang.String script, java.lang.Object... args)
Deprecated.- Specified by:
executeAsyncScript
in interfaceorg.openqa.selenium.JavascriptExecutor
-
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target) throws org.openqa.selenium.WebDriverException
Deprecated.- Specified by:
getScreenshotAs
in interfaceorg.openqa.selenium.TakesScreenshot
- Throws:
org.openqa.selenium.WebDriverException
-
switchTo
public org.openqa.selenium.WebDriver.TargetLocator switchTo()
Deprecated.- Specified by:
switchTo
in interfaceorg.openqa.selenium.WebDriver
-
navigate
public org.openqa.selenium.WebDriver.Navigation navigate()
Deprecated.- Specified by:
navigate
in interfaceorg.openqa.selenium.WebDriver
-
manage
public org.openqa.selenium.WebDriver.Options manage()
Deprecated.- Specified by:
manage
in interfaceorg.openqa.selenium.WebDriver
-
getKeyboard
public org.openqa.selenium.interactions.Keyboard getKeyboard()
Deprecated.- Specified by:
getKeyboard
in interfaceorg.openqa.selenium.interactions.HasInputDevices
-
getMouse
public org.openqa.selenium.interactions.Mouse getMouse()
Deprecated.- Specified by:
getMouse
in interfaceorg.openqa.selenium.interactions.HasInputDevices
-
getTouch
public org.openqa.selenium.interactions.TouchScreen getTouch()
Deprecated.- Specified by:
getTouch
in interfaceorg.openqa.selenium.interactions.HasTouchScreen
-
perform
public void perform(java.util.Collection<org.openqa.selenium.interactions.Sequence> actions)
Deprecated.- Specified by:
perform
in interfaceorg.openqa.selenium.interactions.Interactive
-
resetInputState
public void resetInputState()
Deprecated.- Specified by:
resetInputState
in interfaceorg.openqa.selenium.interactions.Interactive
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities()
Deprecated.- Specified by:
getCapabilities
in interfaceorg.openqa.selenium.HasCapabilities
-
-