mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.8 KiB
1.8 KiB
Home > puppeteer > Protocol > Target > CreateTargetRequest
Protocol.Target.CreateTargetRequest interface
Signature:
export interface CreateTargetRequest
Properties
Property | Type | Description |
---|---|---|
background | boolean | Whether to create the target in background or foreground (chrome-only, false by default). |
browserContextId | Browser.BrowserContextID | The browser context to create the page in. |
enableBeginFrameControl | boolean | Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default). |
height | integer | Frame height in DIP (headless chrome only). |
newWindow | boolean | Whether to create a new Window or Tab (chrome-only, false by default). |
url | string | The initial URL the page will be navigated to. |
width | integer | Frame width in DIP (headless chrome only). |