Class FindElementEventArgs
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
IWebDriverThe WebDriver instance used in finding elements.
method
ByThe By object containing the method used to find elements.
Exceptions
- ArgumentNullException
If
driver
ormethod
are null.
FindElementEventArgs(IWebDriver, IWebElement?, By)
Initializes a new instance of the FindElementEventArgs class.
public FindElementEventArgs(IWebDriver driver, IWebElement? element, By method)
Parameters
driver
IWebDriverThe WebDriver instance used in finding elements.
element
IWebElementThe parent element used as the context for the search, or null if none exists.
method
ByThe By object containing the method used to find elements.
Exceptions
- ArgumentNullException
If
driver
ormethod
are null.
Properties
Driver
Gets the WebDriver instance used in finding elements.
public IWebDriver Driver { get; }
Property Value
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
FindMethod
Gets the By object containing the method used to find elements.
public By FindMethod { get; }