Emulation.forceViewport

Overrides the visible area of the page. The change is hidden from the page, i.e. the observable scroll position and page scale does not change. In effect, the command moves the specified area of the page into the top-left corner of the frame.

{
  "name": "forceViewport",
  "description": "Overrides the visible area of the page. The change is hidden from the page, i.e. the observable scroll position and page scale does not change. In effect, the command moves the specified area of the page into the top-left corner of the frame.",
  "experimental": true,
  "parameters": [
    {
      "name": "x",
      "type": "number",
      "description": "X coordinate of top-left corner of the area (CSS pixels)."
    },
    {
      "name": "y",
      "type": "number",
      "description": "Y coordinate of top-left corner of the area (CSS pixels)."
    },
    {
      "name": "scale",
      "type": "number",
      "description": "Scale to apply to the area (relative to a page scale of 1.0)."
    }
  ]
}