PhantomJS and specifying download directory

Asked by pratik shah

Hello everyone --

I'm attempting to download a file using PhantomJS but I need to pass in the directory where I want to store the asset. Similar to profile.set_preference('', download_path) for FIrefox, is there a way to do this in Phantom?

Its probably not designed (or doesn't natively support) file downloads?

Question information

English Edit question
selenium-simple-test Edit question
No assignee Edit question
Solved by:
Corey Goldberg
Last query:
Last reply:
Revision history for this message
Best Corey Goldberg (coreygoldberg) said :

I don't believe file download is currently supported in PhantomJS.


Revision history for this message
pratik shah (pratik-shah) said :

As always, Thanks Corey, I suspected this was the case found the github issue perusing articles last night.

Revision history for this message
pratik shah (pratik-shah) said :

Thanks Corey Goldberg, that solved my question.