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
driverIWebDriverThe WebDriver instance used in finding elements.
methodByThe By object containing the method used to find elements.
Exceptions
- ArgumentNullException
If
driverormethodare null.
FindElementEventArgs(IWebDriver, IWebElement?, By)
Initializes a new instance of the FindElementEventArgs class.
public FindElementEventArgs(IWebDriver driver, IWebElement? element, By method)
Parameters
driverIWebDriverThe WebDriver instance used in finding elements.
elementIWebElementThe parent element used as the context for the search, or null if none exists.
methodByThe By object containing the method used to find elements.
Exceptions
- ArgumentNullException
If
driverormethodare 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; }