pl.wendigo.chrome.api.runtime / AddBindingRequest

AddBindingRequest

data class AddBindingRequest (source)

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

If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. If executionContextId is specified, adds binding only on global object of given execution context. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

Link
Runtime#addBinding method documentation.

See Also

RuntimeOperations.addBinding

Constructors

<init>

AddBindingRequest(name: String, executionContextId: ExecutionContextId? = null)

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

Properties

executionContextId

val executionContextId: ExecutionContextId?

name

val name: String