Class BackForwardCacheNotUsed
- java.lang.Object
-
- org.openqa.selenium.devtools.v107.page.model.BackForwardCacheNotUsed
-
@Beta public class BackForwardCacheNotUsed extends java.lang.ObjectFired 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.
-
-
Constructor Summary
Constructors Constructor Description BackForwardCacheNotUsed(LoaderId loaderId, FrameId frameId, java.util.List<BackForwardCacheNotRestoredExplanation> notRestoredExplanations, java.util.Optional<BackForwardCacheNotRestoredExplanationTree> notRestoredExplanationsTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameIdgetFrameId()The frame id of the associated frame.LoaderIdgetLoaderId()The loader id for the associated navgation.java.util.List<BackForwardCacheNotRestoredExplanation>getNotRestoredExplanations()Array of reasons why the page could not be cached.java.util.Optional<BackForwardCacheNotRestoredExplanationTree>getNotRestoredExplanationsTree()Tree structure of reasons why the page could not be cached for each frame.
-
-
-
Constructor Detail
-
BackForwardCacheNotUsed
public BackForwardCacheNotUsed(LoaderId loaderId, FrameId frameId, java.util.List<BackForwardCacheNotRestoredExplanation> notRestoredExplanations, java.util.Optional<BackForwardCacheNotRestoredExplanationTree> notRestoredExplanationsTree)
-
-
Method Detail
-
getLoaderId
public LoaderId getLoaderId()
The loader id for the associated navgation.
-
getFrameId
public FrameId getFrameId()
The frame id of the associated frame.
-
getNotRestoredExplanations
public java.util.List<BackForwardCacheNotRestoredExplanation> getNotRestoredExplanations()
Array of reasons why the page could not be cached. This must not be empty.
-
getNotRestoredExplanationsTree
public java.util.Optional<BackForwardCacheNotRestoredExplanationTree> getNotRestoredExplanationsTree()
Tree structure of reasons why the page could not be cached for each frame.
-
-