CAPABILITY
CAPABILITY
The key of chrome options in desired capabilities.
The class manages the capabilities in ChromeDriver.
setBinary(string $path) : \ChromeOptions
Sets the path of the Chrome executable. The path should be either absolute or relative to the location running ChromeDriver server.
| string | $path |
addArguments(array $arguments) : \ChromeOptions
| array | $arguments |
addExtensions(array $paths) : \ChromeOptions
Add a Chrome extension to install on browser startup. Each path should be a packed Chrome extension.
| array | $paths |
addEncodedExtensions(array $encoded_extensions) : \ChromeOptions
| array | $encoded_extensions | An array of base64 encoded of the |
setExperimentalOption(string $name, $value) : \ChromeOptions
Sets an experimental option which has not exposed officially.
| string | $name | |
| $value |
toCapabilities() : \DesiredCapabilities
The DesiredCapabilities for Chrome with this
options.
addExtension(string $path) : \ChromeOptions
Add a Chrome extension to install on browser startup. Each path should be a packed Chrome extension.
| string | $path |
addEncodedExtension(string $encoded_extension) : \ChromeOptions
| string | $encoded_extension | Base64 encoded of the extension. |