pl.wendigo.chrome.domain.runtime / EvaluateRequest

EvaluateRequest

data class EvaluateRequest (source)

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

Evaluates expression on global object.

Constructors

<init>

EvaluateRequest(expression: String, objectGroup: String? = null, includeCommandLineAPI: Boolean? = null, silent: Boolean? = null, contextId: ExecutionContextId? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, userGesture: Boolean? = null, awaitPromise: Boolean? = null)

Represents request frame that can be used with Runtime.evaluate 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.

contextId

val contextId: ExecutionContextId?

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.

expression

val expression: String

Expression to evaluate.

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 that should be sent by value.

silent

val silent: Boolean?

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

userGesture

val userGesture: Boolean?

Whether execution should be treated as initiated by user in the UI.