deleteCookie
deleteCookie(cookieName)
{boolean}
Introduced: PhantomJS 1.7
Delete any Cookies visible to the current URL with a ‘name’ property matching cookieName
. Returns true
if successfully deleted, otherwise false
.
Examples
var webPage = require('webpage');
var page = webPage.create();
page.deleteCookie('Added-Cookie-Name');