Table of Contents

Class CloseCommandParameters

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Provides parameters for the browsingContext.close command.

public class CloseCommandParameters : CommandParameters<CloseCommandResult>
Inheritance
CloseCommandParameters
Inherited Members

Constructors

CloseCommandParameters(string)

Initializes a new instance of the CloseCommandParameters class.

public CloseCommandParameters(string browsingContextId)

Parameters

browsingContextId string

The ID of the browsing context to close.

Properties

BrowsingContextId

Gets or sets the ID of the browsing context to close.

[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }

Property Value

string

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string

PromptUnload

Gets or sets a value indicating whether to prompt for unloading the page when closing the browsing context.

[JsonPropertyName("promptUnload")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? PromptUnload { get; set; }

Property Value

bool?