Table of Contents

Class WebElementEventArgs

Namespace
OpenQA.Selenium.Support.Events
Assembly
WebDriver.Support.dll

Provides data for events relating to elements.

public class WebElementEventArgs : EventArgs
Inheritance
WebElementEventArgs
Derived
Inherited Members

Constructors

WebElementEventArgs(IWebDriver, IWebElement)

Initializes a new instance of the WebElementEventArgs class.

public WebElementEventArgs(IWebDriver driver, IWebElement element)

Parameters

driver IWebDriver

The WebDriver instance used for the action.

element IWebElement

The element used for the action.

Exceptions

ArgumentNullException

If driver or element are null.

Properties

Driver

Gets the WebDriver instance used for the action.

public IWebDriver Driver { get; }

Property Value

IWebDriver

Element

Gets the element used for the action.

public IWebElement Element { get; }

Property Value

IWebElement