Table of Contents

Class GetShadowRootEventArgs

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

Provides data for events related to getting shadow root of the web element.

public class GetShadowRootEventArgs : EventArgs
Inheritance
GetShadowRootEventArgs
Inherited Members

Constructors

GetShadowRootEventArgs(IWebDriver, ISearchContext)

Initializes a new instance of the GetShadowRootEventArgs class.

public GetShadowRootEventArgs(IWebDriver driver, ISearchContext searchContext)

Parameters

driver IWebDriver

The WebDriver instance used in the current context.

searchContext ISearchContext

The parent searc context used as the context for getting shadow root.

Exceptions

ArgumentNullException

If driver or searchContext are null.

Properties

Driver

Gets the WebDriver instance used in the current context.

public IWebDriver Driver { get; }

Property Value

IWebDriver

SearchContext

Gets the parent search context used as the context for getting shadow root.

public ISearchContext SearchContext { get; }

Property Value

ISearchContext