chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / AddScriptToEvaluateOnNewDocumentRequest

AddScriptToEvaluateOnNewDocumentRequest

data class AddScriptToEvaluateOnNewDocumentRequest

Request object containing input parameters for the PageDomain.addScriptToEvaluateOnNewDocument command.

Constructors

<init>

Request object containing input parameters for the PageDomain.addScriptToEvaluateOnNewDocument command.

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

Properties

source

val source: String

worldName

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.

val worldName: String?