EventFiringWebDriver ClassWebDriver
A wrapper around an arbitrary WebDriver instance which supports registering for events, e.g. for logging purposes.
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.Support.EventsEventFiringWebDriver

Namespace: OpenQA.Selenium.Support.Events
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax

public class EventFiringWebDriver : IWebDriver, 
	ISearchContext, IDisposable, IJavaScriptExecutor, ITakesScreenshot, IWrapsDriver

The EventFiringWebDriver type exposes the following members.

Constructors

  NameDescription
Public methodEventFiringWebDriver
Initializes a new instance of the EventFiringWebDriver class.
Top
Properties

  NameDescription
Public propertyCurrentWindowHandle
Gets the current window handle, which is an opaque handle to this window that uniquely identifies it within this driver instance.
Public propertyPageSource
Gets the source of the page last loaded by the browser.
Public propertyTitle
Gets the title of the current browser window.
Public propertyUrl
Gets or sets the URL the browser is currently displaying.
Public propertyWindowHandles
Gets the window handles of open browser windows.
Public propertyWrappedDriver
Gets the IWebDriver wrapped by this EventsFiringWebDriver instance.
Top
Methods

  NameDescription
Public methodClose
Close the current window, quitting the browser if it is the last window currently open.
Public methodDispose
Frees all managed and unmanaged resources used by this instance.
Protected methodDispose(Boolean)
Frees all managed and, optionally, unmanaged resources used by this instance.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteAsyncScript
Executes JavaScript asynchronously in the context of the currently selected frame or window.
Public methodExecuteScript
Executes JavaScript in the context of the currently selected frame or window.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindElement
Find the first IWebElement using the given method.
Public methodFindElements
Find all IWebElements within the current context using the given mechanism.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetScreenshot
Gets a Screenshot object representing the image of the page on the screen.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodManage
Instructs the driver to change its settings.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNavigate
Instructs the driver to navigate the browser to another location.
Protected methodOnElementClicked
Raises the ElementClicked event.
Protected methodOnElementClicking
Raises the ElementClicking event.
Protected methodOnElementValueChanged
Raises the ElementValueChanged event.
Protected methodOnElementValueChanging
Raises the ElementValueChanging event.
Protected methodOnException
Raises the ExceptionThrown event.
Protected methodOnFindElementCompleted
Raises the FindElementCompleted event.
Protected methodOnFindingElement
Raises the FindingElement event.
Protected methodOnNavigated
Raises the Navigated event.
Protected methodOnNavigatedBack
Raises the NavigatedBack event.
Protected methodOnNavigatedForward
Raises the NavigatedForward event.
Protected methodOnNavigating
Raises the Navigating event.
Protected methodOnNavigatingBack
Raises the NavigatingBack event.
Protected methodOnNavigatingForward
Raises the NavigatingForward event.
Protected methodOnScriptExecuted
Raises the ScriptExecuted event.
Protected methodOnScriptExecuting
Raises the ScriptExecuting event.
Public methodQuit
Quits this driver, closing every associated window.
Public methodSwitchTo
Instructs the driver to send future commands to a different frame or window.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Events

  NameDescription
Public eventElementClicked
Fires after the driver has clicked on an element.
Public eventElementClicking
Fires before the driver clicks on an element.
Public eventElementValueChanged
Fires after the driver has changed the value of an element via Clear(), SendKeys() or Toggle().
Public eventElementValueChanging
Fires before the driver changes the value of an element via Clear(), SendKeys() or Toggle().
Public eventExceptionThrown
Fires when an exception is thrown.
Public eventFindElementCompleted
Fires after the driver completes finding an element.
Public eventFindingElement
Fires before the driver starts to find an element.
Public eventNavigated
Fires after the driver completes navigation
Public eventNavigatedBack
Fires after the driver completes navigation back one entry in the browser history list.
Public eventNavigatedForward
Fires after the driver completes navigation forward one entry in the browser history list.
Public eventNavigating
Fires before the driver begins navigation.
Public eventNavigatingBack
Fires before the driver begins navigation back one entry in the browser history list.
Public eventNavigatingForward
Fires before the driver begins navigation forward one entry in the browser history list.
Public eventScriptExecuted
Fires after a script is executed.
Public eventScriptExecuting
Fires before a script is executed.
Top
Extension Methods

  NameDescription
Public Extension MethodExecuteJavaScript(String, Object)Overloaded.
Executes JavaScript in the context of the currently selected frame or window
(Defined by WebDriverExtensions.)
Public Extension MethodExecuteJavaScriptT(String, Object)Overloaded.
Executes JavaScript in the context of the currently selected frame or window
(Defined by WebDriverExtensions.)
Public Extension MethodTakeScreenshot
Gets a Screenshot object representing the image of the page on the screen.
(Defined by WebDriverExtensions.)
Top
See Also

Reference