Skip to main content
Version: 22.0.0

Page.setCookie() method

Signature:

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

Parameters

ParameterTypeDescription
cookiesCookieParam[]

Returns:

Promise<void>

Example

await page.setCookie(cookieObject1, cookieObject2);