ChromeOptions
class ChromeOptions (View source)
The class manages the capabilities in ChromeDriver.
Constants
deprecated CAPABILITY |
The key of chrome options desired capabilities (in legacy OSS JsonWire protocol) |
CAPABILITY_W3C |
The key of chrome options desired capabilities (in W3C compatible protocol) |
Methods
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
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
array
toArray()
No description