0
I can’t change the default download location in Firefox using Selenium the code is like this:
from selenium import webdriver
fp = webdriver.FirefoxProfile()
fp.set_preference('browser.download.folderList', 2)
fp.set_preference('browser.download.manager.showWhenStarting', False)
fp.set_preference('browser.download.dir', r'C:\Users\Martini\Documents')
fp.set_preference("browser.helperApps.neverAsk.openFile", "application/zip")
fp.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/zip")
firefox = webdriver.Firefox(fp)
I have tested in other places, tried to take the r and let the , but nothing worked. All downloads go to the default folder in the Downloads folder.
That’s right, thank you very much!
– Martini