Table of Contents

Class SetPermissionCommandSettings

Namespace
OpenQA.Selenium.DevTools.V148.Browser
Assembly
Selenium.WebDriver.dll

Set permission settings for given embedding and embedded origins.

public sealed class SetPermissionCommandSettings : ICommand
Inheritance
SetPermissionCommandSettings
Implements
Inherited Members

Properties

BrowserContextId

Context to override. When omitted, default browser context is used.

[JsonPropertyName("browserContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BrowserContextId { get; set; }

Property Value

string

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

EmbeddedOrigin

Embedded origin the permission applies to. It is ignored unless the embedding origin is present and valid. If the embedding origin is provided but the embedded origin isn't, the embedding origin is used as the embedded origin.

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

Property Value

string

Origin

Embedding origin the permission applies to, all origins if not specified.

[JsonPropertyName("origin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Origin { get; set; }

Property Value

string

Permission

Descriptor of permission to override.

[JsonPropertyName("permission")]
public PermissionDescriptor Permission { get; set; }

Property Value

PermissionDescriptor

Setting

Setting of the permission.

[JsonPropertyName("setting")]
public PermissionSetting Setting { get; set; }

Property Value

PermissionSetting