Skip to main content
Version: 21.10.0

Page.setCookie() method

Signature:

class Page {
abstract setCookie(...cookies: Protocol.Network.CookieParam[]): Promise<void>;
}

Parameters

ParameterTypeDescription
cookiesProtocol.Network.CookieParam[]

Returns:

Promise<void>

Example

await page.setCookie(cookieObject1, cookieObject2);