HumHub Documentation (unofficial)

ChromeDevToolsDriver
in package

Provide access to Chrome DevTools Protocol (CDP) commands via HTTP endpoint of Chromedriver.

Tags
see
https://chromedevtools.github.io/devtools-protocol/

Table of Contents

Constants

SEND_COMMAND  = ['method' => 'POST', 'url' => '/session/:sessionId/goog/cdp/execute']

Properties

$driver  : RemoteWebDriver

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

Methods

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


        
On this page

Search results