We are trying to verify the downloaded file in headless mode with C#, the file is downloading but not saving in the download path, so my test script is failing.
Any idea for this?
The code is below
ChromeOptions option = new ChromeOptions();
option.AddUserProfilePreference("download.default_directory", @"%USERPROFILE%\Downloads");
option.AddArgument("--headless");
option.AddArgument("--window-size=1920,1080");
option.AddArguments("--disable-web-security");
option.AddArguments("--allow-running-insecure-content");
driver = new ChromeDriver(option);