From 7455c7975d52a19edf270d75c01025a56fb6460d Mon Sep 17 00:00:00 2001 From: Grzegorz Pawlik Date: Sat, 11 Oct 2014 21:47:50 +0200 Subject: [PATCH] structure of cookie objects --- _posts/api/webpage/property/2000-01-01-cookies.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/_posts/api/webpage/property/2000-01-01-cookies.md b/_posts/api/webpage/property/2000-01-01-cookies.md index 3b2aaaba..10bd7fa5 100644 --- a/_posts/api/webpage/property/2000-01-01-cookies.md +++ b/_posts/api/webpage/property/2000-01-01-cookies.md @@ -7,6 +7,20 @@ permalink: api/webpage/property/cookies.html Get or set Cookies visible to the current URL (though, for setting, use of `page.addCookie` is preferred). This array will be pre-populated by any existing Cookie data visible to this URL that is stored in the CookieJar, if any. +Cookies is an array of objects: +```javascript +{ + domain: 'example.com', + expires: 'Sat Oct 11 2014 21:44:33 GMT+0200 (CEST)', + expiry: 1476128618, + httponly: false, + name: 'cookieName', + path: '/', + secure: false, + value: cookieValue +} +``` + ## Examples ```javascript