Table of Contents

Class Frame

Namespace
OpenQA.Selenium.DevTools.V146.Page
Assembly
Selenium.WebDriver.dll

Information about the Frame on the page.

public sealed class Frame
Inheritance
Frame
Inherited Members

Properties

AdFrameStatus

Indicates whether this frame was tagged as an ad and why.

[JsonPropertyName("adFrameStatus")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public AdFrameStatus? AdFrameStatus { get; set; }

Property Value

AdFrameStatus

CrossOriginIsolatedContextType

Indicates whether this is a cross origin isolated context.

[JsonPropertyName("crossOriginIsolatedContextType")]
public CrossOriginIsolatedContextType CrossOriginIsolatedContextType { get; set; }

Property Value

CrossOriginIsolatedContextType

DomainAndRegistry

Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -> "google.com" http://a.b.co.uk/file.html -> "b.co.uk"

[JsonPropertyName("domainAndRegistry")]
public string DomainAndRegistry { get; set; }

Property Value

string

GatedAPIFeatures

Indicated which gated APIs / features are available.

[JsonPropertyName("gatedAPIFeatures")]
public GatedAPIFeatures[] GatedAPIFeatures { get; set; }

Property Value

GatedAPIFeatures[]

Id

Frame unique identifier.

[JsonPropertyName("id")]
public string Id { get; set; }

Property Value

string

LoaderId

Identifier of the loader associated with this frame.

[JsonPropertyName("loaderId")]
public string LoaderId { get; set; }

Property Value

string

MimeType

Frame document's mimeType as determined by the browser.

[JsonPropertyName("mimeType")]
public string MimeType { get; set; }

Property Value

string

Name

Frame's name as specified in the tag.

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

Property Value

string

ParentId

Parent frame identifier.

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

Property Value

string

SecureContextType

Indicates whether the main document is a secure context and explains why that is the case.

[JsonPropertyName("secureContextType")]
public SecureContextType SecureContextType { get; set; }

Property Value

SecureContextType

SecurityOrigin

Frame document's security origin.

[JsonPropertyName("securityOrigin")]
public string SecurityOrigin { get; set; }

Property Value

string

SecurityOriginDetails

Additional details about the frame document's security origin.

[JsonPropertyName("securityOriginDetails")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SecurityOriginDetails? SecurityOriginDetails { get; set; }

Property Value

SecurityOriginDetails

UnreachableUrl

If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.

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

Property Value

string

Url

Frame document's URL without fragment.

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

Property Value

string

UrlFragment

Frame document's URL fragment including the '#'.

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

Property Value

string