data class EvaluateRequest
(source)
Represents request frame that can be used with Runtime.evaluate method call.
Evaluates expression on global object.
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. |
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. |
|
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. |
|
val expression: String
Expression to evaluate. |
|
val generatePreview: Boolean?
Whether preview should be generated for the result. |
|
val includeCommandLineAPI: Boolean?
Determines whether Command Line API should be available during the evaluation. |
|
val objectGroup: String?
Symbolic group name that can be used to release multiple objects. |
|
val returnByValue: Boolean?
Whether the result is expected to be a JSON object that should be sent by value. |
|
val silent: Boolean?
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. |
|
val userGesture: Boolean?
Whether execution should be treated as initiated by user in the UI. |