MicrosoftDocs / edge-developer

Developer documentation for Edge.
https://learn.microsoft.com/microsoft-edge/developer/
Creative Commons Attribution 4.0 International
383 stars 509 forks source link

[Edge WebDriver Docs Feedback] XML file downloads are blocked #3052

Closed RajeshPoola closed 8 months ago

RajeshPoola commented 8 months ago

When using InPrivate mode, attempting to download XML files prompts a security pop-up indicating that the file download is blocked.

I attempted to override using some options which didn't work, also found no documentation.

var options = new EdgeOptions();
options.AddArgument("--safebrowsing-disable-download-protection");
options.AddUserProfilePreference("download.prompt_for_download", false);
options.AddUserProfilePreference("savefile.default_directory", OutputFilePath);
options.AddUserProfilePreference("savefile.prompt_for_download", false);
options.AddUserProfilePreference("acceptInsecureCerts", true);
captainbrosset commented 8 months ago

It seems to me like this is not an issue with the Edge documentation (which this repo is about), but rather an issue with Edge WebDriver.

Could you please open an issue on this other repository instead: https://github.com/MicrosoftEdge/EdgeWebDriver ? Thanks for your understanding.