Target.createTarget
Creates a new page.
{
"name": "createTarget",
"description": "Creates a new page.",
"parameters": [
{
"name": "url",
"type": "string",
"description": "The initial URL the page will be navigated to."
},
{
"name": "width",
"type": "integer",
"description": "Frame width in DIP (headless chrome only).",
"optional": true
},
{
"name": "height",
"type": "integer",
"description": "Frame height in DIP (headless chrome only).",
"optional": true
},
{
"name": "browserContextId",
"$ref": "BrowserContextID",
"description": "The browser context to create the page in (headless chrome only).",
"optional": true
},
{
"name": "enableBeginFrameControl",
"type": "boolean",
"description": "Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).",
"optional": true,
"experimental": true
}
],
"returns": [
{
"name": "targetId",
"$ref": "TargetID",
"description": "The id of the page opened."
}
]
}