Page.Viewport

Viewport for capturing screenshot.

{
  "id": "Viewport",
  "type": "object",
  "description": "Viewport for capturing screenshot.",
  "properties": [
    {
      "name": "x",
      "type": "number",
      "description": "X offset in CSS pixels."
    },
    {
      "name": "y",
      "type": "number",
      "description": "Y offset in CSS pixels"
    },
    {
      "name": "width",
      "type": "number",
      "description": "Rectangle width in CSS pixels"
    },
    {
      "name": "height",
      "type": "number",
      "description": "Rectangle height in CSS pixels"
    },
    {
      "name": "scale",
      "type": "number",
      "description": "Page scale factor."
    }
  ]
}