Browser Options
ChromiumOptions
pydoll.browser.options.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
Gets the list of command-line arguments.
RETURNS | DESCRIPTION |
---|---|
list
|
A list of command-line arguments added to the options.
TYPE:
|
binary_location
property
writable
Gets the location of the browser binary.
RETURNS | DESCRIPTION |
---|---|
str
|
The file path to the browser executable.
TYPE:
|
add_argument
Adds a command-line argument to the options.
PARAMETER | DESCRIPTION |
---|---|
argument
|
The command-line argument to be added.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ArgumentAlreadyExistsInOptions
|
If the argument is already in the list of arguments. |