puppeteer/new-docs/puppeteer.protocol.target.createtargetrequest.md
2020-07-13 14:01:35 +01:00

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