class HttpCommandExecutor implements WebDriverCommandExecutor (View source)

Command executor talking to the standalone server via HTTP.

Constants

DEFAULT_HTTP_HEADERS

Properties

static protected $commands
static protected array $w3cCompliantCommands
protected string $url
protected resource $curl
protected bool $isW3cCompliant

Methods

__construct(string $url, string|null $http_proxy = null, int|null $http_proxy_port = null)

No description

disableW3cCompliance()

No description

setConnectionTimeout(int $timeout_in_ms)

Set timeout for the connect phase

setRequestTimeout(int $timeout_in_ms)

Set the maximum time of a request

execute(WebDriverCommand $command)

No description

string
getAddressOfRemoteServer()

No description

array
getCommandHttpOptions(WebDriverCommand $command)

No description

Details

__construct(string $url, string|null $http_proxy = null, int|null $http_proxy_port = null)

No description

Parameters

string $url
string|null $http_proxy
int|null $http_proxy_port

disableW3cCompliance()

No description

HttpCommandExecutor setConnectionTimeout(int $timeout_in_ms)

Set timeout for the connect phase

Parameters

int $timeout_in_ms

Timeout in milliseconds

Return Value

HttpCommandExecutor

HttpCommandExecutor setRequestTimeout(int $timeout_in_ms)

Set the maximum time of a request

Parameters

int $timeout_in_ms

Timeout in milliseconds

Return Value

HttpCommandExecutor

WebDriverResponse execute(WebDriverCommand $command)

No description

Parameters

WebDriverCommand $command

Return Value

WebDriverResponse

Exceptions

WebDriverException

string getAddressOfRemoteServer()

No description

Return Value

string

protected array getCommandHttpOptions(WebDriverCommand $command)

No description

Parameters

WebDriverCommand $command

Return Value

array