selenium.webdriver.firefox.firefox_profile#
Classes
|
Initialises a new instance of a Firefox Profile. |
- class FirefoxProfile(profile_directory=None)[source]#
Bases:
objectInitialises 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'}#
- 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.