Downloading file to specific folder using Capybara and Poltergeist driver
I am writing my acceptance tests using Capybara and Poltergeist driver.I need to validate the content of the CSV file downloaded. I tried various ways of rendering the content on the page itself instead of downloading it. Also tried changing the mime types, but it is not working. 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. 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. In Selenium's