Skip to main content

Page.setCookie() method

Signature:

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

Parameters

ParameterTypeDescription
cookiesProtocol.Network.CookieParam[]

Returns:

Promise<void>

Example

await page.setCookie(cookieObject1, cookieObject2);