希望对您有帮助!
var chromeOptions = new ChromeOptions(); chromeOptions.AddUserProfilePreference("download.default_directory", "Your_Path"); chromeOptions.AddUserProfilePreference("intl.accept_languages", "nl"); chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true");var driver = new ChromeDriver("Driver_Path", chromeOptions);


