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
    }
  ],
  "returns": [
    {
      "name": "targetId",
      "$ref": "TargetID",
      "description": "The id of the page opened."
    }
  ]
}