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

x/sinco/deps.ts>Protocol.Page.SetDownloadBehaviorRequest

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.Page.SetDownloadBehaviorRequest
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.ts";
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'