We are currently testing one of our web applications with qf-test and we stumbled upon a file download. At some point we would like to download a *.zip file from the website. In Chrome and IE we simply click on the “small dialog” and the
in the following select node we specify the path. But the firefox doesn’t show this dialog, instead it shows directly the proper download dialog, which we cannot simply control.
From what I’ve learned, there are 3 options how to overcome this:
Either write some autowin script, that would interact with the Download dialog and save it. The downside is, that we cannot affect the directory, to which the file gets downloaded or the name of the file. (which is sadly generated
with a timestamp)
Or we can create a simple http client, send GET request and download the file from the response. This should work, but I am not sure how it would work with authentification, cookies and such.
The last option that others do is to prepare a firefox profile, that always downloads this type of file to a known location and use this profile at the start of the browser. Which seems complicated and has the same disadvantage
So the question is, how do I download simply a file from firefox? Is there some other way?