cookies
phantom.cookies
{Object[]}
Introduced: PhantomJS 1.7
Get or set Cookies for any domain (though, for setting, use of phantom.addCookie
is preferred). These Cookies are stored in the CookieJar and will be supplied when opening pertinent WebPages.
This array will be pre-populated by any existing Cookie data stored in the cookie file specified in the PhantomJS startup config/command-line options, if any.
Examples
phantom.cookies
// @TODO: Finish phantom.cookies example.