Table of Contents

Class DeleteCookiesCommandSettings

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

Deletes browser cookies with matching name and url or domain/path/partitionKey pair.

public sealed class DeleteCookiesCommandSettings : ICommand
Inheritance
DeleteCookiesCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Domain

If specified, deletes only cookies with the exact domain.

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

Property Value

string

Name

Name of the cookies to remove.

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string

PartitionKey

If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute.

[JsonPropertyName("partitionKey")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookiePartitionKey? PartitionKey { get; set; }

Property Value

CookiePartitionKey

Path

If specified, deletes only cookies with the exact path.

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

Property Value

string

Url

If specified, deletes all the cookies with the given name where domain and path match provided URL.

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

Property Value

string