MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ShadowRoot

Method ShadowRoot

dotnet/src/webdriver/ShadowRoot.cs:45–49  ·  view source on GitHub ↗

Initializes a new instance of the class. The instance that is driving this shadow root. The ID value provided to identify the shadow root. If or are .</ex

(WebDriver parentDriver, string id)

Source from the content-addressed store, hash-verified

43 /// <param name="id">The ID value provided to identify the shadow root.</param>
44 /// <exception cref="ArgumentNullException">If <paramref name="parentDriver"/> or <paramref name="id"/> are <see langword="null"/>.</exception>
45 public ShadowRoot(WebDriver parentDriver, string id)
46 {
47 this.driver = parentDriver ?? throw new ArgumentNullException(nameof(parentDriver));
48 this.shadowRootId = id ?? throw new ArgumentNullException(nameof(id));
49 }
50
51 /// <summary>
52 /// Gets the <see cref="IWebDriver"/> driving this shadow root.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected