selenium.webdriver.firefox.firefox_profile#

Classes

FirefoxProfile([profile_directory])

Initialises a new instance of a Firefox Profile.

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 = {'browser.newtabpage.enabled': False, 'browser.startup.homepage': 'about:blank', 'browser.usedOnWindows10.introURL': 'about:blank', 'network.captive-portal-service.enabled': False, 'security.csp.enable': False, 'startup.homepage_welcome_url': 'about:blank'}#
set_preference(key, value)[source]#

Sets the preference that we want in the profile.

update_preferences()[source]#

Writes the desired user prefs to disk.

property path#

Gets the profile directory that is currently being used.

property encoded: str#

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