HumHub Documentation (unofficial)

ChromeDriverService extends DriverService
in package

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

This will start new process of respective browser driver and take care of its lifecycle.

Table of Contents

Constants

CHROME_DRIVER_EXE_PROPERTY  = 'webdriver.chrome.driver'
The environment variable storing the path to the chrome driver executable.
CHROME_DRIVER_EXECUTABLE  = 'WEBDRIVER_CHROME_DRIVER'

Properties

$args  : array<string|int, mixed>
$environment  : array<string|int, mixed>
$executable  : string
$process  : Process|null
$url  : string

Methods

__construct()  : mixed
createDefaultService()  : static
getURL()  : string
isRunning()  : bool
start()  : DriverService
stop()  : DriverService
checkExecutable()  : string
checkWasStarted()  : mixed
setExecutable()  : mixed
createProcess()  : Process
isExecutable()  : bool
Check whether given file is executable directly or using system PATH

Constants

CHROME_DRIVER_EXE_PROPERTY

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

public mixed CHROME_DRIVER_EXE_PROPERTY = 'webdriver.chrome.driver'
Tags
deprecated

Use ChromeDriverService::CHROME_DRIVER_EXECUTABLE

CHROME_DRIVER_EXECUTABLE

public string CHROME_DRIVER_EXECUTABLE = 'WEBDRIVER_CHROME_DRIVER'

The environment variable storing the path to the chrome driver executable

Properties

Methods

__construct()

public __construct(string $executable, int $port[, array<string|int, mixed> $args = [] ][, array<string|int, mixed>|null $environment = null ]) : mixed
Parameters
$executable : string
$port : int

The given port the service should use.

$args : array<string|int, mixed> = []
$environment : array<string|int, mixed>|null = null

Use the system environment if it is null

createDefaultService()

public static createDefaultService() : static
Return values
static

checkExecutable()

protected static checkExecutable(string $executable) : string
Parameters
$executable : string
Tags
deprecated

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

Return values
string

setExecutable()

protected setExecutable(string $executable) : mixed
Parameters
$executable : string
Tags
throws
IOException

isExecutable()

Check whether given file is executable directly or using system PATH

private isExecutable(string $filename) : bool
Parameters
$filename : string
Return values
bool

        
On this page

Search results