Forum Discussion

Sagar_Gulhane's avatar
Sagar_Gulhane
Copper Contributor
Jun 25, 2020

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.

Resources