puppeteer/website/versioned_docs/version-9.1.1/puppeteer.page.setcookie.md
2021-08-10 11:09:48 +01:00

591 B

Home > puppeteer > Page > setCookie

Page.setCookie() method

Signature:

setCookie(...cookies: Protocol.Network.CookieParam[]): Promise<void>;

Parameters

Parameter Type Description
cookies Protocol.Network.CookieParam[]

Returns:

Promise<void>

Example

await page.setCookie(cookieObject1, cookieObject2);