selenium.webdriver.chrome.options

class selenium.webdriver.chrome.options.Options[source]
add_argument(argument)[source]

Adds an argument to the list

Args :
  • Sets the arguments
add_encoded_extension(extension)[source]

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
add_experimental_option(name, value)[source]

Adds an experimental option which is passed to chrome.

Args:
name: The experimental option name. value: The option value.
add_extension(extension)[source]

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
arguments[source]

Returns a list of arguments needed for the browser

binary_location[source]

Returns the location of the binary otherwise an empty string

debugger_address[source]

Returns the address of the remote devtools instance

experimental_options[source]

Returns a dictionary of experimental options for chrome.

extensions[source]

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

to_capabilities()[source]

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

returns a dictionary with everything

This Page