2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [cookies](./puppeteer.page.cookies.md)
|
|
|
|
|
|
|
|
## Page.cookies() method
|
|
|
|
|
2020-07-03 12:12:59 +00:00
|
|
|
If no URLs are specified, this method returns cookies for the current page URL. If URLs are specified, only cookies for those URLs are returned.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
cookies(...urls: string[]): Promise<Protocol.Network.Cookie[]>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| urls | string\[\] | |
|
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-07-13 13:01:35 +00:00
|
|
|
Promise<[Protocol.Network.Cookie](./puppeteer.protocol.network.cookie.md)<!-- -->\[\]>
|
2020-06-04 14:56:45 +00:00
|
|
|
|