Table of Contents

Class FindElementEventArgs

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

Provides data for events related to finding elements.

public class FindElementEventArgs : EventArgs
Inheritance
FindElementEventArgs
Inherited Members

Constructors

FindElementEventArgs(IWebDriver, By)

Initializes a new instance of the FindElementEventArgs class.

public FindElementEventArgs(IWebDriver driver, By method)

Parameters

driver IWebDriver

The WebDriver instance used in finding elements.

method By

The By object containing the method used to find elements.

Exceptions

ArgumentNullException

If driver or method are null.

FindElementEventArgs(IWebDriver, IWebElement?, By)

Initializes a new instance of the FindElementEventArgs class.

public FindElementEventArgs(IWebDriver driver, IWebElement? element, By method)

Parameters

driver IWebDriver

The WebDriver instance used in finding elements.

element IWebElement

The parent element used as the context for the search, or null if none exists.

method By

The By object containing the method used to find elements.

Exceptions

ArgumentNullException

If driver or method are null.

Properties

Driver

Gets the WebDriver instance used in finding elements.

public IWebDriver Driver { get; }

Property Value

IWebDriver

Element

Gets the parent element used as the context for the search, or null if no element is associated.

public IWebElement? Element { get; }

Property Value

IWebElement

FindMethod

Gets the By object containing the method used to find elements.

public By FindMethod { get; }

Property Value

By