Table of Contents

Class BackForwardCacheNotUsedEventArgs

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

Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.

public sealed record BackForwardCacheNotUsedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<BackForwardCacheNotUsedEventArgs>
Inheritance
EventArgs
BackForwardCacheNotUsedEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

BackForwardCacheNotUsedEventArgs(LoaderId, FrameId, ImmutableArray<BackForwardCacheNotRestoredExplanation>, BackForwardCacheNotRestoredExplanationTree?)

Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.

public BackForwardCacheNotUsedEventArgs(LoaderId LoaderId, FrameId FrameId, ImmutableArray<BackForwardCacheNotRestoredExplanation> NotRestoredExplanations, BackForwardCacheNotRestoredExplanationTree? NotRestoredExplanationsTree = null)

Parameters

LoaderId LoaderId

The loader id for the associated navigation.

FrameId FrameId

The frame id of the associated frame.

NotRestoredExplanations ImmutableArray<BackForwardCacheNotRestoredExplanation>

Array of reasons why the page could not be cached. This must not be empty.

NotRestoredExplanationsTree BackForwardCacheNotRestoredExplanationTree

Tree structure of reasons why the page could not be cached for each frame.

Properties

FrameId

The frame id of the associated frame.

public FrameId FrameId { get; init; }

Property Value

FrameId

LoaderId

The loader id for the associated navigation.

public LoaderId LoaderId { get; init; }

Property Value

LoaderId

NotRestoredExplanations

Array of reasons why the page could not be cached. This must not be empty.

public ImmutableArray<BackForwardCacheNotRestoredExplanation> NotRestoredExplanations { get; init; }

Property Value

ImmutableArray<BackForwardCacheNotRestoredExplanation>

NotRestoredExplanationsTree

Tree structure of reasons why the page could not be cached for each frame.

public BackForwardCacheNotRestoredExplanationTree? NotRestoredExplanationsTree { get; init; }

Property Value

BackForwardCacheNotRestoredExplanationTree