class ChromeDriverService extends DriverService (View source)

Constants

deprecated CHROME_DRIVER_EXE_PROPERTY

The environment variable storing the path to the chrome driver executable.

CHROME_DRIVER_EXECUTABLE

internal DEFAULT_EXECUTABLE

Methods

__construct(string $executable, int $port, array $args = [], array|null $environment = null)

No description

string
getURL()

No description

start()

No description

stop()

No description

bool
isRunning()

No description

static string
checkExecutable(string $executable) deprecated

No description

setExecutable(string $executable)

No description

checkWasStarted(Process $process)

No description

createDefaultService()

No description

Details

__construct(string $executable, int $port, array $args = [], array|null $environment = null)

No description

Parameters

string $executable
int $port

The given port the service should use.

array $args
array|null $environment

Use the system environment if it is null

string getURL()

No description

Return Value

string

DriverService start()

No description

Return Value

DriverService

DriverService stop()

No description

Return Value

DriverService

bool isRunning()

No description

Return Value

bool

static protected string checkExecutable(string $executable) deprecated

deprecated Has no effect. Will be removed in next major version. Executable is now checked when calling setExecutable().

No description

Parameters

string $executable

Return Value

string

protected setExecutable(string $executable)

No description

Parameters

string $executable

Exceptions

IOException

protected checkWasStarted(Process $process)

No description

Parameters

Process $process

static ChromeDriverService createDefaultService()

No description

Return Value

ChromeDriverService