pl.wendigo.chrome.domain.runtime / RunScriptRequest

RunScriptRequest

data class RunScriptRequest (source)

Represents request frame that can be used with Runtime.runScript method call.

Runs script with given id in a given context.

Constructors

<init>

RunScriptRequest(scriptId: ScriptId, executionContextId: ExecutionContextId? = null, objectGroup: String? = null, silent: Boolean? = null, includeCommandLineAPI: Boolean? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, awaitPromise: Boolean? = null)

Represents request frame that can be used with Runtime.runScript method call.

Properties

awaitPromise

val awaitPromise: Boolean?

Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.

executionContextId

val 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

val generatePreview: Boolean?

Whether preview should be generated for the result.

includeCommandLineAPI

val includeCommandLineAPI: Boolean?

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

objectGroup

val objectGroup: String?

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

returnByValue

val returnByValue: Boolean?

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

scriptId

val scriptId: ScriptId

Id of the script to run.

silent

val silent: Boolean?

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