selenium.webdriver.firefox.options

Classes

Log()
Options()
class selenium.webdriver.firefox.options.Log[source]
to_capabilities() → dict[source]
class selenium.webdriver.firefox.options.Options[source]
KEY = 'moz:firefoxOptions'
binary

Returns the FirefoxBinary instance

binary_location
Returns:The location of the binary.
default_capabilities

Return minimal capabilities necessary as a dictionary.

enable_mobile(android_package: str = 'org.mozilla.firefox', android_activity=None, device_serial=None)[source]

Enables mobile browser use for browsers that support it

Args:android_activity: The name of the android package to start
headless
Returns:True if the headless argument is set, else False
preferences
Returns:A dict of preferences.
profile
Returns:The Firefox profile to use.
set_preference(name: str, value: Union[str, int, bool])[source]

Sets a preference.

to_capabilities() → dict[source]

Marshals the Firefox options to a moz:firefoxOptions object.