Casperjs gets all cookies on the page.

  node.js, question

PhantomJSThepage.cookiesYou can get all of the open pagescookies,
casperjsHow to open a page to get all of the pagescookies?

IncasperjsDocument inside seems not to be foundcookiesRelated,
PhantomJSAndcasperjsCan you mix them? I really don’t knowcasperjsHow is it packaged

PhantomJS

var webPage = require('webpage');
 var page = webPage.create();
 
 page.open('http://www.weibo.com', function(status) {
 var cookies = page.cookies;
 for (var i in cookies) {
 Log (I plus' * * * *' plus cookies[i].name plus' =' plus cookies[i].value plus' *****domain ==' plus cookies[i].domain);
 bracket
 phantom.exit();
 });

casperjs

var casper = require('casper').create();
 
 casper.start('http://weibo.com/', function(response) {
 this.echo(this.getTitle());
 this.echo(this.cookies);  //undefined
 });
 
 casper.run();

Have you found a solution?