[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [setCookie](./puppeteer.page.setcookie.md)
## Page.setCookie() method
Signature:
```typescript
setCookie(...cookies: Protocol.Network.CookieParam[]): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cookies | Protocol.Network.CookieParam\[\] | |
Returns:
Promise<void>
## Example
```js
await page.setCookie(cookieObject1, cookieObject2);
```