Selenium download file automatically c#
问题 I'm try to setup Firefox in order to be auto-download files. I did how suggested in enter link description here, But I cannot get it to work. This is my code: FirefoxOptions options = new FirefoxOptions(); options.SetPreference("browser.download.folderList", 2); options.SetPreference("browser.download.dir", "C:\\Windows\\temp"); options.SetPreference("browser.download.useDownloadDir", true); options.SetPreference("browser.helperApps.neverAsk.saveToDisk", "application/pdf"); options