title: Downloading file to specific folder using Capybara and Poltergeist driver
body: <p>I am writing my acceptance tests using Capybara and Poltergeist driver.I need to validate the content of the CSV file downloaded.</p>
  
  <ol>
  <li>I tried various ways of rendering the content on the page itself instead of downloading it. </li>
  <li>Also tried changing the mime types, but it is not working. </li>
  </ol>
  
  <p>Finally I want to settle down with the option of downloading the file in a specific folder and then read the CSV file using core ruby libraries. </p>
  
  <p>In order to achieve this,when poltergeist driver clicks on download link then I want it to handle the pop-up and download the file directly in the given folder. </p>
  
  <p>In Selenium's chrome and firefox drivers, I have option of configuring profiles to handle pop ups and configure download directory. </p>
  
  <p>Is there any such option using poltergeist? Any information will be helpful.</p>