Skip to content

Browser Options

ChromiumOptions

pydoll.browser.options.ChromiumOptions

ChromiumOptions()

Bases: Options

A class to manage command-line options for a browser instance.

This class allows the user to specify command-line arguments and the binary location of the browser executable.

Initializes the Options instance.

Sets up an empty list for command-line arguments and a string for the binary location of the browser.

arguments property writable

arguments

Gets the list of command-line arguments.

RETURNS DESCRIPTION
list

A list of command-line arguments added to the options.

TYPE: list[str]

binary_location property writable

binary_location

Gets the location of the browser binary.

RETURNS DESCRIPTION
str

The file path to the browser executable.

TYPE: str

add_argument

add_argument(argument)

Adds a command-line argument to the options.

PARAMETER DESCRIPTION
argument

The command-line argument to be added.

TYPE: str

RAISES DESCRIPTION
ArgumentAlreadyExistsInOptions

If the argument is already in the list of arguments.

Options Interface

pydoll.browser.interfaces.Options

Bases: ABC

arguments abstractmethod property

arguments

binary_location abstractmethod property

binary_location

add_argument abstractmethod

add_argument(argument)

BrowserOptionsManager Interface

pydoll.browser.interfaces.BrowserOptionsManager

Bases: ABC

initialize_options abstractmethod

initialize_options()

add_default_arguments abstractmethod

add_default_arguments()