Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Selenium WebDriver with C# in VS 2010, I compiled a document using automation and then I want to save the file on my desktop. During automation a new window is popping up to "save or open file". Is there any code available in C# Selenium to manipulate this dialog popup?

share|improve this question
The simple answer is no, but there are workarounds such as Alexey's answer below, or using different application automation frameworks to handle the prompts. – Sam Woods Oct 30 '13 at 15:34

Use profile setting for browsers:


Browser initialize

FirefoxProfile profile = new FirefoxProfile();
IWebDriver webDriver = new FirefoxDriver(profile);
share|improve this answer
Can you give provide more detailed answer Thanks in advance – Reya Oct 28 '13 at 21:10
I've added some details to my answer – alexey.chumagin Oct 29 '13 at 6:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.