Provides a representation of an element's shadow root.
public class ShadowRoot : ISearchContext, IWrapsDriver
ShadowRoot
Initializes a new instance of the ShadowRoot class.
public ShadowRoot(WebDriver parentDriver, string id)
Parameters
parentDriver
WebDriver
The WebDriver instance that is driving this shadow root.
id
string
The ID value provided to identify the shadow root.
If parentDriver
or id
are null.
The property name that represents an element shadow root in the wire protocol.
public const string ShadowRootReferencePropertyName = "shadow-6066-11e4-a52e-4f735466cecf"
Field Value
Gets the IWebDriver driving this shadow root.
public IWebDriver WrappedDriver { get; }
Property Value
Finds the first IWebElement using the given method.
public IWebElement FindElement(By by)
Parameters
by
By
The locating mechanism to use.
The first matching IWebElement on the current context.
If by
is null.
If no element matches the criteria.
Finds all IWebElements within the current context using the given mechanism.
public ReadOnlyCollection<IWebElement> FindElements(By by)
Parameters
by
By
The locating mechanism to use.
A ReadOnlyCollection<T> of all WebElements matching the current criteria, or an empty list if nothing matches.
If by
is null.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4