selenium.webdriver.firefox.firefox_profile#

Classes

FirefoxProfile([profile_directory])

Initialises a new instance of a Firefox Profile.

Exceptions

AddonFormatError(**kwargs)

Exception for not well-formed add-on manifest files.

exception AddonFormatError(**kwargs)[source]#

Bases: Exception

Exception for not well-formed add-on manifest files.

args#
with_traceback()#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class FirefoxProfile(profile_directory=None)[source]#

Bases: object

Initialises a new instance of a Firefox Profile.

Parameters:

profile_directory – Directory of profile that you want to use. If a directory is passed in it will be cloned and the cloned directory will be used by the driver when instantiated. This defaults to None and will create a new directory when object is created.

DEFAULT_PREFERENCES = None#
set_preference(key, value)[source]#

Sets the preference that we want in the profile.

add_extension(extension=None)[source]#
update_preferences()[source]#

Writes the desired user prefs to disk.

property path#

Gets the profile directory that is currently being used.

property port#

Gets the port that WebDriver is working on.

property accept_untrusted_certs#
property assume_untrusted_cert_issuer#
property encoded: str#

Update preferences and create a zipped, base64-encoded profile directory string.