Table of Contents

Class CookieParam

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

Cookie parameter object

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

Constructors

CookieParam(string, string)

Cookie parameter object

public CookieParam(string Name, string Value)

Parameters

Name string

Cookie name.

Value string

Cookie value.

Properties

Domain

Cookie domain.

public string? Domain { get; init; }

Property Value

string

Expires

Cookie expiration date, session cookie if not set

public TimeSinceEpoch? Expires { get; init; }

Property Value

TimeSinceEpoch

HttpOnly

True if cookie is http-only.

public bool? HttpOnly { get; init; }

Property Value

bool?

Name

Cookie name.

public string Name { get; init; }

Property Value

string

PartitionKey

Cookie partition key. If not set, the cookie will be set as not partitioned.

public CookiePartitionKey? PartitionKey { get; init; }

Property Value

CookiePartitionKey

Path

Cookie path.

public string? Path { get; init; }

Property Value

string

Priority

Cookie Priority.

public CookiePriority? Priority { get; init; }

Property Value

CookiePriority?

SameSite

Cookie SameSite type.

public CookieSameSite? SameSite { get; init; }

Property Value

CookieSameSite?

Secure

True if cookie is secure.

public bool? Secure { get; init; }

Property Value

bool?

SourcePort

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?

SourceScheme

Cookie source scheme type.

public CookieSourceScheme? SourceScheme { get; init; }

Property Value

CookieSourceScheme?

Url

The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.

public string? Url { get; init; }

Property Value

string

Value

Cookie value.

public string Value { get; init; }

Property Value

string