
You’ve also heard it’s made by people who want the web to be awesome for everyone. You’ve heard that the Firefox browser is fast, private and secure, thanks to its built-in Enhanced Tracking Protection. If you have a typical ubuntu setup, you can find your default firefox profile dir by viewing ~/.mozilla/firefox/profile.ini Then the only setting up you need to do to download the file into your current working directory is : from selenium import webdriverįp.set_preference("",2)įp.set_preference("", os.getcwd())ĭriver = webdriver.Firefox(firefox_profile=fp)

Type the following in the firefox address bar and make changes here : about:preferences#applications You can tweak your default (or custom) profile to the file save behaviour you want. Still, I finally got it working by the other method that is recommended : using an existing firefox profile.

None of the many suggestions involving various values for t_preference worked for me. I have spent many hours trying to suppress that "save or open" pop-up that appears when downloading a file using the firefox driver with selenium (python 3.x). t_preference("", "/home/i-06/Downloads")ĭriver = webdriver.Firefox(firefox_profile=profile) Here is the criminal's pic that making me crazyīelow is what I've done to disable the popup. I found ~/.mozilla/firefox but there was no file for directory of my profile name nor any file has an extension like. I checked files and folders to create master mimeTypes.rdf for all users, but I couldn't find mine.(I'm using ubuntu).

The problem is whenever I run script I always get pop up from firefox keep asking what kinds of action I would like to do, even though I set download path in firefox preference.

I have script that using selenium and firefox to automating download action.
