ShadowRootPromise

ShadowRootPromise is a promise that will be fulfilled with a WebElement. This serves as a forward proxy on ShadowRoot, allowing calls to be scheduled without directly on this instance before the underlying ShadowRoot has been fulfilled.

Constructor

new ShadowRootPromise(drivernon-null, shadownon-null)

Parameters:
NameTypeDescription
driverWebDriver

The parent WebDriver instance for this element.

shadowPromise.<!ShadowRoot>

A promise that will resolve to the promised element.

Implements

Members

catch

then

Methods

getId()

Defers returning the ShadowRoot ID until the wrapped WebElement has been resolved.