webdriver.chrome.options

Module Contents

Classes

Options(self)
class Options
__init__()
binary_location()

Returns the location of the binary otherwise an empty string

binary_location(value)

Allows you to set where the chromium binary lives

Args:
  • value: path to the Chromium binary
debugger_address()

Returns the address of the remote devtools instance

debugger_address(value)

Allows you to set the address of the remote devtools instance that the ChromeDriver instance will try to connect to during an active wait.

Args:
  • value: address of remote devtools instance if any (hostname[:port])
arguments()

Returns a list of arguments needed for the browser

add_argument(argument)

Adds an argument to the list

Args:
  • Sets the arguments
extensions()

Returns a list of encoded extensions that will be loaded into chrome

add_extension(extension)

Adds the path to the extension to a list that will be used to extract it to the ChromeDriver

Args:
  • extension: path to the *.crx file
add_encoded_extension(extension)

Adds Base64 encoded string with extension data to a list that will be used to extract it to the ChromeDriver

Args:
  • extension: Base64 encoded string with extension data
experimental_options()

Returns a dictionary of experimental options for chrome.

add_experimental_option(name, value)

Adds an experimental option which is passed to chrome.

Args:
name: The experimental option name. value: The option value.
headless()

Returns whether or not the headless argument is set

set_headless(headless=True)

Sets the headless argument

Args:
headless: boolean value indicating to set the headless option
to_capabilities()

Creates a capabilities with all the options that have been set and

returns a dictionary with everything