A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://seleniumhq.github.io/selenium/docs/api/dotnet/webdriver/OpenQA.Selenium.ShadowRoot.html below:

Class ShadowRoot

Class ShadowRoot
Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides a representation of an element's shadow root.

public class ShadowRoot : ISearchContext, IWrapsDriver
Inheritance

ShadowRoot

Implements
Inherited Members
Constructors ShadowRoot(WebDriver, string)

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.

Exceptions
ArgumentNullException

If parentDriver or id are null.

Fields ShadowRootReferencePropertyName

The property name that represents an element shadow root in the wire protocol.

public const string ShadowRootReferencePropertyName = "shadow-6066-11e4-a52e-4f735466cecf"
Field Value
string
Properties WrappedDriver

Gets the IWebDriver driving this shadow root.

public IWebDriver WrappedDriver { get; }
Property Value
IWebDriver
Methods FindElement(By)

Finds the first IWebElement using the given method.

public IWebElement FindElement(By by)
Parameters
by By

The locating mechanism to use.

Returns
IWebElement

The first matching IWebElement on the current context.

Exceptions
ArgumentNullException

If by is null.

NoSuchElementException

If no element matches the criteria.

FindElements(By)

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.

Returns
ReadOnlyCollection<IWebElement>

A ReadOnlyCollection<T> of all WebElements matching the current criteria, or an empty list if nothing matches.

Exceptions
ArgumentNullException

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