Merge pull request #12642 from pawlik/patch-1

structure of cookie objects
gh-pages
Ariya Hidayat 2014-10-11 13:19:17 -07:00
commit 9c3bd6d2bd
1 changed files with 14 additions and 0 deletions

View File

@ -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. 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 ## Examples
```javascript ```javascript