PagePage.setCookieVersion: 23.8.0On this pagePage.setCookie() 方法 ¥Page.setCookie() method 签名 ¥Signature class Page { abstract setCookie(...cookies: CookieParam[]): Promise<void>;} 参数 ¥Parameters 范围类型描述cookiesCookieParam[] Returns: Promise<void> 示例 ¥Example await page.setCookie(cookieObject1, cookieObject2);