Browser.cookies() method
Returns all cookies in the default BrowserContext.
Signature
class Browser {
cookies(): Promise<Cookie[]>;
}
Returns:
Promise<Cookie[]>
Remarks
Shortcut for browser.defaultBrowserContext().cookies().
Returns all cookies in the default BrowserContext.
class Browser {
cookies(): Promise<Cookie[]>;
}
Returns:
Promise<Cookie[]>
Shortcut for browser.defaultBrowserContext().cookies().