Table of Contents

Class GrantPermissionsCommandSettings

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

Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.

public sealed class GrantPermissionsCommandSettings : ICommand
Inheritance
GrantPermissionsCommandSettings
Implements
Inherited Members

Properties

BrowserContextId

BrowserContext to override permissions. 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

Origin

Origin the permission applies to, all origins if not specified.

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

Property Value

string

Permissions

Gets or sets the permissions

[JsonPropertyName("permissions")]
public PermissionType[] Permissions { get; set; }

Property Value

PermissionType[]