Table of Contents

Class Cookie

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class Cookie
Inheritance
Cookie
Inherited Members

Constructors

public Cookie()

Properties

either url or domain / path are required Optional.

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

Property Value

string

Unix time in seconds. Optional.

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

Property Value

float?

Optional.

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

Property Value

bool?

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

Property Value

string

either url or domain / path are required Optional.

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

Property Value

string

Optional.

[JsonPropertyName("sameSite")]
public SameSiteAttribute? SameSite { get; set; }

Property Value

SameSiteAttribute?

Optional.

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

Property Value

bool?

either url or domain / path are required. Optional.

[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string

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

Property Value

string