Class Options
code »Class for managing ChromeDriver specific options.
Constructor
Instance Methods
code »addArguments ( var_args ) ⇒ !OptionsAdd additional command line arguments to use when launching the Chrome
browser. Each argument may be specified with or without the "--" prefix
(e.g. "--foo" and "foo"). Arguments with an associated value should be
delimited by an "=": "foo=bar".
!Optionscode »addExtensions ( var_args ) ⇒ !OptionsAdd additional extensions to install when launching Chrome. Each extension
should be specified as the path to the packed CRX file, or a Buffer for an
extension.
!Optionscode »detachDriver ( detach ) ⇒ !OptionsSets whether to leave the started Chrome browser running if the controlling
ChromeDriver service is killed before webdriver.WebDriver#quit() is
called.
!Optionswebdriver.WebDriver#quit() is
called.| Parameters |
|---|
|
| Returns |
|
code »setChromeBinaryPath ( path ) ⇒ !OptionsSets 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.
!Options| Parameters |
|---|
|
| Returns |
|
code »setChromeLogFile ( path ) ⇒ !OptionsSets the path to Chrome's log file. This path should exist on the machine
that will launch Chrome.
!Options| Parameters |
|---|
|
| Returns |
|
code »setLocalState ( state ) ⇒ !OptionsSets preferences for the "Local State" file in Chrome's user data
directory.
!Options| Parameters |
|---|
|
| Returns |
|
code »setLoggingPreferences ( prefs ) ⇒ !OptionsSets the logging preferences for the new session.
!Options| Parameters |
|---|
|
| Returns |
|
code »setUserPreferences ( prefs ) ⇒ !OptionsSets the user preferences for Chrome's user profile. See the "Preferences"
file in Chrome's user data directory for examples.
!Options| Parameters |
|---|
|
| Returns |
|
code »toCapabilities ( opt_capabilities ) ⇒ !webdriver.CapabilitiesConverts this options instance to a webdriver.Capabilities object.
!webdriver.Capabilitieswebdriver.Capabilities object.| Parameters |
|---|
|
| Returns |
|
code »toJSON ( ) ⇒ {args: !Array.<string>, binary: (string|undefined), detach: boolean, extensions: !Array.<string>, localState: (Object|undefined), logFile: (string|undefined), prefs: (Object|undefined)}Converts this instance to its JSON wire protocol representation. Note this
function is an implementation not intended for general use.
{args: !Array.<string>, binary: (string|undefined), detach: boolean, extensions: !Array.<string>, localState: (Object|undefined), logFile: (string|undefined), prefs: (Object|undefined)}| Returns |
|---|
|
Instance Properties
Static Functions
code »Options.fromCapabilities ( capabilities ) ⇒ !OptionsExtracts the ChromeDriver specific options from the given capabilities
object.
!Options| Parameters |
|---|
|
| Returns |
|