Skip to content Skip to sidebar Skip to footer

Selenium Firefox Webdriver Does Not Adopt Profile

I have created a FF profile: fp = webdriver.FirefoxProfile() fp.set_preference('browser.download.dir', CLIENT_SAVING_DIR) fp.set_preference('browser.download.folderList',2) fp.set

Solution 1:

I have found the answer. (It took me for a day at work)

fp = webdriver.FirefoxProfile()
... set your profile attributes
fp.update_preferences() #the answer

I think it's important to paste this line at the end of profile definition. Selenium API should put this line into their documentation.

Post a Comment for "Selenium Firefox Webdriver Does Not Adopt Profile"