Forum Discussion
Sagar_Gulhane
Jun 25, 2020Copper Contributor
How to set download path in edge webdriver using EdgeOptions in Selenium 3.141
I am using Selenium 3.141 with C#. I would like to set download path for Edge using EdgeOptions.
I am suing below code but its not setting path.
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.AddAdditionalCapability("download.default_directory", {Path}");
edgeOptions.AddAdditionalCapability("download.prompt_for_download", "false");
driver = new EdgeDriver(edgeOptions);
Please let me know the correct capability names to add for this. I am using capability names same as Chrome options.
- johnjansen
Microsoft
Sagar_Gulhane thanks for posting the question... We are at a strange state with WebDriver and the browser. A lot of the changes for Microsoft Edge are in Selenium 4, which is still in Alpha. When using Selenium 3.x, you may be getting partial language bindings or partial implementation on our part. Regardless, we wrote a tool to help until 4 releases officially: https://github.com/microsoft/edge-selenium-tools
Please try that out and let me know if it helps.
-John Jansen
Developer Manager, Microsoft Edge
- EricStarkerFormer Employee
Hello! You've posted your question in the Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Microsoft Edge Insider Discussion space - please post Edge questions here in the future.