# 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 selenium.webdriver.firefox.firefox_profile.AddonFormatError(**kwargs)

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

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

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

class selenium.webdriver.firefox.firefox_profile.FirefoxProfile(profile_directory=None)

  Initialises a new instance of a Firefox Profile.

  Args:

    - 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)

    Sets the preference that we want in the profile.

  add_extension(extension=None)
  update_preferences()

    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

    Updates preferences and creates a zipped, base64 encoded string of profile directory.