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

working with cookies #32

Open
foxpcteam opened this issue Nov 5, 2016 · 4 comments
Open

working with cookies #32

foxpcteam opened this issue Nov 5, 2016 · 4 comments

Comments

@foxpcteam
Copy link

Hi,
in js we could make this work like:

var fs = require('fs');
var cookies = JSON.stringify(phantom.cookies);
fs.write(cookieFilename, cookies, 644);

The phantom is global variable in PhantomJS. More information you can get in wiki

if it possible to work with cookies in php-casperjs?

@foxpcteam
Copy link
Author

?

@alwex
Copy link
Owner

alwex commented Nov 13, 2016

Hello, you will need to be able to import dependencies in your script, we just need to be able to add some code before casper script in the generated js.
The problem I see is that you will need a /node_modules somewhere or to install your node modules globally before being able to require them.

@foxpcteam
Copy link
Author

Hi @alwex , any example how to do that will be helpfull.

Thanks

@natterstefan
Copy link

@foxpcteam @alwex any news here?

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

No branches or pull requests

3 participants