I am writing automated tests using Selenium. I want to set the download directory in Edge so that I can download files as part of my test. There is an EdgeOptions object that I can provide when creating the EdgeDriver, but I don't know what to set on the EdgeOptions.
I know the equivalent of how to do this in Chrome
chromeOptions.AddUserProfilePreference("download.default_directory", @"C:\temp")
and Firefox
firefoxOptions.SetPreference("browser.download.dir", @"C:\temp")
But, how do I do the same thing in Edge? And get it to download automatically without a save prompt?