I am writing a Behat test that would download a .txt file. Figuring out how to handle the browser download dialog is a pain as it is not something Selenium can directly interact with. Since I am just doing this for one type of file I figured it'd be okay to avoid that problem by setting the browser default action for plain text files to save. Unfortunately it seems that each time Selenium starts up Firefox it has all preferences reset.
Is there any way to set default action and location for downloads, either in behat.yml, or when starting the selenium-standalone-server?