Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
interface Protocol.Page.SetDownloadBehaviorRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { SetDownloadBehaviorRequest } = Protocol.Page;

Properties

behavior: ("deny" | "allow" | "default")

Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). (SetDownloadBehaviorRequestBehavior enum)

optional
downloadPath: string

The default path to save downloaded files to. This is required if behavior is set to 'allow'