Table of Contents

Class Frame

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

Information about the Frame on the page.

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

Constructors

Frame(FrameId, LoaderId, string, string, string, string, SecureContextType, CrossOriginIsolatedContextType, ImmutableArray<GatedAPIFeatures>)

Information about the Frame on the page.

public Frame(FrameId Id, LoaderId LoaderId, string Url, string DomainAndRegistry, string SecurityOrigin, string MimeType, SecureContextType SecureContextType, CrossOriginIsolatedContextType CrossOriginIsolatedContextType, ImmutableArray<GatedAPIFeatures> GatedAPIFeatures)

Parameters

Id FrameId

Frame unique identifier.

LoaderId LoaderId

Identifier of the loader associated with this frame.

Url string

Frame document's URL without fragment.

DomainAndRegistry string

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"

SecurityOrigin string

Frame document's security origin.

MimeType string

Frame document's mimeType as determined by the browser.

SecureContextType SecureContextType

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

CrossOriginIsolatedContextType CrossOriginIsolatedContextType

Indicates whether this is a cross origin isolated context.

GatedAPIFeatures ImmutableArray<GatedAPIFeatures>

Indicated which gated APIs / features are available.

Properties

AdFrameStatus

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

public AdFrameStatus? AdFrameStatus { get; init; }

Property Value

AdFrameStatus

CrossOriginIsolatedContextType

Indicates whether this is a cross origin isolated context.

public CrossOriginIsolatedContextType CrossOriginIsolatedContextType { get; init; }

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"

public string DomainAndRegistry { get; init; }

Property Value

string

GatedAPIFeatures

Indicated which gated APIs / features are available.

public ImmutableArray<GatedAPIFeatures> GatedAPIFeatures { get; init; }

Property Value

ImmutableArray<GatedAPIFeatures>

Id

Frame unique identifier.

public FrameId Id { get; init; }

Property Value

FrameId

LoaderId

Identifier of the loader associated with this frame.

public LoaderId LoaderId { get; init; }

Property Value

LoaderId

MimeType

Frame document's mimeType as determined by the browser.

public string MimeType { get; init; }

Property Value

string

Name

Frame's name as specified in the tag.

public string? Name { get; init; }

Property Value

string

ParentId

Parent frame identifier.

public FrameId? ParentId { get; init; }

Property Value

FrameId

SecureContextType

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

public SecureContextType SecureContextType { get; init; }

Property Value

SecureContextType

SecurityOrigin

Frame document's security origin.

public string SecurityOrigin { get; init; }

Property Value

string

SecurityOriginDetails

Additional details about the frame document's security origin.

public SecurityOriginDetails? SecurityOriginDetails { get; init; }

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.

public string? UnreachableUrl { get; init; }

Property Value

string

Url

Frame document's URL without fragment.

public string Url { get; init; }

Property Value

string

UrlFragment

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

public string? UrlFragment { get; init; }

Property Value

string