Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Runtime.RunScriptRequest
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { RunScriptRequest } = default.Runtime;

Properties

scriptId: ScriptId

Id of the script to run.

optional
executionContextId: ExecutionContextId

Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.

optional
objectGroup: string

Symbolic group name that can be used to release multiple objects.

optional
silent: boolean

In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

optional
includeCommandLineAPI: boolean

Determines whether Command Line API should be available during the evaluation.

optional
returnByValue: boolean

Whether the result is expected to be a JSON object which should be sent by value.

optional
generatePreview: boolean

Whether preview should be generated for the result.

optional
awaitPromise: boolean

Whether execution should await for resulting value and return once awaited promise is resolved.