Table of Contents

Class ShadowRoot

Namespace
CSF.Screenplay.Selenium.Elements
Assembly
CSF.Screenplay.Selenium.dll

Implementation of IHasSearchContext which represents an HTML shadow-root node.

public class ShadowRoot : IHasSearchContext, IHasName
Inheritance
ShadowRoot
Implements
Inherited Members

Constructors

ShadowRoot(ISearchContext, string)

Initializes a new instance of ShadowRoot.

public ShadowRoot(ISearchContext shadowRoot, string name = null)

Parameters

shadowRoot ISearchContext

The wrapped shadow root element

name string

The name of this Shadow Root object

Exceptions

ArgumentNullException

If shadowRoot is null

Properties

Name

Gets the human-readable name of the current object.

public string Name { get; }

Property Value

string

Remarks

null is strongly discouraged here. All types which implement IHasName should return a non-null response from this property.

SearchContext

Gets the native Selenium search context.

public ISearchContext SearchContext { get; }

Property Value

ISearchContext

See Also