Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing through Phantomjs options #163

Closed
plasticine opened this issue Dec 12, 2013 · 5 comments
Closed

Passing through Phantomjs options #163

plasticine opened this issue Dec 12, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@plasticine
Copy link

I does not currently seem to be possible to pass along options to phantomjs when running phantomas.

CasperJS does this nice thing where it will pass any unrecognised config options down to phantom.

In my case I would like to set a few phantom specific options; --ignore-ssl-errors=true --cookies-file=cookie_jar, but that doesn’t seem to be possible.

@macbre
Copy link
Owner

macbre commented Dec 12, 2013

Sounds like a good addition to #161

@plasticine
Copy link
Author

Awesome, feel free to close this issue if you would prefer to just track it there. :)

On Thu, Dec 12, 2013 at 9:40 PM, Maciej Brencz [email protected]
wrote:

Sounds like a good addition to #161

Reply to this email directly or view it on GitHub:
#163 (comment)

@ericfreese
Copy link

@plasticine For now, it looks like you can use:

phantomjs --ignore-ssl-errors=true ./phantomas.js --url="https://example.com"

from node_modules/phantomas.

@plasticine
Copy link
Author

@ericfreese Yep, that’s essentially what I’ve done for now. I ended up just making a custom runner that passes in the options that I want.

Still, would be nicer to be able to just have phantomas pass them along.

@macbre
Copy link
Owner

macbre commented Dec 17, 2013

Will be done a part of #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants