ShadowRoot
in package
implements
WebDriverSearchContext
Table of Contents
Interfaces
- WebDriverSearchContext
- The interface for WebDriver and WebDriverElement which is able to search for WebDriverElement inside.
Constants
- SHADOW_ROOT_IDENTIFIER = 'shadow-6066-11e4-a52e-4f735466cecf'
- Shadow root identifier defined in the W3CWebDriver protocol.
Properties
- $executor : RemoteExecuteMethod
- $id : string
Methods
- __construct() : mixed
- createFromResponse() : self
- findElement() : RemoteWebElement
- Find the first WebDriverElement within this element using the given mechanism.
- findElements() : array<string|int, WebDriverElement>
- Find all WebDriverElements within this element using the given mechanism.
- getID() : string
Constants
SHADOW_ROOT_IDENTIFIER
Shadow root identifier defined in the W3CWebDriver protocol.
public
mixed
SHADOW_ROOT_IDENTIFIER
= 'shadow-6066-11e4-a52e-4f735466cecf'
Tags
Properties
$executor
private
RemoteExecuteMethod
$executor
$id
private
string
$id
Methods
__construct()
public
__construct(RemoteExecuteMethod $executor, mixed $id) : mixed
Parameters
- $executor : RemoteExecuteMethod
- $id : mixed
createFromResponse()
public
static createFromResponse(RemoteExecuteMethod $executor, array<string|int, mixed> $response) : self
Parameters
- $executor : RemoteExecuteMethod
- $response : array<string|int, mixed>
Return values
selffindElement()
Find the first WebDriverElement within this element using the given mechanism.
public
findElement(WebDriverBy $locator) : RemoteWebElement
Parameters
- $locator : WebDriverBy
Return values
RemoteWebElementfindElements()
Find all WebDriverElements within this element using the given mechanism.
public
findElements(WebDriverBy $locator) : array<string|int, WebDriverElement>
Parameters
- $locator : WebDriverBy
Return values
array<string|int, WebDriverElement>getID()
public
getID() : string