selenium-webdriver/chrome~ Options

Class for managing ChromeDriver specific options.

Constructor

new Options()

Methods

androidChrome() → (non-null) {Options}

Configures the ChromeDriver to launch Chrome on Android via adb. This function is shorthand for options.androidPackage('com.android.chrome').

Returns:

A self reference.

Type: 
Options

setChromeBinaryPath(path) → (non-null) {Options}

Sets the path to the Chrome binary to use. On Mac OS X, this path should reference the actual Chrome executable, not just the application binary (e.g. "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome").

The binary path be absolute or relative to the chromedriver server executable, but it must exist on the machine that will launch Chrome.

Parameters:
NameTypeDescription
pathstring

The path to the Chrome binary to use.

Returns:

A self reference.

Type: 
Options

setChromeLogFile(path) → (non-null) {Options}

Sets the path to Chrome's log file. This path should exist on the machine that will launch Chrome.

Parameters:
NameTypeDescription
pathstring

Path to the log file to use.

Returns:

A self reference.

Type: 
Options

setChromeMinidumpPath(path) → (non-null) {Options}

Sets the directory to store Chrome minidumps in. This option is only supported when ChromeDriver is running on Linux.

Parameters:
NameTypeDescription
pathstring

The directory path.

Returns:

A self reference.

Type: 
Options