Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Target.CreateTargetRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { CreateTargetRequest } = default.Target;

Properties

url: string

The initial URL the page will be navigated to.

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).