title: Why can't I download a file via Firefox using Selenium Webdriver?
body: <p>I trying to download file in firefox using the profile setting but it does not work can you tell me what i am doing wrong and the code i am using is posted below this line</p>
  
  <pre><code>var profile = new FirefoxProfile { EnableNativeEvents = true };
  profile.SetPreference("browser.download.folderList", 2);
  profile.SetPreference("browser.download.manager.showWhenStarting", false);
  profile.SetPreference("browser.download.dir", folderName);
  profile.SetPreference("browser.download.downloadDir", folderName);
  profile.SetPreference("browser.download.defaultFolder", folderName);
  profile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "image/jpeg,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet," +
                                                                              "application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.graphics," +
                                                                              "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet," +
                                                                              "application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation," +
                                                                              "application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.mozilla.xul+xml," +
                                                                              "application/vnd.google-earth.kml+xml");
  </code></pre>