I use the following to set my Firefox profile preferences: fp = webdriver.FirefoxProfile()įp.set_preference("", 1)įp.set_preference("", False)įp.set_preference("",False)įp.set_preference("", "H:\Downloads")įp.set_preference("","H:\Downloads")įp.set_preference("","H:\Downloads")īinary = FirefoxBinary(r'C:\Program Files (x86)\Mozilla Firefox\Firefox.exe')įirefox_capabilities = DesiredCapabilities.FIREFOXįirefox_capabilities = Trueĭriver = webdriver.Firefox(capabilities=firefox_capabilities, firefox_binary=binary, firefox_profile = fp)įrom what I understand after reading Unable to set firefox profile preferences and FirefoxProfile passed to FirefoxDriver, it seems that nothing is being done when using firefox_profile now. I haven’t run this to confirm, but logically I’d suspect that this could quite easily be happening, and should be investigated.I use Selenium Marrionette and GeckoDriver to pull web data.
![firefox download settings firefox download settings](https://cdn.windowsreport.com/wp-content/uploads/2018/07/windows-10-wont-allow-firefox-as-default-browser-1.png)
![firefox download settings firefox download settings](http://images.standaloneinstaller.com/images/firefox-Va8Z99AUtVpCBwiGmZjM_screenshot.jpg)
Since Firefox has changed it’s behavour recently to automatically download files without asking, this means that Firefox is likely saving directly to the documents store and will experiencing data loss as per Xdg-desktop-portal file loss It’s opening a file and inferring the folder from the path of the file. The second issue is that Ubuntu 20.04 portals don’t have support for opening folders at all. This is fixed on Ubuntu 21.04+, files will only be mirrored in /run if the snap didn’t originally have access, so this is much less likely to be user visible. This means that EVERY file/folder, even those in $HOME will be proxied via /run, even if they don’t need to be. The first lesser problem is that on Ubutu 20.04 with snaps, the portals are old and don’t check if the snap already has access to the selected file/folder. There’s two issues here, and one of them is potentially severe but I’ve not tested it, but it’s worth looking into. I'd appreciate any ideas and solutions for fixing this issue as it is not an option for me to manually set the download path each time I download a file. Ubuntu Mate Version 20.04.4 LTS (Focal Fossa) 64-bit I’ve recently changed to the snap version of firefox because the newest firefox version wasn’t available through apt anymore. You just proved it’s a SNAP issue and not Mozilla. There the “solution” is to blame it on snap: Similar issue (if not the same) I found on the Mozilla Firefox help forums:
![firefox download settings firefox download settings](http://webforpc.com/wp-content/uploads/2015/09/Mozilla-Firefox-Latest-Offline-Setup-Installer-Download.png)