Skip to main content
Version: 23.9.0

Page.setCookie() method

Signature

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

Parameters

Parameter

Type

Description

cookies

CookieParam[]

Returns:

Promise<void>

Example

await page.setCookie(cookieObject1, cookieObject2);