Table of Contents

Class Cookie

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

Cookie object

public sealed class Cookie
Inheritance
Cookie
Inherited Members

Properties

Cookie domain.

[JsonPropertyName("domain")]
public string Domain { get; set; }

Property Value

string

Cookie expiration date as the number of seconds since the UNIX epoch. The value is set to -1 if the expiry date is not set. The value can be null for values that cannot be represented in JSON (±Inf).

[JsonPropertyName("expires")]
public double Expires { get; set; }

Property Value

double

True if cookie is http-only.

[JsonPropertyName("httpOnly")]
public bool HttpOnly { get; set; }

Property Value

bool

Cookie name.

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

Property Value

string

Cookie partition key.

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

Property Value

CookiePartitionKey

True if cookie partition key is opaque.

[JsonPropertyName("partitionKeyOpaque")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? PartitionKeyOpaque { get; set; }

Property Value

bool?

Cookie path.

[JsonPropertyName("path")]
public string Path { get; set; }

Property Value

string

Cookie Priority

[JsonPropertyName("priority")]
public CookiePriority Priority { get; set; }

Property Value

CookiePriority

Cookie SameSite type.

[JsonPropertyName("sameSite")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookieSameSite? SameSite { get; set; }

Property Value

CookieSameSite?

True if cookie is secure.

[JsonPropertyName("secure")]
public bool Secure { get; set; }

Property Value

bool

True in case of session cookie.

[JsonPropertyName("session")]
public bool Session { get; set; }

Property Value

bool

Cookie size.

[JsonPropertyName("size")]
public long Size { get; set; }

Property Value

long

Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.

[JsonPropertyName("sourcePort")]
public long SourcePort { get; set; }

Property Value

long

Cookie source scheme type.

[JsonPropertyName("sourceScheme")]
public CookieSourceScheme SourceScheme { get; set; }

Property Value

CookieSourceScheme

Cookie value.

[JsonPropertyName("value")]
public string Value { get; set; }

Property Value

string