ChromeDevToolsDriver
in package
Provide access to Chrome DevTools Protocol (CDP) commands via HTTP endpoint of Chromedriver.
Tags
Table of Contents
Constants
- SEND_COMMAND = ['method' => 'POST', 'url' => '/session/:sessionId/goog/cdp/execute']
Properties
Methods
- __construct() : mixed
- execute() : array<string|int, mixed>
- Executes a Chrome DevTools command
Constants
SEND_COMMAND
public
mixed
SEND_COMMAND
= ['method' => 'POST', 'url' => '/session/:sessionId/goog/cdp/execute']
Properties
$driver
private
RemoteWebDriver
$driver
Methods
__construct()
public
__construct(RemoteWebDriver $driver) : mixed
Parameters
- $driver : RemoteWebDriver
execute()
Executes a Chrome DevTools command
public
execute(string $command[, array<string|int, mixed> $parameters = [] ]) : array<string|int, mixed>
Parameters
- $command : string
-
The DevTools command to execute
- $parameters : array<string|int, mixed> = []
-
Optional parameters to the command
Return values
array<string|int, mixed> —The result of the command