Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface default.Target.CreateTargetRequest
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { CreateTargetRequest } = default.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).