HumHub Documentation (unofficial)

FirefoxOptions
in package
implements JsonSerializable

Class to manage Firefox-specific capabilities

Tags
see
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions

Table of Contents

Interfaces

JsonSerializable

Constants

CAPABILITY  = 'moz:firefoxOptions'
OPTION_ARGS  = 'args'
OPTION_PREFS  = 'prefs'
OPTION_PROFILE  = 'profile'

Properties

$arguments  : array<string|int, mixed>
$options  : array<string|int, mixed>
$preferences  : array<string|int, mixed>
$profile  : FirefoxProfile

Methods

__construct()  : mixed
addArguments()  : self
Command line arguments to pass to the Firefox binary.
jsonSerialize()  : mixed
setOption()  : self
Directly set firefoxOptions.
setPreference()  : self
Set Firefox preference (about:config entry).
setProfile()  : self
toArray()  : array<string|int, mixed>

Constants

CAPABILITY

public string CAPABILITY = 'moz:firefoxOptions'

The key of FirefoxOptions in desired capabilities

Properties

Methods

setOption()

Directly set firefoxOptions.

public setOption(string $name, mixed $value) : self

Use addArguments to add command line arguments and setPreference to set Firefox about:config entry.

Parameters
$name : string
$value : mixed
Return values
self

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results