Table of Contents

Class Cookie

Namespace
Selenium.WebDriver.BiDi.Cdp.Network
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Cookie object

public sealed record Cookie : IEquatable<Cookie>
Inheritance
Cookie
Implements
Inherited Members

Constructors

Cookie object

public Cookie(string Name, string Value, string Domain, string Path, double Expires, long Size, bool HttpOnly, bool Secure, bool Session, CookiePriority Priority, CookieSourceScheme SourceScheme, long SourcePort)

Parameters

Name string

Cookie name.

Value string

Cookie value.

Domain string

Cookie domain.

Path string

Cookie path.

Expires double

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).

Size long

Cookie size.

HttpOnly bool

True if cookie is http-only.

Secure bool

True if cookie is secure.

Session bool

True in case of session cookie.

Priority CookiePriority

Cookie Priority

SourceScheme CookieSourceScheme

Cookie source scheme type.

SourcePort 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.

Properties

Cookie domain.

public string Domain { get; init; }

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).

public double Expires { get; init; }

Property Value

double

True if cookie is http-only.

public bool HttpOnly { get; init; }

Property Value

bool

Cookie name.

public string Name { get; init; }

Property Value

string

Cookie partition key.

public CookiePartitionKey? PartitionKey { get; init; }

Property Value

CookiePartitionKey

True if cookie partition key is opaque.

public bool? PartitionKeyOpaque { get; init; }

Property Value

bool?

Cookie path.

public string Path { get; init; }

Property Value

string

Cookie Priority

public CookiePriority Priority { get; init; }

Property Value

CookiePriority

Cookie SameSite type.

public CookieSameSite? SameSite { get; init; }

Property Value

CookieSameSite?

True if cookie is secure.

public bool Secure { get; init; }

Property Value

bool

True in case of session cookie.

public bool Session { get; init; }

Property Value

bool

Cookie size.

public long Size { get; init; }

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.

public long SourcePort { get; init; }

Property Value

long

Cookie source scheme type.

public CookieSourceScheme SourceScheme { get; init; }

Property Value

CookieSourceScheme

Cookie value.

public string Value { get; init; }

Property Value

string