With selenium
I am trying to download a zip
file, but the download window keeps popping up despite the many suggestions in this question. They do not work for unknown reasons. Maybe because the download-link is inside an iframe
?
Anyway, I need to access the download popup with selenium to click on the Save to disk
button and the OK
button, OR to right-click on the download link to select the option Save link as ...
I cannot post a working example, as the webpage in question is not public. Maybe a class definition interfers with the profile settings etc etc.
So is there a way to access the popup dialog of the Download dialog?
Related question: here
For completeness: Here are all the profile settings:
profile = webdriver.FirefoxProfile()
profile.set_preference("browser.download.dir", download_dir)
profile.set_preference("browser.download.folderList", 2)
profile.set_preference("browser.download.useDownloadDir", True);
profile.set_preference("browser.download.manager.showWhenStarting", False )
profile.set_preference("pdfjs.disabled", True )
profile.set_preference("browser.helperApps.neverAsk.saveToDisk","application/msword, application/csv, application/ris, text/csv, image/png, application/pdf, text/html, text/plain, application/zip, application/x-zip, application/x-zip-compressed, application/download, application/octet-stream")
profile.set_preference("browser.download.manager.alertOnEXEOpen", False);
profile.set_preference("browser.download.manager.focusWhenStarting", False);
profile.set_preference("browser.helperApps.alwaysAsk.force", False);
profile.set_preference("browser.download.manager.alertOnEXEOpen", False);
profile.set_preference("browser.download.manager.closeWhenDone", True);
profile.set_preference("browser.download.manager.showAlertOnComplete", False);
profile.set_preference("browser.download.manager.useWindow", False);
profile.set_preference("services.sync.prefs.sync.browser.download.manager.showWhenStarting",False);