Есть задача скачать файл с сайта. Без диалогового окна.

Не удается настроить драйвер. Пытаюсь настроить со следующими параметрами:
profile = FirefoxProfile()
profile.set_preference("browser.download.folderList", 2)
profile.set_preference("browser.download.manager.showWhenStarting", False)
profile.set_preference("browser.download.dir", "c:\\firefox_downloads\\")
profile.set_preference("browser.helperApps.neverAsk.saveToDisk", "image/jpeg")
но при попытке скачать все равно появляется диалоговое окно. Как правильно уйти от него?