This issue starts to reproduce against MS Edge Chromium Beta v91 (91.0.864.15). This browser was released this Friday, April, 30.
When my Selenium test tried to download an XML file - file did not downloaded. Browser shows warning like "this type of file can harm your device". When I tried to download another file types in the same test (PDF, DOC) - these files downloaded successfully. I.e. my Edge options allows to download file without additional prompt (and it also works correctly in Edge v90). My current Edge Options are:
options.AddUserProfilePreference("download.prompt_for_download", false);
options.AddUserProfilePreference("download.default_directory", "C:\MyDir");
options.AddUserProfilePreference("safebrowsing.enabled", true); //also tried with 'false' - still not working
options.AddArguments("--safebrowsing-disable-download-protection");
options.AddArguments("safebrowsing-disable-extension-blacklist");
Looks like, Microsoft have added some additional argument into Edge v91 for this. Do you know, what MS Edge option should I use for Edge version 91 to handle XML files download in Selenium tests without prompt?