class ShadowRoot implements WebDriverSearchContext (View source)

Constants

SHADOW_ROOT_IDENTIFIER

Shadow root identifier defined in the W3CWebDriver protocol.

Methods

__construct(RemoteExecuteMethod $executor, $id)

No description

static ShadowRoot
createFromResponse(RemoteExecuteMethod $executor, array $response)

No description

findElement(WebDriverBy $locator)

No description

findElements(WebDriverBy $locator)

No description

string
getID()

No description

Details

__construct(RemoteExecuteMethod $executor, $id)

No description

Parameters

RemoteExecuteMethod $executor
$id

static ShadowRoot createFromResponse(RemoteExecuteMethod $executor, array $response)

No description

Parameters

RemoteExecuteMethod $executor
array $response

Return Value

ShadowRoot

WebDriverElement findElement(WebDriverBy $locator)

No description

Parameters

WebDriverBy $locator

Return Value

WebDriverElement

NoSuchElementException is thrown in HttpCommandExecutor if no element is found.

WebDriverElement[] findElements(WebDriverBy $locator)

No description

Parameters

WebDriverBy $locator

Return Value

WebDriverElement[]

A list of all WebDriverElements, or an empty array if nothing matches

string getID()

No description

Return Value

string