pl.wendigo.chrome.api.runtime / CompileScriptRequest

CompileScriptRequest

data class CompileScriptRequest (source)

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

Compiles expression.

Link
Runtime#compileScript method documentation.

See Also

RuntimeOperations.compileScript

Constructors

<init>

CompileScriptRequest(expression: String, sourceURL: String, persistScript: Boolean, executionContextId: ExecutionContextId? = null)

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

Properties

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.

expression

val expression: String

Expression to compile.

persistScript

val persistScript: Boolean

Specifies whether the compiled script should be persisted.

sourceURL

val sourceURL: String

Source url to be set for the script.