I'm running automated regression tests using Selenium and am running into a few issues. Previously my ChromeDriver would click on a link that downloaded a file to the default directory provided in my ChromeOptions but now it is presenting me with a SaveAs dialog in the browser instead of just auto-downloading the file.
Is there a way to disable the SaveAs dialog and just auto-downloading the file to my default directory?
Below the settings for my ChromeDriver..
var driverOptions = new ChromeOptions();
driverOptions.AddUserProfilePreference("download.default_directory", BaseCommon._chromeDefaultDownloadsFolder);
driverOptions.AddUserProfilePreference("intl.accept_languages", "nl");
driverOptions.AddUserProfilePreference("profile.default_content_settings.popups", "0");
driverOptions.AddUserProfilePreference("disable-popup-blocking", "true");
var driverPath = System.IO.Directory.GetCurrentDirectory();
Instance = new ChromeDriver(driverPath, driverOptions);