title: Selenium C# Firefox 22 - "silent save file" from web no longer working
body: <p>I'm doing tests of a WebPage using the selenium framework 2.33. the TestCase here should verify the download of a file.</p>
  
  <p>The following code did work with Firefox 21 and older. Since the Update to FF 22, it is no longer working and I have not found out why.</p>
  
  <p>I used it to save a tar.gz file, but txt or CSV files are also failing.</p>
  
  <p>Setup driver:</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.AcceptUntrustedCertificates = true;
  profile.SetPreference("browser.download.dir", System.Environment.GetEnvironmentVariable("TEMP"));
  profile.SetPreference("browser.download.folderList", 2);
  profile.SetPreference("browser.download.manager.showWhenStarting", false);
  profile.SetPreference("browser.helperApps.alwaysAsk.force", false);
  profile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "text/xml, text/csv, text/plain, text/log, application/zlib, application/x-gzip, application/x-compressed, application/x-gtar, multipart/x-gzip, application/tgz, application/gnutar, application/x-tar");
  profile.SetPreference("pdfjs.disabled", true);
  IWebDriver webDriver = new FirefoxDriver(profile);
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>webDriver.Navigate().GoToUrl("https://example.com/downloadthis.txt");
  </code></pre>
  
  <p>Note:
  in firefox 22, "about:config" the line "browser.helperApps.neverAsk.saveToDisk" with the given arguments is present. but despite this, the "save file" dialog pops up and the test is failing when it checks for the expected file at the saving location.</p>
  
  <p>Does anyone have an idea or encountered this too?</p>
  
  <p>edit: formatting</p>