puppeteer/new-docs/puppeteer.protocol.runtime.runscriptrequest.md
2020-07-13 14:01:35 +01:00

2.1 KiB

Home > puppeteer > Protocol > Runtime > RunScriptRequest

Protocol.Runtime.RunScriptRequest interface

Signature:

export interface RunScriptRequest 

Properties

Property Type Description
awaitPromise boolean Whether execution should await for resulting value and return once awaited promise is resolved.
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.
generatePreview boolean Whether preview should be generated for the result.
includeCommandLineAPI boolean Determines whether Command Line API should be available during the evaluation.
objectGroup string Symbolic group name that can be used to release multiple objects.
returnByValue boolean Whether the result is expected to be a JSON object which should be sent by value.
scriptId ScriptId Id of the script to run.
silent boolean In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.