selenium.webdriver.chromium.options

Classes

ChromiumOptions()
class selenium.webdriver.chromium.options.ChromiumOptions[source]
KEY = 'goog:chromeOptions'
add_encoded_extension(extension: str) → None[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: str, value: Union[str, int, dict, List[str]]) → None[source]

Adds an experimental option which is passed to chromium.

Args:name: The experimental option name. value: The option value.
add_extension(extension: str) → None[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
binary_location
Returns:The location of the binary, otherwise an empty string
debugger_address
Returns:The address of the remote devtools instance
default_capabilities

Return minimal capabilities necessary as a dictionary.

experimental_options
Returns:A dictionary of experimental options for chromium
extensions
Returns:A list of encoded extensions that will be loaded
headless
Returns:True if the headless argument is set, else False
to_capabilities() → dict[source]

Creates a capabilities with all the options that have been set :Returns: A dictionary with everything