Reputation: 121
Is there a way to use PhantomJS's command line options programmatically?
Perhaps even from CasperJS?
Upvotes: 0
Views: 500
Reputation: 61892
I doesn't make sense to change the value for most of the commandline options programmatically. For example, why would changing the cookies file or the disk cache option be a good idea during script execution?
Others can be set in the settings such as the loadImages
and webSecurityEnabled
options.
A special case is the phantom.setProxy
function which was merged into the master branch, but as of 1.9.8 not yet released. You will have to wait for PhantomJS 2.x to use it (or compile the source right now).
Upvotes: 1