AddBindingRequest

@Serializable
data class AddBindingRequest(val name: String, val executionContextId: ExecutionContextId? = null, val executionContextName: String? = null)

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

Constructors

Link copied to clipboard
constructor(name: String, executionContextId: ExecutionContextId? = null, executionContextName: String? = null)

Types

Link copied to clipboard
class Builder(val name: String)

A builder for AddBindingRequest, which allows setting the optional parameters of the RuntimeDomain.addBinding command via a lambda.

Properties

Link copied to clipboard

If specified, the binding would only be exposed to the specified execution context. If omitted and executionContextName is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with executionContextName. Deprecated in favor of executionContextName due to an unclear use case and bugs in implementation (crbug.com/1169639). executionContextId will be removed in the future.

Link copied to clipboard

If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ExecutionContext.name and worldName parameter to Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive with executionContextId.

Link copied to clipboard

(undocumented in the protocol definition)