The browser is initialized as follows:
from selenium import webdriver from selenium.webdriver.firefox.options import Options as FirefoxOptions options = FirefoxOptions() options = FirefoxOptions() profile = webdriver.FirefoxProfile() profile.set_preference("browser.download.folderList", 2) profile.set_preference("browser.download.manager.showWhenStarting", False) profile.set_preference("browser.download.manager.useWindow", True) profile.set_preference("browser.download.dir", "" + dwnld_path + "") profile.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/pdf,application/msword,text/csv") self.wd = webdriver.Firefox(firefox_profile=profile, options=options, capabilities={"marionette": True}, executable_path="" + wd_path + "/geckodriver.exe", firefox_binary="C:/Program Files/Mozilla Firefox 60/firefox.exe")
But, nevertheless, when loading a file, a dialog box still appears, with which nothing happens.
From here there was a question: and Firefox in general can save files which are downloaded not according to the link, and podsovyvayutsya through JS?