Table of Contents

Class CookieIssueDetails

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

This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.

public sealed class CookieIssueDetails
Inheritance
CookieIssueDetails
Inherited Members

Properties

If AffectedCookie is not set then rawCookieLine contains the raw Set-Cookie header string. This hints at a problem where the cookie line is syntactically or semantically malformed in a way that no valid cookie could be created.

[JsonPropertyName("cookie")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public AffectedCookie? Cookie { get; set; }

Property Value

AffectedCookie

CookieExclusionReasons

cookieExclusionReasons

[JsonPropertyName("cookieExclusionReasons")]
public CookieExclusionReason[] CookieExclusionReasons { get; set; }

Property Value

CookieExclusionReason[]

CookieUrl

cookieUrl

[JsonPropertyName("cookieUrl")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? CookieUrl { get; set; }

Property Value

string

CookieWarningReasons

cookieWarningReasons

[JsonPropertyName("cookieWarningReasons")]
public CookieWarningReason[] CookieWarningReasons { get; set; }

Property Value

CookieWarningReason[]

Insight

The recommended solution to the issue.

[JsonPropertyName("insight")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookieIssueInsight? Insight { get; set; }

Property Value

CookieIssueInsight

Operation

Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.

[JsonPropertyName("operation")]
public CookieOperation Operation { get; set; }

Property Value

CookieOperation

RawCookieLine

rawCookieLine

[JsonPropertyName("rawCookieLine")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? RawCookieLine { get; set; }

Property Value

string

Request

request

[JsonPropertyName("request")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public AffectedRequest? Request { get; set; }

Property Value

AffectedRequest

SiteForCookies

siteForCookies

[JsonPropertyName("siteForCookies")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SiteForCookies { get; set; }

Property Value

string