ChromeOptions
class ChromeOptions implements JsonSerializable (View source)
The class manages the capabilities in ChromeDriver.
Constants
CAPABILITY |
The key of chromeOptions in desired capabilities (in legacy OSS JsonWire protocol) |
CAPABILITY_W3C |
The key of chromeOptions in desired capabilities (in W3C compatible protocol) |
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.
DesiredCapabilities
toCapabilities()
No description
ArrayObject|array
toArray()
No description