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
shadowRootISearchContextThe wrapped shadow root element
namestringThe name of this Shadow Root object
Exceptions
- ArgumentNullException
If
shadowRootis null
Properties
Name
Gets the human-readable name of the current object.
public string Name { get; }
Property Value
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; }