1 Replies - 1273 Views - Last Post: 09 April 2013 - 10:59 AM

#1 g37752  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 195
  • Joined: 24-July 12

phantomJS does not get all cookies when compared with firebug

Posted 09 April 2013 - 10:49 AM

at command prompt,
phantomjs --cookies-file=cookies.txt test.js


test.js:

var page = require('webpage').create();
page.open('http://example.com', function (status) {
    page.evaluate(function() {
        document.cookie;
    });
    page.cookies; 
    phantom.cookies;
});


i compare cookies.txt with what i see in firebug, and there are quite a bit of missing cookies?

This post has been edited by Dormilich: 09 April 2013 - 11:00 AM


Is This A Good Question/Topic? 0
  • +

Replies To: phantomJS does not get all cookies when compared with firebug

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,236
  • Joined: 08-June 10

Re: phantomJS does not get all cookies when compared with firebug

Posted 09 April 2013 - 10:59 AM

hm, I don’t see how we could help there. you could ask the PhantomJS developers, though.

This post has been edited by Dormilich: 09 April 2013 - 11:00 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1