ChromeOptions
class ChromeOptions implements JsonSerializable (View source)
The class manages the capabilities in ChromeDriver.
Constants
CAPABILITY |
The key of chromeOptions in desired capabilities |
deprecated CAPABILITY_W3C |
|
Methods
Return a version of the class which can JSON serialized.
Sets the path of the Chrome executable. The path should be either absolute or relative to the location running ChromeDriver server.
No description
Add a Chrome extension to install on browser startup. Each path should be a packed Chrome extension.
No description
Sets an experimental option which has not exposed officially.
No description
No description
Details
array
jsonSerialize()
Return a version of the class which can JSON serialized.
ChromeOptions
setBinary(string $path)
Sets the path of the Chrome executable. The path should be either absolute or relative to the location running ChromeDriver server.
ChromeOptions
addArguments(array $arguments)
No description
ChromeOptions
addExtensions(array $paths)
Add a Chrome extension to install on browser startup. Each path should be a packed Chrome extension.
ChromeOptions
addEncodedExtensions(array $encoded_extensions)
No description
ChromeOptions
setExperimentalOption(string $name, mixed $value)
Sets an experimental option which has not exposed officially.
When using "prefs" to set Chrome preferences, please be aware they are so far not supported by Chrome running in headless mode, see https://bugs.chromium.org/p/chromium/issues/detail?id=775911
DesiredCapabilities
toCapabilities()
No description
ArrayObject|array
toArray()
No description