I am using this code to automate a flow which will download a Winzip file without prompt. But it does not seem to work
profile = webdriver.firefox.firefox_profile.FirefoxProfile()
profile.set_preference('browser.helperApps.neverAsk.saveToDisk',("application/zip,
application/octet-stream"))
profile.set_preference('browser.download.folderList', 2)
profile.set_preference('browser.download.dir', '/home/jack/DOWNLOAD')
self.driver = webdriver.Firefox(firefox_profile=profile)
I still see the dialog box being opened while automation.
browser.download.diris not present inabout:configcurl -I https://www.downloadadress.com/ | grep Content-Typeapplication/x-zip-compressedandapplication/x-rar-compressedas MIME types as well?