Table of Contents

Class SetPermissionCommandParameters

Namespace
WebDriverBiDi.Permissions
Assembly
WebDriverBiDi.dll

Provides parameters for the permissions.setPermission command.

public class SetPermissionCommandParameters : CommandParameters<SetPermissionCommandResult>
Inheritance
SetPermissionCommandParameters
Inherited Members

Constructors

SetPermissionCommandParameters(string, PermissionState, string)

Initializes a new instance of the SetPermissionCommandParameters class.

public SetPermissionCommandParameters(string permissionName, PermissionState state, string origin)

Parameters

permissionName string

The name of the permission to set.

state PermissionState

The state of the permission to set.

origin string

The origin, usually a URL, for which the permission will be set.

SetPermissionCommandParameters(PermissionDescriptor, PermissionState, string)

Initializes a new instance of the SetPermissionCommandParameters class.

public SetPermissionCommandParameters(PermissionDescriptor descriptor, PermissionState state, string origin)

Parameters

descriptor PermissionDescriptor

The descriptor of the permission to set.

state PermissionState

The state of the permission to set.

origin string

The origin, usually a URL, for which the permission will be set.

Properties

Descriptor

Gets or sets the descriptor of the permission to set.

[JsonPropertyName("descriptor")]
public PermissionDescriptor Descriptor { get; set; }

Property Value

PermissionDescriptor

EmbeddedOrigin

Gets or sets the embedded origin of the permission.

[JsonPropertyName("embeddedOrigin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? EmbeddedOrigin { get; set; }

Property Value

string

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string

Origin

Gets or sets the origin, usually a URL, for which to set the permission.

[JsonPropertyName("origin")]
public string Origin { get; set; }

Property Value

string

State

Gets or sets the state of the permission to set.

[JsonPropertyName("state")]
public PermissionState State { get; set; }

Property Value

PermissionState

UserContextId

Gets or sets the ID of the user context for which to set the permission.

[JsonPropertyName("userContext")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? UserContextId { get; set; }

Property Value

string