from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxProfile profile = FirefoxProfile(profile_directory='/path/to/profile/directory/default/') driver = webdriver.Firefox(firefox_profile=profile)