chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.runtime / CompileScriptRequest

CompileScriptRequest

data class CompileScriptRequest

Request object containing input parameters for the RuntimeDomain.compileScript command.

Constructors

<init>

Request object containing input parameters for the RuntimeDomain.compileScript command.

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

Properties

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.

val executionContextId: ExecutionContextId?

expression

Expression to compile.

val expression: String

persistScript

Specifies whether the compiled script should be persisted.

val persistScript: Boolean

sourceURL

Source url to be set for the script.

val sourceURL: String