class DriverService (View source)

Start local WebDriver service (when remote WebDriver server is not used).

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

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

Exception

protected checkWasStarted(Process $process)

No description

Parameters

Process $process