Runtime.evaluate

Evaluates expression on global object.

{
  "name": "evaluate",
  "parameters": [
    {
      "name": "expression",
      "type": "string",
      "description": "Expression to evaluate."
    },
    {
      "name": "silent",
      "type": "boolean",
      "optional": true,
      "description": "In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state."
    },
    {
      "name": "contextId",
      "$ref": "ExecutionContextId",
      "optional": true,
      "description": "Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
    },
    {
      "name": "returnByValue",
      "type": "boolean",
      "optional": true,
      "description": "Whether the result is expected to be a JSON object that should be sent by value."
    },
    {
      "name": "awaitPromise",
      "type": "boolean",
      "optional": true,
      "description": "Whether execution should await for resulting value and return once awaited promise is resolved."
    }
  ],
  "returns": [
    {
      "name": "result",
      "$ref": "RemoteObject",
      "description": "Evaluation result."
    }
  ],
  "description": "Evaluates expression on global object."
}