selenium.webdriver.firefox.firefox_profile

Classes

FirefoxProfile([profile_directory]) Initialises a new instance of a Firefox Profile

Exceptions

AddonFormatError Exception for not well-formed add-on manifest files
exception selenium.webdriver.firefox.firefox_profile.AddonFormatError[source]

Exception for not well-formed add-on manifest files

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

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.
ANONYMOUS_PROFILE_NAME = 'WEBDRIVER_ANONYMOUS_PROFILE'
DEFAULT_PREFERENCES = None
accept_untrusted_certs
add_extension(extension='webdriver.xpi')[source]
assume_untrusted_cert_issuer
encoded

A zipped, base64 encoded string of profile directory for use with remote WebDriver JSON wire protocol

path

Gets the profile directory that is currently being used

port

Gets the port that WebDriver is working on

set_preference(key, value)[source]

sets the preference that we want in the profile.

update_preferences()[source]