pl.wendigo.chrome.api.runtime / EvaluateRequest

EvaluateRequest

data class EvaluateRequest (source)

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

Evaluates expression on global object.

Link
Runtime#evaluate method documentation.

See Also

RuntimeOperations.evaluate

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, throwOnSideEffect: Boolean? = null, timeout: TimeDelta? = null, disableBreaks: Boolean? = null)

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

Properties

awaitPromise

val awaitPromise: Boolean?

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

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.

disableBreaks

val disableBreaks: Boolean?

Disable breakpoints during execution.

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.

throwOnSideEffect

val throwOnSideEffect: Boolean?

Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below.

timeout

val timeout: TimeDelta?

Terminate execution after timing out (number of milliseconds).

userGesture

val userGesture: Boolean?

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