Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/Page.ts>Page#cookies

Headless Chrome Deno API
Latest
method Page.prototype.cookies
import { Page } from "https://deno.land/x/pptr@1.2.0/src/Page.ts";

If no URLs are specified, this method returns cookies for the current page URL. If URLs are specified, only cookies for those URLs are returned.

Parameters

...urls: string[]

Returns

Promise<Protocol.Network.Cookie[]>