Browser.deleteCookie() method
Removes cookies from the default BrowserContext.
Signature
class Browser {
deleteCookie(...cookies: Cookie[]): Promise<void>;
}
Parameters
Parameter | Type | Description |
---|---|---|
cookies | Cookie[] |
Returns:
Promise<void>
Remarks
Shortcut for browser.defaultBrowserContext().deleteCookie().