pl.wendigo.chrome.domain.page / AddScriptToEvaluateOnNewDocumentRequest

AddScriptToEvaluateOnNewDocumentRequest

data class AddScriptToEvaluateOnNewDocumentRequest (source)

Represents request frame that can be used with Page.addScriptToEvaluateOnNewDocument method call.

Evaluates given script in every frame upon creation (before loading frame's scripts).

Constructors

<init>

AddScriptToEvaluateOnNewDocumentRequest(source: String, worldName: String? = null)

Represents request frame that can be used with Page.addScriptToEvaluateOnNewDocument method call.

Properties

source

val source: String

worldName

val worldName: String?

If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.