Class Cookie
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class Cookie
- Inheritance
-
Cookie
- Inherited Members
Constructors
Cookie()
public Cookie()
Properties
Domain
either url or domain / path are required Optional.
[JsonPropertyName("domain")]
public string? Domain { get; set; }
Property Value
Expires
Unix time in seconds. Optional.
[JsonPropertyName("expires")]
public float? Expires { get; set; }
Property Value
HttpOnly
Optional.
[JsonPropertyName("httpOnly")]
public bool? HttpOnly { get; set; }
Property Value
- bool?
Name
[Required]
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Path
either url or domain / path are required Optional.
[JsonPropertyName("path")]
public string? Path { get; set; }
Property Value
SameSite
Optional.
[JsonPropertyName("sameSite")]
public SameSiteAttribute? SameSite { get; set; }
Property Value
Secure
Optional.
[JsonPropertyName("secure")]
public bool? Secure { get; set; }
Property Value
- bool?
Url
either url or domain / path are required. Optional.
[JsonPropertyName("url")]
public string? Url { get; set; }
Property Value
Value
[Required]
[JsonPropertyName("value")]
public string Value { get; set; }