I\'ve been grappling with using PhantomJS/Selenium/python-selenium to download a file to the filesystem. I\'m able to easily navigate through the DOM and click, hover etc. D
PhantomJS doesn't currently support file downloads. Relevant issues with workarounds:
As far as I understand, you have at least 3 options:
casperjs (and you should leave python here)xvfbHere are also some links that might help too: