CreateContextParameters

Represents a set of parameters for creating a context. Described in https://w3c.github.io/webdriver-bidi/#command-browsingContext-create.

Constructor

new CreateContextParameters()

Methods

background(background) → {CreateContextParameters}

Sets the background parameter.

Parameters:
NameTypeDescription
backgroundboolean

The background value to set.

Throws:
  • If the background parameter is not a boolean.
Type
Error
Returns:
  • The updated instance of CreateContextParameters for chaining.
Type: 
CreateContextParameters

referenceContext(id) → {CreateContextParameters}

Sets the reference context.

Parameters:
NameTypeDescription
idstring

The ID of the reference context.

Throws:
  • If the provided ID is not a string.
Type
Error
Returns:
  • The updated instance of CreateContextParameters for chaining.
Type: 
CreateContextParameters

userContext(userContext) → {CreateContextParameters}

Sets the user context.

Parameters:
NameTypeDescription
userContextstring

The user context to set.

Throws:
  • If the userContext parameter is not a string.
Type
Error
Returns:
  • The updated instance of CreateContextParameters for chaining.
Type: 
CreateContextParameters