I've been looking for a solution to do headless testing in osx. But I need the ability to save files returned by the server.
I've tested selenium, phantomjs, casperjs and have looked into anything I could find online.
none of them supports downloading. am I missing something? are there any headless browser/testing frameworks that support downloads?
I use on OSX selenium + wget command to perform downloads.
Here it is a sample of code:
What you can do is:
Firefox
browser with preferences configured to automatically savecsv
filesWorking example in python with additional comments (using pyvirtualdisplay
xvfb
wrapper):See also:
Awesomium is a headless browser and it has download manager with download event handlers. Here is the link for the documentation.