Disable chrome download multiple files confirmation
I’m using Chrome 49 and none of the other solutions worked for me. After some research I found a working solution: ChromeDriver createChromeDriverWithDownloadFolder(String folder) { Map<String, Object> chromePrefs = new HashMap<String, Object>(); chromePrefs.put(“profile.default_content_settings.popups”, 0); chromePrefs.put(“download.default_directory”, folder); chromePrefs.put(“profile.content_settings.exceptions.automatic_downloads.*.setting”, 1 ); chromePrefs.put(“download.prompt_for_download”, false); ChromeOptions options = new ChromeOptions(); options.setExperimentalOption(“prefs”, chromePrefs); DesiredCapabilities cap = DesiredCapabilities.chrome(); cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); cap.setCapability(ChromeOptions.CAPABILITY, … Read more