DOM.highlightRect

Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

{
  "name": "highlightRect",
  "parameters": [
    {
      "name": "x",
      "type": "integer",
      "description": "X coordinate"
    },
    {
      "name": "y",
      "type": "integer",
      "description": "Y coordinate"
    },
    {
      "name": "width",
      "type": "integer",
      "description": "Rectangle width"
    },
    {
      "name": "height",
      "type": "integer",
      "description": "Rectangle height"
    },
    {
      "name": "color",
      "$ref": "RGBAColor",
      "optional": true,
      "description": "The highlight fill color (default: transparent)."
    },
    {
      "name": "outlineColor",
      "$ref": "RGBAColor",
      "optional": true,
      "description": "The highlight outline color (default: transparent)."
    },
    {
      "name": "usePageCoordinates",
      "type": "boolean",
      "optional": true,
      "description": "Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default)."
    }
  ],
  "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport."
}