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

x/sinco/deps.ts>Protocol.Target.CreateTargetRequest

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.Target.CreateTargetRequest
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.ts";
const { CreateTargetRequest } = Protocol.Target;

Properties

url: string

The initial URL the page will be navigated to. An empty string indicates about:blank.

optional
width: integer

Frame width in DIP (headless chrome only).

optional
height: integer

Frame height in DIP (headless chrome only).

optional
browserContextId: Browser.BrowserContextID

The browser context to create the page in.

optional
enableBeginFrameControl: boolean

Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).

optional
newWindow: boolean

Whether to create a new Window or Tab (chrome-only, false by default).

optional
background: boolean

Whether to create the target in background or foreground (chrome-only, false by default).