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
permissionNamestringThe name of the permission to set.
statePermissionStateThe state of the permission to set.
originstringThe 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
descriptorPermissionDescriptorThe descriptor of the permission to set.
statePermissionStateThe state of the permission to set.
originstringThe 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
EmbeddedOrigin
Gets or sets the embedded origin of the permission.
[JsonPropertyName("embeddedOrigin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? EmbeddedOrigin { get; set; }
Property Value
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
Origin
Gets or sets the origin, usually a URL, for which to set the permission.
[JsonPropertyName("origin")]
public string Origin { get; set; }
Property Value
State
Gets or sets the state of the permission to set.
[JsonPropertyName("state")]
public PermissionState State { get; set; }
Property Value
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; }