FirefoxOptions
class FirefoxOptions implements JsonSerializable (View source)
Class to manage Firefox-specific capabilities
Constants
CAPABILITY |
|
OPTION_ARGS |
|
OPTION_PREFS |
|
Methods
__construct()
No description
setOption(string $name, mixed $value)
Directly set firefoxOptions.
addArguments(array $arguments)
Command line arguments to pass to the Firefox binary.
setPreference(string $name, string|bool|int $value)
Set Firefox preference (about:config entry).
array
toArray()
No description
jsonSerialize()
No description
Details
__construct()
No description
FirefoxOptions
setOption(string $name, mixed $value)
Directly set firefoxOptions.
Use addArguments
to add command line arguments and setPreference
to set Firefox about:config entry.
FirefoxOptions
addArguments(array $arguments)
Command line arguments to pass to the Firefox binary.
These must include the leading dash (-) where required, e.g. ['-headless'].
FirefoxOptions
setPreference(string $name, string|bool|int $value)
Set Firefox preference (about:config entry).
array
toArray()
No description
jsonSerialize()
No description