page

package
v0.158.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 9 Imported by: 548

Documentation

Overview

Package page provides the Chrome DevTools Protocol commands, types, and events for the Page domain.

Actions and events related to the inspected page belong to the page domain.

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandAddScriptToEvaluateOnNewDocument    = "Page.addScriptToEvaluateOnNewDocument"
	CommandBringToFront                        = "Page.bringToFront"
	CommandCaptureScreenshot                   = "Page.captureScreenshot"
	CommandCaptureSnapshot                     = "Page.captureSnapshot"
	CommandCreateIsolatedWorld                 = "Page.createIsolatedWorld"
	CommandDisable                             = "Page.disable"
	CommandEnable                              = "Page.enable"
	CommandGetAppManifest                      = "Page.getAppManifest"
	CommandGetInstallabilityErrors             = "Page.getInstallabilityErrors"
	CommandGetAppID                            = "Page.getAppId"
	CommandGetSubApps                          = "Page.getSubApps"
	CommandGetSiblingSubApps                   = "Page.getSiblingSubApps"
	CommandGetAdScriptAncestry                 = "Page.getAdScriptAncestry"
	CommandGetSpellCheckCustomDictionary       = "Page.getSpellCheckCustomDictionary"
	CommandGetFrameTree                        = "Page.getFrameTree"
	CommandGetLayoutMetrics                    = "Page.getLayoutMetrics"
	CommandGetNavigationHistory                = "Page.getNavigationHistory"
	CommandResetNavigationHistory              = "Page.resetNavigationHistory"
	CommandGetResourceContent                  = "Page.getResourceContent"
	CommandGetResourceTree                     = "Page.getResourceTree"
	CommandHandleJavaScriptDialog              = "Page.handleJavaScriptDialog"
	CommandNavigate                            = "Page.navigate"
	CommandNavigateToHistoryEntry              = "Page.navigateToHistoryEntry"
	CommandPrintToPDF                          = "Page.printToPDF"
	CommandReload                              = "Page.reload"
	CommandRemoveScriptToEvaluateOnNewDocument = "Page.removeScriptToEvaluateOnNewDocument"
	CommandScreencastFrameAck                  = "Page.screencastFrameAck"
	CommandSearchInResource                    = "Page.searchInResource"
	CommandSetAdBlockingEnabled                = "Page.setAdBlockingEnabled"
	CommandSetBypassCSP                        = "Page.setBypassCSP"
	CommandGetPermissionsPolicyState           = "Page.getPermissionsPolicyState"
	CommandGetOriginTrials                     = "Page.getOriginTrials"
	CommandSetFontFamilies                     = "Page.setFontFamilies"
	CommandSetFontSizes                        = "Page.setFontSizes"
	CommandSetDocumentContent                  = "Page.setDocumentContent"
	CommandSetLifecycleEventsEnabled           = "Page.setLifecycleEventsEnabled"
	CommandStartScreencast                     = "Page.startScreencast"
	CommandStartScreenRecording                = "Page.startScreenRecording"
	CommandStopScreenRecording                 = "Page.stopScreenRecording"
	CommandStopLoading                         = "Page.stopLoading"
	CommandCrash                               = "Page.crash"
	CommandClose                               = "Page.close"
	CommandSetWebLifecycleState                = "Page.setWebLifecycleState"
	CommandStopScreencast                      = "Page.stopScreencast"
	CommandProduceCompilationCache             = "Page.produceCompilationCache"
	CommandAddCompilationCache                 = "Page.addCompilationCache"
	CommandClearCompilationCache               = "Page.clearCompilationCache"
	CommandSetSPCTransactionMode               = "Page.setSPCTransactionMode"
	CommandSetRPHRegistrationMode              = "Page.setRPHRegistrationMode"
	CommandGenerateTestReport                  = "Page.generateTestReport"
	CommandWaitForDebugger                     = "Page.waitForDebugger"
	CommandSetInterceptFileChooserDialog       = "Page.setInterceptFileChooserDialog"
	CommandSetPrerenderingAllowed              = "Page.setPrerenderingAllowed"
	CommandGetAnnotatedPageContent             = "Page.getAnnotatedPageContent"
	CommandSetInputVisualization               = "Page.setInputVisualization"
)

Command names.

Variables

AddCompilationCache seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-addCompilationCache

AddScriptToEvaluateOnNewDocument evaluates given script in every frame upon creation (before loading frame's scripts).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-addScriptToEvaluateOnNewDocument

View Source
var BackForwardCacheNotUsed = cdp.Event[EventBackForwardCacheNotUsed]{Method: "Page.backForwardCacheNotUsed"}

BackForwardCacheNotUsed 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-backForwardCacheNotUsed

View Source
var BringToFront = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandBringToFront}

BringToFront brings page to front (activates tab).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-bringToFront

CaptureScreenshot capture page screenshot.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-captureScreenshot

CaptureSnapshot returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-captureSnapshot

View Source
var ClearCompilationCache = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandClearCompilationCache}

ClearCompilationCache clears seeded compilation cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-clearCompilationCache

Close tries to close page, running its beforeunload hooks, if any.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-close

View Source
var CompilationCacheProduced = cdp.Event[EventCompilationCacheProduced]{Method: "Page.compilationCacheProduced"}

CompilationCacheProduced issued for every compilation cache generated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-compilationCacheProduced

Crash crashes renderer on the IO thread, generates minidumps.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-crash

CreateIsolatedWorld creates an isolated world for the given frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-createIsolatedWorld

View Source
var Disable = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandDisable}

Disable disables page domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-disable

View Source
var DocumentOpened = cdp.Event[EventDocumentOpened]{Method: "Page.documentOpened"}

DocumentOpened fired when opening document to write to.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-documentOpened

View Source
var DomContentEventFired = cdp.Event[EventDomContentEventFired]{Method: "Page.domContentEventFired"}

DomContentEventFired [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-domContentEventFired

Enable enables page domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-enable

View Source
var FileChooserOpened = cdp.Event[EventFileChooserOpened]{Method: "Page.fileChooserOpened"}

FileChooserOpened emitted only when page.interceptFileChooser is enabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-fileChooserOpened

View Source
var FrameAttached = cdp.Event[EventFrameAttached]{Method: "Page.frameAttached"}

FrameAttached fired when frame has been attached to its parent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameAttached

View Source
var FrameDetached = cdp.Event[EventFrameDetached]{Method: "Page.frameDetached"}

FrameDetached fired when frame has been detached from its parent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameDetached

View Source
var FrameNavigated = cdp.Event[EventFrameNavigated]{Method: "Page.frameNavigated"}

FrameNavigated fired once navigation of the frame has completed. Frame is now associated with the new loader.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameNavigated

View Source
var FrameRequestedNavigation = cdp.Event[EventFrameRequestedNavigation]{Method: "Page.frameRequestedNavigation"}

FrameRequestedNavigation fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameRequestedNavigation

View Source
var FrameResized = cdp.Event[EventFrameResized]{Method: "Page.frameResized"}

FrameResized [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameResized

View Source
var FrameStartedLoading = cdp.Event[EventFrameStartedLoading]{Method: "Page.frameStartedLoading"}

FrameStartedLoading fired when frame has started loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedLoading

View Source
var FrameStartedNavigating = cdp.Event[EventFrameStartedNavigating]{Method: "Page.frameStartedNavigating"}

FrameStartedNavigating fired when a navigation starts. This event is fired for both renderer-initiated and browser-initiated navigations. For renderer-initiated navigations, the event is fired after frameRequestedNavigation. Navigation may still be cancelled after the event is issued. Multiple events can be fired for a single navigation, for example, when a same-document navigation becomes a cross-document navigation (such as in the case of a frameset).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedNavigating

View Source
var FrameStoppedLoading = cdp.Event[EventFrameStoppedLoading]{Method: "Page.frameStoppedLoading"}

FrameStoppedLoading fired when frame has stopped loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStoppedLoading

View Source
var FrameSubtreeWillBeDetached = cdp.Event[EventFrameSubtreeWillBeDetached]{Method: "Page.frameSubtreeWillBeDetached"}

FrameSubtreeWillBeDetached fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameSubtreeWillBeDetached

GenerateTestReport generates a report for testing.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-generateTestReport

GetAdScriptAncestry [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getAdScriptAncestry

GetAnnotatedPageContent get the annotated page content for the main frame. This is an experimental command that is subject to change.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getAnnotatedPageContent

GetAppID returns the unique (PWA) app id, along with IWA bundle ID and parent app info. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getAppId

GetAppManifest gets the processed manifest for this current document. This API always waits for the manifest to be loaded. If manifestId is provided, and it does not match the manifest of the current document, this API errors out. If there is not a loaded page, this API errors out immediately.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getAppManifest

GetFrameTree returns present frame tree structure.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getFrameTree

GetInstallabilityErrors [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getInstallabilityErrors

GetLayoutMetrics returns metrics relating to the layouting of the page, such as viewport bounds/scale.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getLayoutMetrics

GetNavigationHistory returns navigation history for the current page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getNavigationHistory

GetOriginTrials get Origin Trials on given frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getOriginTrials

GetPermissionsPolicyState get Permissions Policy state on given frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getPermissionsPolicyState

GetResourceContent returns content of the given resource.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getResourceContent

GetResourceTree returns present frame / resource tree structure.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getResourceTree

GetSiblingSubApps returns the list of sibling Sub-Apps sharing the same parent app if the inspected context is a Sub-App.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getSiblingSubApps

GetSpellCheckCustomDictionary returns the words that the frame's document added to its spell check custom dictionary with document.spellCheckCustomDictionary.addWords(), sorted. Page script cannot read the dictionary back; this lets developers inspect it.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getSpellCheckCustomDictionary

GetSubApps returns the list of installed child Sub-Apps for the inspected parent app.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-getSubApps

HandleJavaScriptDialog accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-handleJavaScriptDialog

View Source
var InterstitialHidden = cdp.Event[EventInterstitialHidden]{Method: "Page.interstitialHidden"}

InterstitialHidden fired when interstitial page was hidden.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-interstitialHidden

View Source
var InterstitialShown = cdp.Event[EventInterstitialShown]{Method: "Page.interstitialShown"}

InterstitialShown fired when interstitial page was shown.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-interstitialShown

View Source
var JavascriptDialogClosed = cdp.Event[EventJavascriptDialogClosed]{Method: "Page.javascriptDialogClosed"}

JavascriptDialogClosed fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-javascriptDialogClosed

View Source
var JavascriptDialogOpening = cdp.Event[EventJavascriptDialogOpening]{Method: "Page.javascriptDialogOpening"}

JavascriptDialogOpening fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-javascriptDialogOpening

View Source
var LifecycleEvent = cdp.Event[EventLifecycleEvent]{Method: "Page.lifecycleEvent"}

LifecycleEvent fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-lifecycleEvent

View Source
var LoadEventFired = cdp.Event[EventLoadEventFired]{Method: "Page.loadEventFired"}

LoadEventFired [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-loadEventFired

Navigate navigates current page to the given URL.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-navigate

NavigateToHistoryEntry navigates current page to the given history entry.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-navigateToHistoryEntry

View Source
var NavigatedWithinDocument = cdp.Event[EventNavigatedWithinDocument]{Method: "Page.navigatedWithinDocument"}

NavigatedWithinDocument fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-navigatedWithinDocument

PrintToPDF print page as PDF.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-printToPDF

ProduceCompilationCache requests backend to produce compilation cache for the specified scripts. scripts are appended to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: Page.compilationCacheProduced.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-produceCompilationCache

Reload reloads given page optionally ignoring the cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-reload

RemoveScriptToEvaluateOnNewDocument removes given script from the list.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-removeScriptToEvaluateOnNewDocument

View Source
var ResetNavigationHistory = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandResetNavigationHistory}

ResetNavigationHistory resets navigation history for the current page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-resetNavigationHistory

View Source
var ScreencastFrame = cdp.Event[EventScreencastFrame]{Method: "Page.screencastFrame"}

ScreencastFrame compressed image data requested by the startScreencast.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-screencastFrame

ScreencastFrameAck acknowledges that a screencast frame has been received by the frontend.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-screencastFrameAck

View Source
var ScreencastVisibilityChanged = cdp.Event[EventScreencastVisibilityChanged]{Method: "Page.screencastVisibilityChanged"}

ScreencastVisibilityChanged fired when the page with currently enabled screencast was shown or hidden .

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-screencastVisibilityChanged

SearchInResource searches for given string in resource content.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-searchInResource

SetAdBlockingEnabled enable Chrome's experimental ad filter on all sites.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setAdBlockingEnabled

SetBypassCSP enable page Content Security Policy by-passing.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setBypassCSP

SetDocumentContent sets given markup as the document's HTML.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setDocumentContent

SetFontFamilies set generic font families.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setFontFamilies

SetFontSizes set default font sizes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setFontSizes

SetInputVisualization configures input visualization on the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setInputVisualization

SetInterceptFileChooserDialog intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setInterceptFileChooserDialog

SetLifecycleEventsEnabled controls whether page will emit lifecycle events.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setLifecycleEventsEnabled

SetPrerenderingAllowed enable/disable prerendering manually. This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details. TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setPrerenderingAllowed

SetRPHRegistrationMode extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setRPHRegistrationMode

SetSPCTransactionMode sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setSPCTransactionMode

SetWebLifecycleState tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setWebLifecycleState

StartScreenRecording starts screencast video recording.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-startScreenRecording

StartScreencast starts sending each frame using the screencastFrame event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-startScreencast

View Source
var StopLoading = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandStopLoading}

StopLoading force the page stop all navigations and pending resource fetches.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-stopLoading

StopScreenRecording stops screencast video recording.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-stopScreenRecording

View Source
var StopScreencast = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandStopScreencast}

StopScreencast stops sending each frame in the screencastFrame.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-stopScreencast

View Source
var WaitForDebugger = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandWaitForDebugger}

WaitForDebugger pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-waitForDebugger

View Source
var WindowOpen = cdp.Event[EventWindowOpen]{Method: "Page.windowOpen"}

WindowOpen fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-windowOpen

Functions

This section is empty.

Types

type AddCompilationCacheParams

type AddCompilationCacheParams struct {
	URL  string `json:"url"`
	Data []byte `json:"data"` // Base64-encoded data
}

AddCompilationCacheParams are the parameters of the command Page.addCompilationCache.

type AddScriptToEvaluateOnNewDocumentParams

type AddScriptToEvaluateOnNewDocumentParams struct {
	Source                string `json:"source"`
	WorldName             string `json:"worldName,omitempty,omitzero"`             // If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.
	IncludeCommandLineAPI *bool  `json:"includeCommandLineAPI,omitempty,omitzero"` // Specifies whether command line API should be available to the script, defaults to false.
	RunImmediately        *bool  `json:"runImmediately,omitempty,omitzero"`        // If true, runs the script immediately on existing execution contexts or worlds. Default: false.
}

AddScriptToEvaluateOnNewDocumentParams are the parameters of the command Page.addScriptToEvaluateOnNewDocument.

type AddScriptToEvaluateOnNewDocumentResult added in v0.157.3

type AddScriptToEvaluateOnNewDocumentResult struct {
	Identifier ScriptIdentifier `json:"identifier,omitempty,omitzero"` // Identifier of the added script.
}

AddScriptToEvaluateOnNewDocumentResult is the result of the command Page.addScriptToEvaluateOnNewDocument.

type AppManifestError

type AppManifestError struct {
	Message  string `json:"message"`  // Error message.
	Critical int64  `json:"critical"` // If critical, this is a non-recoverable parse error.
	Line     int64  `json:"line"`     // Error line.
	Column   int64  `json:"column"`   // Error column.
}

AppManifestError error while paring app manifest.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-AppManifestError

type AppManifestParsedProperties

type AppManifestParsedProperties struct {
	Scope string `json:"scope"` // Computed scope value
}

AppManifestParsedProperties parsed app manifest properties.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-AppManifestParsedProperties

type BackForwardCacheBlockingDetails

type BackForwardCacheBlockingDetails struct {
	URL          string `json:"url,omitempty,omitzero"`      // Url of the file where blockage happened. Optional because of tests.
	Function     string `json:"function,omitempty,omitzero"` // Function name where blockage happened. Optional because of anonymous functions and tests.
	LineNumber   int64  `json:"lineNumber"`                  // Line number in the script (0-based).
	ColumnNumber int64  `json:"columnNumber"`                // Column number in the script (0-based).
}

BackForwardCacheBlockingDetails [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheBlockingDetails

type BackForwardCacheNotRestoredExplanation

type BackForwardCacheNotRestoredExplanation struct {
	Type    BackForwardCacheNotRestoredReasonType `json:"type"`                       // Type of the reason
	Reason  BackForwardCacheNotRestoredReason     `json:"reason"`                     // Not restored reason
	Context string                                `json:"context,omitempty,omitzero"` // Context associated with the reason. The meaning of this context is dependent on the reason: - EmbedderExtensionSentMessageToCachedFrame: the extension ID.
	Details []*BackForwardCacheBlockingDetails    `json:"details,omitempty,omitzero"`
}

BackForwardCacheNotRestoredExplanation [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheNotRestoredExplanation

type BackForwardCacheNotRestoredExplanationTree

type BackForwardCacheNotRestoredExplanationTree struct {
	URL          string                                        `json:"url"`          // URL of each frame
	Explanations []*BackForwardCacheNotRestoredExplanation     `json:"explanations"` // Not restored reasons of each frame
	Children     []*BackForwardCacheNotRestoredExplanationTree `json:"children"`     // Array of children frame
}

BackForwardCacheNotRestoredExplanationTree [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheNotRestoredExplanationTree

type BackForwardCacheNotRestoredReason

type BackForwardCacheNotRestoredReason string

BackForwardCacheNotRestoredReason list of not restored reasons for back-forward cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheNotRestoredReason

const (
	BackForwardCacheNotRestoredReasonNotPrimaryMainFrame                                      BackForwardCacheNotRestoredReason = "NotPrimaryMainFrame"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabled                                 BackForwardCacheNotRestoredReason = "BackForwardCacheDisabled"
	BackForwardCacheNotRestoredReasonRelatedActiveContentsExist                               BackForwardCacheNotRestoredReason = "RelatedActiveContentsExist"
	BackForwardCacheNotRestoredReasonHTTPSTatusNotOK                                          BackForwardCacheNotRestoredReason = "HTTPStatusNotOK"
	BackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS                                     BackForwardCacheNotRestoredReason = "SchemeNotHTTPOrHTTPS"
	BackForwardCacheNotRestoredReasonLoading                                                  BackForwardCacheNotRestoredReason = "Loading"
	BackForwardCacheNotRestoredReasonWasGrantedMediaAccess                                    BackForwardCacheNotRestoredReason = "WasGrantedMediaAccess"
	BackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled                          BackForwardCacheNotRestoredReason = "DisableForRenderFrameHostCalled"
	BackForwardCacheNotRestoredReasonDomainNotAllowed                                         BackForwardCacheNotRestoredReason = "DomainNotAllowed"
	BackForwardCacheNotRestoredReasonHTTPMethodNotGET                                         BackForwardCacheNotRestoredReason = "HTTPMethodNotGET"
	BackForwardCacheNotRestoredReasonSubframeIsNavigating                                     BackForwardCacheNotRestoredReason = "SubframeIsNavigating"
	BackForwardCacheNotRestoredReasonTimeout                                                  BackForwardCacheNotRestoredReason = "Timeout"
	BackForwardCacheNotRestoredReasonCacheLimit                                               BackForwardCacheNotRestoredReason = "CacheLimit"
	BackForwardCacheNotRestoredReasonJavaScriptExecution                                      BackForwardCacheNotRestoredReason = "JavaScriptExecution"
	BackForwardCacheNotRestoredReasonRendererProcessKilled                                    BackForwardCacheNotRestoredReason = "RendererProcessKilled"
	BackForwardCacheNotRestoredReasonRendererProcessCrashed                                   BackForwardCacheNotRestoredReason = "RendererProcessCrashed"
	BackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed                              BackForwardCacheNotRestoredReason = "SchedulerTrackedFeatureUsed"
	BackForwardCacheNotRestoredReasonConflictingBrowsingInstance                              BackForwardCacheNotRestoredReason = "ConflictingBrowsingInstance"
	BackForwardCacheNotRestoredReasonCacheFlushed                                             BackForwardCacheNotRestoredReason = "CacheFlushed"
	BackForwardCacheNotRestoredReasonServiceWorkerVersionActivation                           BackForwardCacheNotRestoredReason = "ServiceWorkerVersionActivation"
	BackForwardCacheNotRestoredReasonSessionRestored                                          BackForwardCacheNotRestoredReason = "SessionRestored"
	BackForwardCacheNotRestoredReasonServiceWorkerPostMessage                                 BackForwardCacheNotRestoredReason = "ServiceWorkerPostMessage"
	BackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded      BackForwardCacheNotRestoredReason = "EnteredBackForwardCacheBeforeServiceWorkerHostAdded"
	BackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite                            BackForwardCacheNotRestoredReason = "RenderFrameHostReused_SameSite"
	BackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite                           BackForwardCacheNotRestoredReason = "RenderFrameHostReused_CrossSite"
	BackForwardCacheNotRestoredReasonServiceWorkerClaim                                       BackForwardCacheNotRestoredReason = "ServiceWorkerClaim"
	BackForwardCacheNotRestoredReasonIgnoreEventAndEvict                                      BackForwardCacheNotRestoredReason = "IgnoreEventAndEvict"
	BackForwardCacheNotRestoredReasonHaveInnerContents                                        BackForwardCacheNotRestoredReason = "HaveInnerContents"
	BackForwardCacheNotRestoredReasonTimeoutPuttingInCache                                    BackForwardCacheNotRestoredReason = "TimeoutPuttingInCache"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory                      BackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByLowMemory"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine                    BackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByCommandLine"
	BackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer             BackForwardCacheNotRestoredReason = "NetworkRequestDatapipeDrainedAsBytesConsumer"
	BackForwardCacheNotRestoredReasonNetworkRequestRedirected                                 BackForwardCacheNotRestoredReason = "NetworkRequestRedirected"
	BackForwardCacheNotRestoredReasonNetworkRequestTimeout                                    BackForwardCacheNotRestoredReason = "NetworkRequestTimeout"
	BackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit                                BackForwardCacheNotRestoredReason = "NetworkExceedsBufferLimit"
	BackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring                        BackForwardCacheNotRestoredReason = "NavigationCancelledWhileRestoring"
	BackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry                             BackForwardCacheNotRestoredReason = "NotMostRecentNavigationEntry"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender                     BackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForPrerender"
	BackForwardCacheNotRestoredReasonUserAgentOverrideDiffers                                 BackForwardCacheNotRestoredReason = "UserAgentOverrideDiffers"
	BackForwardCacheNotRestoredReasonForegroundCacheLimit                                     BackForwardCacheNotRestoredReason = "ForegroundCacheLimit"
	BackForwardCacheNotRestoredReasonForwardCacheDisabled                                     BackForwardCacheNotRestoredReason = "ForwardCacheDisabled"
	BackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped                               BackForwardCacheNotRestoredReason = "BrowsingInstanceNotSwapped"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate                      BackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForDelegate"
	BackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame                           BackForwardCacheNotRestoredReason = "UnloadHandlerExistsInMainFrame"
	BackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame                            BackForwardCacheNotRestoredReason = "UnloadHandlerExistsInSubFrame"
	BackForwardCacheNotRestoredReasonServiceWorkerUnregistration                              BackForwardCacheNotRestoredReason = "ServiceWorkerUnregistration"
	BackForwardCacheNotRestoredReasonCacheControlNoStore                                      BackForwardCacheNotRestoredReason = "CacheControlNoStore"
	BackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified                        BackForwardCacheNotRestoredReason = "CacheControlNoStoreCookieModified"
	BackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified                BackForwardCacheNotRestoredReason = "CacheControlNoStoreHTTPOnlyCookieModified"
	BackForwardCacheNotRestoredReasonNoResponseHead                                           BackForwardCacheNotRestoredReason = "NoResponseHead"
	BackForwardCacheNotRestoredReasonUnknown                                                  BackForwardCacheNotRestoredReason = "Unknown"
	BackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857             BackForwardCacheNotRestoredReason = "ActivationNavigationsDisallowedForBug1234857"
	BackForwardCacheNotRestoredReasonErrorDocument                                            BackForwardCacheNotRestoredReason = "ErrorDocument"
	BackForwardCacheNotRestoredReasonFencedFramesEmbedder                                     BackForwardCacheNotRestoredReason = "FencedFramesEmbedder"
	BackForwardCacheNotRestoredReasonCookieDisabled                                           BackForwardCacheNotRestoredReason = "CookieDisabled"
	BackForwardCacheNotRestoredReasonHTTPAuthRequired                                         BackForwardCacheNotRestoredReason = "HTTPAuthRequired"
	BackForwardCacheNotRestoredReasonCookieFlushed                                            BackForwardCacheNotRestoredReason = "CookieFlushed"
	BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage                                BackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage"
	BackForwardCacheNotRestoredReasonWebViewSettingsChanged                                   BackForwardCacheNotRestoredReason = "WebViewSettingsChanged"
	BackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged                           BackForwardCacheNotRestoredReason = "WebViewJavaScriptObjectChanged"
	BackForwardCacheNotRestoredReasonWebViewMessageListenerInjected                           BackForwardCacheNotRestoredReason = "WebViewMessageListenerInjected"
	BackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged                      BackForwardCacheNotRestoredReason = "WebViewSafeBrowsingAllowlistChanged"
	BackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged                    BackForwardCacheNotRestoredReason = "WebViewDocumentStartJavascriptChanged"
	BackForwardCacheNotRestoredReasonWebSocket                                                BackForwardCacheNotRestoredReason = "WebSocket"
	BackForwardCacheNotRestoredReasonWebTransport                                             BackForwardCacheNotRestoredReason = "WebTransport"
	BackForwardCacheNotRestoredReasonWebRTC                                                   BackForwardCacheNotRestoredReason = "WebRTC"
	BackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore                       BackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoStore"
	BackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache                       BackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoCache"
	BackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore                        BackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoStore"
	BackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache                        BackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoCache"
	BackForwardCacheNotRestoredReasonContainsPlugins                                          BackForwardCacheNotRestoredReason = "ContainsPlugins"
	BackForwardCacheNotRestoredReasonDocumentLoaded                                           BackForwardCacheNotRestoredReason = "DocumentLoaded"
	BackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers                          BackForwardCacheNotRestoredReason = "OutstandingNetworkRequestOthers"
	BackForwardCacheNotRestoredReasonRequestedMIDIPermission                                  BackForwardCacheNotRestoredReason = "RequestedMIDIPermission"
	BackForwardCacheNotRestoredReasonRequestedAudioCapturePermission                          BackForwardCacheNotRestoredReason = "RequestedAudioCapturePermission"
	BackForwardCacheNotRestoredReasonRequestedVideoCapturePermission                          BackForwardCacheNotRestoredReason = "RequestedVideoCapturePermission"
	BackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors                  BackForwardCacheNotRestoredReason = "RequestedBackForwardCacheBlockedSensors"
	BackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission                        BackForwardCacheNotRestoredReason = "RequestedBackgroundWorkPermission"
	BackForwardCacheNotRestoredReasonBroadcastChannel                                         BackForwardCacheNotRestoredReason = "BroadcastChannel"
	BackForwardCacheNotRestoredReasonWebXR                                                    BackForwardCacheNotRestoredReason = "WebXR"
	BackForwardCacheNotRestoredReasonSharedWorker                                             BackForwardCacheNotRestoredReason = "SharedWorker"
	BackForwardCacheNotRestoredReasonSharedWorkerMessage                                      BackForwardCacheNotRestoredReason = "SharedWorkerMessage"
	BackForwardCacheNotRestoredReasonSharedWorkerWithNoActiveClient                           BackForwardCacheNotRestoredReason = "SharedWorkerWithNoActiveClient"
	BackForwardCacheNotRestoredReasonWebLocks                                                 BackForwardCacheNotRestoredReason = "WebLocks"
	BackForwardCacheNotRestoredReasonWebLocksContention                                       BackForwardCacheNotRestoredReason = "WebLocksContention"
	BackForwardCacheNotRestoredReasonWebHID                                                   BackForwardCacheNotRestoredReason = "WebHID"
	BackForwardCacheNotRestoredReasonWebBluetooth                                             BackForwardCacheNotRestoredReason = "WebBluetooth"
	BackForwardCacheNotRestoredReasonWebShare                                                 BackForwardCacheNotRestoredReason = "WebShare"
	BackForwardCacheNotRestoredReasonRequestedStorageAccessGrant                              BackForwardCacheNotRestoredReason = "RequestedStorageAccessGrant"
	BackForwardCacheNotRestoredReasonWebNfc                                                   BackForwardCacheNotRestoredReason = "WebNfc"
	BackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch                           BackForwardCacheNotRestoredReason = "OutstandingNetworkRequestFetch"
	BackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR                             BackForwardCacheNotRestoredReason = "OutstandingNetworkRequestXHR"
	BackForwardCacheNotRestoredReasonAppBanner                                                BackForwardCacheNotRestoredReason = "AppBanner"
	BackForwardCacheNotRestoredReasonPrinting                                                 BackForwardCacheNotRestoredReason = "Printing"
	BackForwardCacheNotRestoredReasonWebDatabase                                              BackForwardCacheNotRestoredReason = "WebDatabase"
	BackForwardCacheNotRestoredReasonPictureInPicture                                         BackForwardCacheNotRestoredReason = "PictureInPicture"
	BackForwardCacheNotRestoredReasonSpeechRecognizer                                         BackForwardCacheNotRestoredReason = "SpeechRecognizer"
	BackForwardCacheNotRestoredReasonIdleManager                                              BackForwardCacheNotRestoredReason = "IdleManager"
	BackForwardCacheNotRestoredReasonPaymentManager                                           BackForwardCacheNotRestoredReason = "PaymentManager"
	BackForwardCacheNotRestoredReasonSpeechSynthesis                                          BackForwardCacheNotRestoredReason = "SpeechSynthesis"
	BackForwardCacheNotRestoredReasonKeyboardLock                                             BackForwardCacheNotRestoredReason = "KeyboardLock"
	BackForwardCacheNotRestoredReasonWebOTPService                                            BackForwardCacheNotRestoredReason = "WebOTPService"
	BackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket                    BackForwardCacheNotRestoredReason = "OutstandingNetworkRequestDirectSocket"
	BackForwardCacheNotRestoredReasonInjectedJavascript                                       BackForwardCacheNotRestoredReason = "InjectedJavascript"
	BackForwardCacheNotRestoredReasonInjectedStyleSheet                                       BackForwardCacheNotRestoredReason = "InjectedStyleSheet"
	BackForwardCacheNotRestoredReasonKeepaliveRequest                                         BackForwardCacheNotRestoredReason = "KeepaliveRequest"
	BackForwardCacheNotRestoredReasonIndexedDBEvent                                           BackForwardCacheNotRestoredReason = "IndexedDBEvent"
	BackForwardCacheNotRestoredReasonDummy                                                    BackForwardCacheNotRestoredReason = "Dummy"
	BackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource      BackForwardCacheNotRestoredReason = "JsNetworkRequestReceivedCacheControlNoStoreResource"
	BackForwardCacheNotRestoredReasonWebRTCUsedWithCCNS                                       BackForwardCacheNotRestoredReason = "WebRTCUsedWithCCNS"
	BackForwardCacheNotRestoredReasonWebTransportUsedWithCCNS                                 BackForwardCacheNotRestoredReason = "WebTransportUsedWithCCNS"
	BackForwardCacheNotRestoredReasonWebSocketUsedWithCCNS                                    BackForwardCacheNotRestoredReason = "WebSocketUsedWithCCNS"
	BackForwardCacheNotRestoredReasonSmartCard                                                BackForwardCacheNotRestoredReason = "SmartCard"
	BackForwardCacheNotRestoredReasonLiveMediaStreamTrack                                     BackForwardCacheNotRestoredReason = "LiveMediaStreamTrack"
	BackForwardCacheNotRestoredReasonUnloadHandler                                            BackForwardCacheNotRestoredReason = "UnloadHandler"
	BackForwardCacheNotRestoredReasonParserAborted                                            BackForwardCacheNotRestoredReason = "ParserAborted"
	BackForwardCacheNotRestoredReasonContentSecurityHandler                                   BackForwardCacheNotRestoredReason = "ContentSecurityHandler"
	BackForwardCacheNotRestoredReasonContentWebAuthenticationAPI                              BackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI"
	BackForwardCacheNotRestoredReasonContentFileChooser                                       BackForwardCacheNotRestoredReason = "ContentFileChooser"
	BackForwardCacheNotRestoredReasonContentSerial                                            BackForwardCacheNotRestoredReason = "ContentSerial"
	BackForwardCacheNotRestoredReasonContentFileSystemAccess                                  BackForwardCacheNotRestoredReason = "ContentFileSystemAccess"
	BackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost                        BackForwardCacheNotRestoredReason = "ContentMediaDevicesDispatcherHost"
	BackForwardCacheNotRestoredReasonContentWebBluetooth                                      BackForwardCacheNotRestoredReason = "ContentWebBluetooth"
	BackForwardCacheNotRestoredReasonContentWebUSB                                            BackForwardCacheNotRestoredReason = "ContentWebUSB"
	BackForwardCacheNotRestoredReasonContentMediaSessionService                               BackForwardCacheNotRestoredReason = "ContentMediaSessionService"
	BackForwardCacheNotRestoredReasonContentScreenReader                                      BackForwardCacheNotRestoredReason = "ContentScreenReader"
	BackForwardCacheNotRestoredReasonContentDiscarded                                         BackForwardCacheNotRestoredReason = "ContentDiscarded"
	BackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper                            BackForwardCacheNotRestoredReason = "EmbedderPopupBlockerTabHelper"
	BackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker                BackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingTriggeredPopupBlocker"
	BackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails                        BackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingThreatDetails"
	BackForwardCacheNotRestoredReasonEmbedderAppBannerManager                                 BackForwardCacheNotRestoredReason = "EmbedderAppBannerManager"
	BackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource                         BackForwardCacheNotRestoredReason = "EmbedderDomDistillerViewerSource"
	BackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate          BackForwardCacheNotRestoredReason = "EmbedderDomDistillerSelfDeletingRequestDelegate"
	BackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper                         BackForwardCacheNotRestoredReason = "EmbedderOomInterventionTabHelper"
	BackForwardCacheNotRestoredReasonEmbedderOfflinePage                                      BackForwardCacheNotRestoredReason = "EmbedderOfflinePage"
	BackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager BackForwardCacheNotRestoredReason = "EmbedderChromePasswordManagerClientBindCredentialManager"
	BackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager                         BackForwardCacheNotRestoredReason = "EmbedderPermissionRequestManager"
	BackForwardCacheNotRestoredReasonEmbedderModalDialog                                      BackForwardCacheNotRestoredReason = "EmbedderModalDialog"
	BackForwardCacheNotRestoredReasonEmbedderExtensions                                       BackForwardCacheNotRestoredReason = "EmbedderExtensions"
	BackForwardCacheNotRestoredReasonEmbedderExtensionMessaging                               BackForwardCacheNotRestoredReason = "EmbedderExtensionMessaging"
	BackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort                    BackForwardCacheNotRestoredReason = "EmbedderExtensionMessagingForOpenPort"
	BackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame                BackForwardCacheNotRestoredReason = "EmbedderExtensionSentMessageToCachedFrame"
	BackForwardCacheNotRestoredReasonEmbedderExtensionFrame                                   BackForwardCacheNotRestoredReason = "EmbedderExtensionFrame"
	BackForwardCacheNotRestoredReasonEmbedderPrivilegedWebContents                            BackForwardCacheNotRestoredReason = "EmbedderPrivilegedWebContents"
	BackForwardCacheNotRestoredReasonRequestedByWebViewClient                                 BackForwardCacheNotRestoredReason = "RequestedByWebViewClient"
	BackForwardCacheNotRestoredReasonPostMessageByWebViewClient                               BackForwardCacheNotRestoredReason = "PostMessageByWebViewClient"
	BackForwardCacheNotRestoredReasonCacheControlNoStoreDeviceBoundSessionTerminated          BackForwardCacheNotRestoredReason = "CacheControlNoStoreDeviceBoundSessionTerminated"
	BackForwardCacheNotRestoredReasonCacheLimitPrunedOnModerateMemoryPressure                 BackForwardCacheNotRestoredReason = "CacheLimitPrunedOnModerateMemoryPressure"
	BackForwardCacheNotRestoredReasonCacheLimitPrunedOnCriticalMemoryPressure                 BackForwardCacheNotRestoredReason = "CacheLimitPrunedOnCriticalMemoryPressure"
)

BackForwardCacheNotRestoredReason values.

func (BackForwardCacheNotRestoredReason) String

String returns the BackForwardCacheNotRestoredReason as string value.

type BackForwardCacheNotRestoredReasonType

type BackForwardCacheNotRestoredReasonType string

BackForwardCacheNotRestoredReasonType types of not restored reasons for back-forward cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheNotRestoredReasonType

const (
	BackForwardCacheNotRestoredReasonTypeSupportPending    BackForwardCacheNotRestoredReasonType = "SupportPending"
	BackForwardCacheNotRestoredReasonTypePageSupportNeeded BackForwardCacheNotRestoredReasonType = "PageSupportNeeded"
	BackForwardCacheNotRestoredReasonTypeCircumstantial    BackForwardCacheNotRestoredReasonType = "Circumstantial"
)

BackForwardCacheNotRestoredReasonType values.

func (BackForwardCacheNotRestoredReasonType) String

String returns the BackForwardCacheNotRestoredReasonType as string value.

type CaptureScreenshotFormat added in v0.157.1

type CaptureScreenshotFormat string

CaptureScreenshotFormat image compression format (defaults to png).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-captureScreenshot

const (
	CaptureScreenshotFormatJpeg CaptureScreenshotFormat = "jpeg"
	CaptureScreenshotFormatPng  CaptureScreenshotFormat = "png"
	CaptureScreenshotFormatWebp CaptureScreenshotFormat = "webp"
)

CaptureScreenshotFormat values.

func (CaptureScreenshotFormat) String added in v0.157.1

func (t CaptureScreenshotFormat) String() string

String returns the CaptureScreenshotFormat as string value.

type CaptureScreenshotParams

type CaptureScreenshotParams struct {
	Format                CaptureScreenshotFormat `json:"format,omitempty,omitzero"`                // Image compression format (defaults to png).
	Quality               *int64                  `json:"quality,omitempty,omitzero"`               // Compression quality from range [0..100] (jpeg only).
	Clip                  *Viewport               `json:"clip,omitempty,omitzero"`                  // Capture the screenshot of a given region only.
	FromSurface           *bool                   `json:"fromSurface,omitempty,omitzero"`           // Capture the screenshot from the surface, rather than the view. Defaults to true.
	CaptureBeyondViewport *bool                   `json:"captureBeyondViewport,omitempty,omitzero"` // Capture the screenshot beyond the viewport. Defaults to false.
	OptimizeForSpeed      *bool                   `json:"optimizeForSpeed,omitempty,omitzero"`      // Optimize image encoding for speed, not for resulting size (defaults to false)
}

CaptureScreenshotParams are the parameters of the command Page.captureScreenshot.

type CaptureScreenshotResult added in v0.157.3

type CaptureScreenshotResult struct {
	Data []byte `json:"data,omitempty,omitzero"` // Base64-encoded image data.
}

CaptureScreenshotResult is the result of the command Page.captureScreenshot.

type CaptureSnapshotFormat added in v0.157.1

type CaptureSnapshotFormat string

CaptureSnapshotFormat format (defaults to mhtml).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-captureSnapshot

const (
	CaptureSnapshotFormatMhtml CaptureSnapshotFormat = "mhtml"
)

CaptureSnapshotFormat values.

func (CaptureSnapshotFormat) String added in v0.157.1

func (t CaptureSnapshotFormat) String() string

String returns the CaptureSnapshotFormat as string value.

type CaptureSnapshotParams

type CaptureSnapshotParams struct {
	Format CaptureSnapshotFormat `json:"format,omitempty,omitzero"` // Format (defaults to mhtml).
}

CaptureSnapshotParams are the parameters of the command Page.captureSnapshot.

type CaptureSnapshotResult added in v0.157.3

type CaptureSnapshotResult struct {
	Data string `json:"data,omitempty,omitzero"` // Serialized page data.
}

CaptureSnapshotResult is the result of the command Page.captureSnapshot.

type ClientNavigationDisposition

type ClientNavigationDisposition string

ClientNavigationDisposition [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ClientNavigationDisposition

const (
	ClientNavigationDispositionCurrentTab ClientNavigationDisposition = "currentTab"
	ClientNavigationDispositionNewTab     ClientNavigationDisposition = "newTab"
	ClientNavigationDispositionNewWindow  ClientNavigationDisposition = "newWindow"
	ClientNavigationDispositionDownload   ClientNavigationDisposition = "download"
)

ClientNavigationDisposition values.

func (ClientNavigationDisposition) String

String returns the ClientNavigationDisposition as string value.

type ClientNavigationReason

type ClientNavigationReason string

ClientNavigationReason [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ClientNavigationReason

const (
	ClientNavigationReasonAnchorClick            ClientNavigationReason = "anchorClick"
	ClientNavigationReasonFormSubmissionGet      ClientNavigationReason = "formSubmissionGet"
	ClientNavigationReasonFormSubmissionPost     ClientNavigationReason = "formSubmissionPost"
	ClientNavigationReasonHTTPHeaderRefresh      ClientNavigationReason = "httpHeaderRefresh"
	ClientNavigationReasonInitialFrameNavigation ClientNavigationReason = "initialFrameNavigation"
	ClientNavigationReasonMetaTagRefresh         ClientNavigationReason = "metaTagRefresh"
	ClientNavigationReasonOther                  ClientNavigationReason = "other"
	ClientNavigationReasonPageBlockInterstitial  ClientNavigationReason = "pageBlockInterstitial"
	ClientNavigationReasonReload                 ClientNavigationReason = "reload"
	ClientNavigationReasonScriptInitiated        ClientNavigationReason = "scriptInitiated"
)

ClientNavigationReason values.

func (ClientNavigationReason) String

func (t ClientNavigationReason) String() string

String returns the ClientNavigationReason as string value.

type CompilationCacheParams

type CompilationCacheParams struct {
	URL   string `json:"url"`   // The URL of the script to produce a compilation cache entry for.
	Eager bool   `json:"eager"` // A hint to the backend whether eager compilation is recommended. (the actual compilation mode used is upon backend discretion).
}

CompilationCacheParams per-script compilation cache parameters for Page.produceCompilationCache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-CompilationCacheParams

type CreateIsolatedWorldParams

type CreateIsolatedWorldParams struct {
	FrameID               cdp.FrameID `json:"frameId"`                                  // Id of the frame in which the isolated world should be created.
	WorldName             string      `json:"worldName,omitempty,omitzero"`             // An optional name which is reported in the Execution Context.
	GrantUniveralAccess   *bool       `json:"grantUniveralAccess,omitempty,omitzero"`   // Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
	ContentSecurityPolicy string      `json:"contentSecurityPolicy,omitempty,omitzero"` // An optional content security policy to set for the isolated world. If omitted, any existing CSP for the world will be cleared. Note that clearing or updating the CSP does not immediately affect the active context in the same document because LocalDOMWindow caches the ContentSecurityPolicy object. The change takes effect on subsequent navigations when a new window context is created.
}

CreateIsolatedWorldParams are the parameters of the command Page.createIsolatedWorld.

type CreateIsolatedWorldResult added in v0.157.3

type CreateIsolatedWorldResult struct {
	ExecutionContextID runtime.ExecutionContextID `json:"executionContextId,omitempty,omitzero"` // Execution context of the isolated world.
}

CreateIsolatedWorldResult is the result of the command Page.createIsolatedWorld.

type DialogType

type DialogType string

DialogType javascript dialog type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-DialogType

const (
	DialogTypeAlert        DialogType = "alert"
	DialogTypeConfirm      DialogType = "confirm"
	DialogTypePrompt       DialogType = "prompt"
	DialogTypeBeforeunload DialogType = "beforeunload"
)

DialogType values.

func (DialogType) String

func (t DialogType) String() string

String returns the DialogType as string value.

type EnableParams

type EnableParams struct {
	EnableFileChooserOpenedEvent *bool `json:"enableFileChooserOpenedEvent,omitempty,omitzero"` // If true, the Page.fileChooserOpened event will be emitted regardless of the state set by Page.setInterceptFileChooserDialog command (default: false).
}

EnableParams are the parameters of the command Page.enable.

type EventBackForwardCacheNotUsed

type EventBackForwardCacheNotUsed struct {
	LoaderID                    cdp.LoaderID                                `json:"loaderId"`                                       // The loader id for the associated navigation.
	FrameID                     cdp.FrameID                                 `json:"frameId"`                                        // The frame id of the associated frame.
	NotRestoredExplanations     []*BackForwardCacheNotRestoredExplanation   `json:"notRestoredExplanations"`                        // Array of reasons why the page could not be cached. This must not be empty.
	NotRestoredExplanationsTree *BackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty,omitzero"` // Tree structure of reasons why the page could not be cached for each frame.
}

EventBackForwardCacheNotUsed 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-backForwardCacheNotUsed

type EventCompilationCacheProduced

type EventCompilationCacheProduced struct {
	URL  string `json:"url"`
	Data []byte `json:"data"` // Base64-encoded data
}

EventCompilationCacheProduced issued for every compilation cache generated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-compilationCacheProduced

type EventDocumentOpened

type EventDocumentOpened struct {
	Frame *cdp.Frame `json:"frame"` // Frame object.
}

EventDocumentOpened fired when opening document to write to.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-documentOpened

type EventDomContentEventFired

type EventDomContentEventFired struct {
	Timestamp cdp.MonotonicTime `json:"timestamp"`
}

EventDomContentEventFired [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-domContentEventFired

type EventFileChooserOpened

type EventFileChooserOpened struct {
	FrameID       cdp.FrameID           `json:"frameId"`                          // Id of the frame containing input node.
	Mode          FileChooserOpenedMode `json:"mode"`                             // Input mode.
	BackendNodeID cdp.BackendNodeID     `json:"backendNodeId,omitempty,omitzero"` // Input node id. Only present for file choosers opened via an <input type="file"> element.
}

EventFileChooserOpened emitted only when page.interceptFileChooser is enabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-fileChooserOpened

type EventFrameAttached

type EventFrameAttached struct {
	FrameID       cdp.FrameID         `json:"frameId"`                  // Id of the frame that has been attached.
	ParentFrameID cdp.FrameID         `json:"parentFrameId"`            // Parent frame identifier.
	Stack         *runtime.StackTrace `json:"stack,omitempty,omitzero"` // JavaScript stack trace of when frame was attached, only set if frame initiated from script.
}

EventFrameAttached fired when frame has been attached to its parent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameAttached

type EventFrameDetached

type EventFrameDetached struct {
	FrameID cdp.FrameID         `json:"frameId"` // Id of the frame that has been detached.
	Reason  FrameDetachedReason `json:"reason"`
}

EventFrameDetached fired when frame has been detached from its parent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameDetached

type EventFrameNavigated

type EventFrameNavigated struct {
	Frame *cdp.Frame     `json:"frame"` // Frame object.
	Type  NavigationType `json:"type"`
}

EventFrameNavigated fired once navigation of the frame has completed. Frame is now associated with the new loader.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameNavigated

type EventFrameRequestedNavigation

type EventFrameRequestedNavigation struct {
	FrameID     cdp.FrameID                 `json:"frameId"`     // Id of the frame that is being navigated.
	Reason      ClientNavigationReason      `json:"reason"`      // The reason for the navigation.
	URL         string                      `json:"url"`         // The destination URL for the requested navigation.
	Disposition ClientNavigationDisposition `json:"disposition"` // The disposition for the navigation.
}

EventFrameRequestedNavigation fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameRequestedNavigation

type EventFrameResized

type EventFrameResized struct{}

EventFrameResized [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameResized

type EventFrameStartedLoading

type EventFrameStartedLoading struct {
	FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has started loading.
}

EventFrameStartedLoading fired when frame has started loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedLoading

type EventFrameStartedNavigating

type EventFrameStartedNavigating struct {
	FrameID        cdp.FrameID                          `json:"frameId"`  // ID of the frame that is being navigated.
	URL            string                               `json:"url"`      // The URL the navigation started with. The final URL can be different.
	LoaderID       cdp.LoaderID                         `json:"loaderId"` // Loader identifier. Even though it is present in case of same-document navigation, the previously committed loaderId would not change unless the navigation changes from a same-document to a cross-document navigation.
	NavigationType FrameStartedNavigatingNavigationType `json:"navigationType"`
}

EventFrameStartedNavigating fired when a navigation starts. This event is fired for both renderer-initiated and browser-initiated navigations. For renderer-initiated navigations, the event is fired after frameRequestedNavigation. Navigation may still be cancelled after the event is issued. Multiple events can be fired for a single navigation, for example, when a same-document navigation becomes a cross-document navigation (such as in the case of a frameset).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedNavigating

type EventFrameStoppedLoading

type EventFrameStoppedLoading struct {
	FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has stopped loading.
}

EventFrameStoppedLoading fired when frame has stopped loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStoppedLoading

type EventFrameSubtreeWillBeDetached

type EventFrameSubtreeWillBeDetached struct {
	FrameID cdp.FrameID `json:"frameId"` // Id of the frame that is the root of the subtree that will be detached.
}

EventFrameSubtreeWillBeDetached fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameSubtreeWillBeDetached

type EventInterstitialHidden

type EventInterstitialHidden struct{}

EventInterstitialHidden fired when interstitial page was hidden.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-interstitialHidden

type EventInterstitialShown

type EventInterstitialShown struct{}

EventInterstitialShown fired when interstitial page was shown.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-interstitialShown

type EventJavascriptDialogClosed

type EventJavascriptDialogClosed struct {
	FrameID   cdp.FrameID `json:"frameId"`   // Frame id.
	Result    bool        `json:"result"`    // Whether dialog was confirmed.
	UserInput string      `json:"userInput"` // User input in case of prompt.
}

EventJavascriptDialogClosed fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-javascriptDialogClosed

type EventJavascriptDialogOpening

type EventJavascriptDialogOpening struct {
	URL               string      `json:"url"`                              // Frame url.
	FrameID           cdp.FrameID `json:"frameId"`                          // Frame id.
	Message           string      `json:"message"`                          // Message that will be displayed by the dialog.
	Type              DialogType  `json:"type"`                             // Dialog type.
	HasBrowserHandler bool        `json:"hasBrowserHandler"`                // True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
	DefaultPrompt     string      `json:"defaultPrompt,omitempty,omitzero"` // Default dialog prompt.
}

EventJavascriptDialogOpening fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-javascriptDialogOpening

type EventLifecycleEvent

type EventLifecycleEvent struct {
	FrameID   cdp.FrameID       `json:"frameId"`  // Id of the frame.
	LoaderID  cdp.LoaderID      `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker.
	Name      string            `json:"name"`
	Timestamp cdp.MonotonicTime `json:"timestamp"`
}

EventLifecycleEvent fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-lifecycleEvent

type EventLoadEventFired

type EventLoadEventFired struct {
	Timestamp cdp.MonotonicTime `json:"timestamp"`
}

EventLoadEventFired [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-loadEventFired

type EventNavigatedWithinDocument

type EventNavigatedWithinDocument struct {
	FrameID        cdp.FrameID                           `json:"frameId"`        // Id of the frame.
	URL            string                                `json:"url"`            // Frame's new url.
	NavigationType NavigatedWithinDocumentNavigationType `json:"navigationType"` // Navigation type
}

EventNavigatedWithinDocument fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-navigatedWithinDocument

type EventScreencastFrame

type EventScreencastFrame struct {
	Data      []byte                   `json:"data"`      // Base64-encoded compressed image.
	Metadata  *ScreencastFrameMetadata `json:"metadata"`  // Screencast frame metadata.
	SessionID int64                    `json:"sessionId"` // Frame number.
}

EventScreencastFrame compressed image data requested by the startScreencast.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-screencastFrame

type EventScreencastVisibilityChanged

type EventScreencastVisibilityChanged struct {
	Visible bool `json:"visible"` // True if the page is visible.
}

EventScreencastVisibilityChanged fired when the page with currently enabled screencast was shown or hidden .

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-screencastVisibilityChanged

type EventWindowOpen

type EventWindowOpen struct {
	URL            string   `json:"url"`            // The URL for the new window.
	WindowName     string   `json:"windowName"`     // Window name.
	WindowFeatures []string `json:"windowFeatures"` // An array of enabled window features.
	UserGesture    bool     `json:"userGesture"`    // Whether or not it was triggered by user gesture.
}

EventWindowOpen fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-windowOpen

type FileChooserOpenedMode added in v0.157.1

type FileChooserOpenedMode string

FileChooserOpenedMode input mode.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-fileChooserOpened

const (
	FileChooserOpenedModeSelectSingle   FileChooserOpenedMode = "selectSingle"
	FileChooserOpenedModeSelectMultiple FileChooserOpenedMode = "selectMultiple"
)

FileChooserOpenedMode values.

func (FileChooserOpenedMode) String added in v0.157.1

func (t FileChooserOpenedMode) String() string

String returns the FileChooserOpenedMode as string value.

type FileFilter

type FileFilter struct {
	Name    string   `json:"name,omitempty,omitzero"`
	Accepts []string `json:"accepts,omitempty,omitzero"`
}

FileFilter [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FileFilter

type FileHandler

type FileHandler struct {
	Action     string        `json:"action"`
	Name       string        `json:"name"`
	Accepts    []*FileFilter `json:"accepts,omitempty,omitzero"` // Mimic a map, name is the key, accepts is the value.
	LaunchType string        `json:"launchType"`                 // Won't repeat the enums, using string for easy comparison. Same as the other enums below.
}

FileHandler [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FileHandler

type FontFamilies

type FontFamilies struct {
	Standard  string `json:"standard,omitempty,omitzero"`  // The standard font-family.
	Fixed     string `json:"fixed,omitempty,omitzero"`     // The fixed font-family.
	Serif     string `json:"serif,omitempty,omitzero"`     // The serif font-family.
	SansSerif string `json:"sansSerif,omitempty,omitzero"` // The sansSerif font-family.
	Cursive   string `json:"cursive,omitempty,omitzero"`   // The cursive font-family.
	Fantasy   string `json:"fantasy,omitempty,omitzero"`   // The fantasy font-family.
	Math      string `json:"math,omitempty,omitzero"`      // The math font-family.
}

FontFamilies generic font families collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FontFamilies

type FontSizes

type FontSizes struct {
	Standard int64 `json:"standard,omitempty,omitzero"` // Default standard font size.
	Fixed    int64 `json:"fixed,omitempty,omitzero"`    // Default fixed font size.
}

FontSizes default font sizes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FontSizes

type FrameDetachedReason added in v0.157.1

type FrameDetachedReason string

FrameDetachedReason [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameDetached

const (
	FrameDetachedReasonRemove FrameDetachedReason = "remove"
	FrameDetachedReasonSwap   FrameDetachedReason = "swap"
)

FrameDetachedReason values.

func (FrameDetachedReason) String added in v0.157.1

func (t FrameDetachedReason) String() string

String returns the FrameDetachedReason as string value.

type FrameResource

type FrameResource struct {
	URL          string               `json:"url"`                             // Resource URL.
	Type         network.ResourceType `json:"type"`                            // Type of this resource.
	MimeType     string               `json:"mimeType"`                        // Resource mimeType as determined by the browser.
	LastModified cdp.TimeSinceEpoch   `json:"lastModified,omitempty,omitzero"` // last-modified timestamp as reported by server.
	ContentSize  float64              `json:"contentSize,omitempty,omitzero"`  // Resource content size.
	Failed       bool                 `json:"failed"`                          // True if the resource failed to load.
	Canceled     bool                 `json:"canceled"`                        // True if the resource was canceled during loading.
}

FrameResource information about the Resource on the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FrameResource

type FrameResourceTree

type FrameResourceTree struct {
	Frame       *cdp.Frame           `json:"frame"`                          // Frame information for this tree item.
	ChildFrames []*FrameResourceTree `json:"childFrames,omitempty,omitzero"` // Child frames.
	Resources   []*FrameResource     `json:"resources"`                      // Information about frame resources.
}

FrameResourceTree information about the Frame hierarchy along with their cached resources.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FrameResourceTree

type FrameStartedNavigatingNavigationType added in v0.157.1

type FrameStartedNavigatingNavigationType string

FrameStartedNavigatingNavigationType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedNavigating

const (
	FrameStartedNavigatingNavigationTypeReload                   FrameStartedNavigatingNavigationType = "reload"
	FrameStartedNavigatingNavigationTypeReloadBypassingCache     FrameStartedNavigatingNavigationType = "reloadBypassingCache"
	FrameStartedNavigatingNavigationTypeRestore                  FrameStartedNavigatingNavigationType = "restore"
	FrameStartedNavigatingNavigationTypeRestoreWithPost          FrameStartedNavigatingNavigationType = "restoreWithPost"
	FrameStartedNavigatingNavigationTypeHistorySameDocument      FrameStartedNavigatingNavigationType = "historySameDocument"
	FrameStartedNavigatingNavigationTypeHistoryDifferentDocument FrameStartedNavigatingNavigationType = "historyDifferentDocument"
	FrameStartedNavigatingNavigationTypeSameDocument             FrameStartedNavigatingNavigationType = "sameDocument"
	FrameStartedNavigatingNavigationTypeDifferentDocument        FrameStartedNavigatingNavigationType = "differentDocument"
)

FrameStartedNavigatingNavigationType values.

func (FrameStartedNavigatingNavigationType) String added in v0.157.1

String returns the FrameStartedNavigatingNavigationType as string value.

type FrameTree

type FrameTree struct {
	Frame       *cdp.Frame   `json:"frame"`                          // Frame information for this tree item.
	ChildFrames []*FrameTree `json:"childFrames,omitempty,omitzero"` // Child frames.
}

FrameTree information about the Frame hierarchy.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-FrameTree

type GenerateTestReportParams

type GenerateTestReportParams struct {
	Message string `json:"message"`                  // Message to be displayed in the report.
	Group   string `json:"group,omitempty,omitzero"` // Specifies the endpoint group to deliver the report to.
}

GenerateTestReportParams are the parameters of the command Page.generateTestReport.

type GetAdScriptAncestryParams

type GetAdScriptAncestryParams struct {
	FrameID cdp.FrameID `json:"frameId"`
}

GetAdScriptAncestryParams are the parameters of the command Page.getAdScriptAncestry.

type GetAdScriptAncestryResult added in v0.157.3

type GetAdScriptAncestryResult struct {
	AdScriptAncestry *cdp.AdAncestry `json:"adScriptAncestry,omitempty,omitzero"` // The ancestry chain of ad script identifiers leading to this frame's creation, along with the root script's filterlist rule. The ancestry chain is ordered from the most immediate script (in the frame creation stack) to more distant ancestors (that created the immediately preceding script). Only sent if frame is labelled as an ad and ids are available.
}

GetAdScriptAncestryResult is the result of the command Page.getAdScriptAncestry.

type GetAnnotatedPageContentParams

type GetAnnotatedPageContentParams struct {
	IncludeActionableInformation *bool `json:"includeActionableInformation,omitempty,omitzero"` // Whether to include actionable information. Defaults to true.
}

GetAnnotatedPageContentParams are the parameters of the command Page.getAnnotatedPageContent.

type GetAnnotatedPageContentResult added in v0.157.3

type GetAnnotatedPageContentResult struct {
	Content []byte `json:"content,omitempty,omitzero"` // The annotated page content as a base64 encoded protobuf. The format is defined by the AnnotatedPageContent message in components/optimization_guide/proto/features/common_quality_data.proto
}

GetAnnotatedPageContentResult is the result of the command Page.getAnnotatedPageContent.

type GetAppIDResult added in v0.157.3

type GetAppIDResult struct {
	AppID         string `json:"appId,omitempty,omitzero"`         // App id, either from manifest's id attribute or computed from start_url
	RecommendedID string `json:"recommendedId,omitempty,omitzero"` // Recommendation for manifest's id attribute to match current id computed from start_url
	BundleID      string `json:"bundleId,omitempty,omitzero"`      // The bundle ID for an Isolated Web App (IWA)
	ParentAppName string `json:"parentAppName,omitempty,omitzero"` // The name of the parent app if this app is a Sub-App
}

GetAppIDResult is the result of the command Page.getAppId.

type GetAppManifestParams

type GetAppManifestParams struct {
	ManifestID string `json:"manifestId,omitempty,omitzero"`
}

GetAppManifestParams are the parameters of the command Page.getAppManifest.

type GetAppManifestResult added in v0.157.3

type GetAppManifestResult struct {
	URL      string              `json:"url,omitempty,omitzero"` // Manifest location.
	Errors   []*AppManifestError `json:"errors,omitempty,omitzero"`
	Data     string              `json:"data,omitempty,omitzero"` // Manifest content.
	Manifest *WebAppManifest     `json:"manifest,omitempty,omitzero"`
}

GetAppManifestResult is the result of the command Page.getAppManifest.

type GetFrameTreeResult added in v0.157.3

type GetFrameTreeResult struct {
	FrameTree *FrameTree `json:"frameTree,omitempty,omitzero"` // Present frame tree structure.
}

GetFrameTreeResult is the result of the command Page.getFrameTree.

type GetInstallabilityErrorsResult added in v0.157.3

type GetInstallabilityErrorsResult struct {
	InstallabilityErrors []*InstallabilityError `json:"installabilityErrors,omitempty,omitzero"`
}

GetInstallabilityErrorsResult is the result of the command Page.getInstallabilityErrors.

type GetLayoutMetricsResult added in v0.157.3

type GetLayoutMetricsResult struct {
	CSSLayoutViewport *LayoutViewport `json:"cssLayoutViewport,omitempty,omitzero"` // Metrics relating to the layout viewport in CSS pixels.
	CSSVisualViewport *VisualViewport `json:"cssVisualViewport,omitempty,omitzero"` // Metrics relating to the visual viewport in CSS pixels.
	CSSContentSize    *dom.Rect       `json:"cssContentSize,omitempty,omitzero"`    // Size of scrollable area in CSS pixels.
}

GetLayoutMetricsResult is the result of the command Page.getLayoutMetrics.

type GetNavigationHistoryResult added in v0.157.3

type GetNavigationHistoryResult struct {
	CurrentIndex int64              `json:"currentIndex,omitempty,omitzero"` // Index of the current navigation history entry.
	Entries      []*NavigationEntry `json:"entries,omitempty,omitzero"`      // Array of navigation history entries.
}

GetNavigationHistoryResult is the result of the command Page.getNavigationHistory.

type GetOriginTrialsParams

type GetOriginTrialsParams struct {
	FrameID cdp.FrameID `json:"frameId"`
}

GetOriginTrialsParams are the parameters of the command Page.getOriginTrials.

type GetOriginTrialsResult added in v0.157.3

type GetOriginTrialsResult struct {
	OriginTrials []*cdp.OriginTrial `json:"originTrials,omitempty,omitzero"`
}

GetOriginTrialsResult is the result of the command Page.getOriginTrials.

type GetPermissionsPolicyStateParams

type GetPermissionsPolicyStateParams struct {
	FrameID cdp.FrameID `json:"frameId"`
}

GetPermissionsPolicyStateParams are the parameters of the command Page.getPermissionsPolicyState.

type GetPermissionsPolicyStateResult added in v0.157.3

type GetPermissionsPolicyStateResult struct {
	States []*PermissionsPolicyFeatureState `json:"states,omitempty,omitzero"`
}

GetPermissionsPolicyStateResult is the result of the command Page.getPermissionsPolicyState.

type GetResourceContentParams

type GetResourceContentParams struct {
	FrameID cdp.FrameID `json:"frameId"` // Frame id to get resource for.
	URL     string      `json:"url"`     // URL of the resource to get content for.
}

GetResourceContentParams are the parameters of the command Page.getResourceContent.

type GetResourceContentResult added in v0.157.3

type GetResourceContentResult struct {
	Content       []byte `json:"content,omitempty,omitzero"` // Resource content.
	Base64encoded bool   `json:"base64Encoded"`              // True, if content was served as base64.
}

GetResourceContentResult is the result of the command Page.getResourceContent.

func (*GetResourceContentResult) UnmarshalJSON added in v0.157.3

func (r *GetResourceContentResult) UnmarshalJSON(buf []byte) error

UnmarshalJSON decodes the value. The browser sends content as text, or as base64 when r.Base64encoded, and Content holds the decoded bytes.

type GetResourceTreeResult added in v0.157.3

type GetResourceTreeResult struct {
	FrameTree *FrameResourceTree `json:"frameTree,omitempty,omitzero"` // Present frame / resource tree structure.
}

GetResourceTreeResult is the result of the command Page.getResourceTree.

type GetSiblingSubAppsResult added in v0.157.3

type GetSiblingSubAppsResult struct {
	SubApps []*SubApp `json:"subApps,omitempty,omitzero"`
}

GetSiblingSubAppsResult is the result of the command Page.getSiblingSubApps.

type GetSpellCheckCustomDictionaryParams added in v0.157.10

type GetSpellCheckCustomDictionaryParams struct {
	FrameID cdp.FrameID `json:"frameId"`
}

GetSpellCheckCustomDictionaryParams are the parameters of the command Page.getSpellCheckCustomDictionary.

type GetSpellCheckCustomDictionaryResult added in v0.157.10

type GetSpellCheckCustomDictionaryResult struct {
	Words []string `json:"words,omitempty,omitzero"`
}

GetSpellCheckCustomDictionaryResult is the result of the command Page.getSpellCheckCustomDictionary.

type GetSubAppsResult added in v0.157.3

type GetSubAppsResult struct {
	SubApps []*SubApp `json:"subApps,omitempty,omitzero"`
}

GetSubAppsResult is the result of the command Page.getSubApps.

type HandleJavaScriptDialogParams

type HandleJavaScriptDialogParams struct {
	Accept     bool   `json:"accept"`                        // Whether to accept or dismiss the dialog.
	PromptText string `json:"promptText,omitempty,omitzero"` // The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.
}

HandleJavaScriptDialogParams are the parameters of the command Page.handleJavaScriptDialog.

type ImageResource

type ImageResource struct {
	URL   string `json:"url"` // The src field in the definition, but changing to url in favor of consistency.
	Sizes string `json:"sizes,omitempty,omitzero"`
	Type  string `json:"type,omitempty,omitzero"`
}

ImageResource the image definition used in both icon and screenshot.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ImageResource

type InstallabilityError

type InstallabilityError struct {
	ErrorID        string                         `json:"errorId"`        // The error id (e.g. 'manifest-missing-suitable-icon').
	ErrorArguments []*InstallabilityErrorArgument `json:"errorArguments"` // The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).
}

InstallabilityError the installability error.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-InstallabilityError

type InstallabilityErrorArgument

type InstallabilityErrorArgument struct {
	Name  string `json:"name"`  // Argument name (e.g. name:'minimum-icon-size-in-pixels').
	Value string `json:"value"` // Argument value (e.g. value:'64').
}

InstallabilityErrorArgument [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-InstallabilityErrorArgument

type LaunchHandler

type LaunchHandler struct {
	ClientMode string `json:"clientMode"`
}

LaunchHandler [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-LaunchHandler

type LayoutViewport

type LayoutViewport struct {
	PageX        int64 `json:"pageX"`        // Horizontal offset relative to the document (CSS pixels).
	PageY        int64 `json:"pageY"`        // Vertical offset relative to the document (CSS pixels).
	ClientWidth  int64 `json:"clientWidth"`  // Width (CSS pixels), excludes scrollbar if present.
	ClientHeight int64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present.
}

LayoutViewport layout viewport position and dimensions.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-LayoutViewport

type NavigateParams struct {
	URL            string         `json:"url"`                               // URL to navigate the page to.
	Referrer       string         `json:"referrer,omitempty,omitzero"`       // Referrer URL.
	TransitionType TransitionType `json:"transitionType,omitempty,omitzero"` // Intended transition type.
	FrameID        cdp.FrameID    `json:"frameId,omitempty,omitzero"`        // Frame id to navigate, if not specified navigates the top frame.
	ReferrerPolicy ReferrerPolicy `json:"referrerPolicy,omitempty,omitzero"` // Referrer-policy used for the navigation.
}

NavigateParams are the parameters of the command Page.navigate.

type NavigateResult struct {
	FrameID    cdp.FrameID  `json:"frameId,omitempty,omitzero"`   // Frame id that has navigated (or failed to navigate)
	LoaderID   cdp.LoaderID `json:"loaderId,omitempty,omitzero"`  // Loader identifier. This is omitted in case of same-document navigation, as the previously committed loaderId would not change.
	ErrorText  string       `json:"errorText,omitempty,omitzero"` // User friendly error message, present if and only if navigation has failed.
	IsDownload bool         `json:"isDownload"`                   // Whether the navigation resulted in a download.
}

NavigateResult is the result of the command Page.navigate.

type NavigateToHistoryEntryParams struct {
	EntryID int64 `json:"entryId"` // Unique id of the entry to navigate to.
}

NavigateToHistoryEntryParams are the parameters of the command Page.navigateToHistoryEntry.

type NavigatedWithinDocumentNavigationType string

NavigatedWithinDocumentNavigationType navigation type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-navigatedWithinDocument

const (
	NavigatedWithinDocumentNavigationTypeFragment   NavigatedWithinDocumentNavigationType = "fragment"
	NavigatedWithinDocumentNavigationTypeHistoryAPI NavigatedWithinDocumentNavigationType = "historyApi"
	NavigatedWithinDocumentNavigationTypeOther      NavigatedWithinDocumentNavigationType = "other"
)

NavigatedWithinDocumentNavigationType values.

String returns the NavigatedWithinDocumentNavigationType as string value.

type NavigationEntry struct {
	ID             int64          `json:"id"`             // Unique id of the navigation history entry.
	URL            string         `json:"url"`            // URL of the navigation history entry.
	UserTypedURL   string         `json:"userTypedURL"`   // URL that the user typed in the url bar.
	Title          string         `json:"title"`          // Title of the navigation history entry.
	TransitionType TransitionType `json:"transitionType"` // Transition type.
}

NavigationEntry navigation history entry.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-NavigationEntry

type NavigationType string

NavigationType the type of a frameNavigated event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-NavigationType

const (
	NavigationTypeNavigation              NavigationType = "Navigation"
	NavigationTypeBackForwardCacheRestore NavigationType = "BackForwardCacheRestore"
)

NavigationType values.

func (t NavigationType) String() string

String returns the NavigationType as string value.

type PermissionsPolicyBlockLocator

type PermissionsPolicyBlockLocator struct {
	FrameID     cdp.FrameID                  `json:"frameId"`
	BlockReason PermissionsPolicyBlockReason `json:"blockReason"`
}

PermissionsPolicyBlockLocator [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-PermissionsPolicyBlockLocator

type PermissionsPolicyBlockReason

type PermissionsPolicyBlockReason string

PermissionsPolicyBlockReason reason for a permissions policy feature to be disabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-PermissionsPolicyBlockReason

const (
	PermissionsPolicyBlockReasonHeader            PermissionsPolicyBlockReason = "Header"
	PermissionsPolicyBlockReasonIframeAttribute   PermissionsPolicyBlockReason = "IframeAttribute"
	PermissionsPolicyBlockReasonInFencedFrameTree PermissionsPolicyBlockReason = "InFencedFrameTree"
	PermissionsPolicyBlockReasonInIsolatedApp     PermissionsPolicyBlockReason = "InIsolatedApp"
)

PermissionsPolicyBlockReason values.

func (PermissionsPolicyBlockReason) String

String returns the PermissionsPolicyBlockReason as string value.

type PermissionsPolicyFeature

type PermissionsPolicyFeature string

PermissionsPolicyFeature all Permissions Policy features. This enum should match the one defined in services/network/public/cpp/permissions_policy/permissions_policy_features.json5. LINT.IfChange(PermissionsPolicyFeature).

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-PermissionsPolicyFeature

const (
	PermissionsPolicyFeatureAccelerometer                            PermissionsPolicyFeature = "accelerometer"
	PermissionsPolicyFeatureAllScreensCapture                        PermissionsPolicyFeature = "all-screens-capture"
	PermissionsPolicyFeatureAmbientLightSensor                       PermissionsPolicyFeature = "ambient-light-sensor"
	PermissionsPolicyFeatureAriaNotify                               PermissionsPolicyFeature = "aria-notify"
	PermissionsPolicyFeatureAutofill                                 PermissionsPolicyFeature = "autofill"
	PermissionsPolicyFeatureAutoplay                                 PermissionsPolicyFeature = "autoplay"
	PermissionsPolicyFeatureBluetooth                                PermissionsPolicyFeature = "bluetooth"
	PermissionsPolicyFeatureBrowsingTopics                           PermissionsPolicyFeature = "browsing-topics"
	PermissionsPolicyFeatureCamera                                   PermissionsPolicyFeature = "camera"
	PermissionsPolicyFeatureCapturedSurfaceControl                   PermissionsPolicyFeature = "captured-surface-control"
	PermissionsPolicyFeatureChDpr                                    PermissionsPolicyFeature = "ch-dpr"
	PermissionsPolicyFeatureChDeviceMemory                           PermissionsPolicyFeature = "ch-device-memory"
	PermissionsPolicyFeatureChDownlink                               PermissionsPolicyFeature = "ch-downlink"
	PermissionsPolicyFeatureChEct                                    PermissionsPolicyFeature = "ch-ect"
	PermissionsPolicyFeatureChPrefersColorScheme                     PermissionsPolicyFeature = "ch-prefers-color-scheme"
	PermissionsPolicyFeatureChPrefersReducedMotion                   PermissionsPolicyFeature = "ch-prefers-reduced-motion"
	PermissionsPolicyFeatureChPrefersReducedTransparency             PermissionsPolicyFeature = "ch-prefers-reduced-transparency"
	PermissionsPolicyFeatureChRtt                                    PermissionsPolicyFeature = "ch-rtt"
	PermissionsPolicyFeatureChSaveData                               PermissionsPolicyFeature = "ch-save-data"
	PermissionsPolicyFeatureChUa                                     PermissionsPolicyFeature = "ch-ua"
	PermissionsPolicyFeatureChUaArch                                 PermissionsPolicyFeature = "ch-ua-arch"
	PermissionsPolicyFeatureChUaBitness                              PermissionsPolicyFeature = "ch-ua-bitness"
	PermissionsPolicyFeatureChUaHighEntropyValues                    PermissionsPolicyFeature = "ch-ua-high-entropy-values"
	PermissionsPolicyFeatureChUaPlatform                             PermissionsPolicyFeature = "ch-ua-platform"
	PermissionsPolicyFeatureChUaModel                                PermissionsPolicyFeature = "ch-ua-model"
	PermissionsPolicyFeatureChUaMobile                               PermissionsPolicyFeature = "ch-ua-mobile"
	PermissionsPolicyFeatureChUaFormFactors                          PermissionsPolicyFeature = "ch-ua-form-factors"
	PermissionsPolicyFeatureChUaFullVersion                          PermissionsPolicyFeature = "ch-ua-full-version"
	PermissionsPolicyFeatureChUaFullVersionList                      PermissionsPolicyFeature = "ch-ua-full-version-list"
	PermissionsPolicyFeatureChUaPlatformVersion                      PermissionsPolicyFeature = "ch-ua-platform-version"
	PermissionsPolicyFeatureChUaWow64                                PermissionsPolicyFeature = "ch-ua-wow64"
	PermissionsPolicyFeatureChViewportHeight                         PermissionsPolicyFeature = "ch-viewport-height"
	PermissionsPolicyFeatureChViewportWidth                          PermissionsPolicyFeature = "ch-viewport-width"
	PermissionsPolicyFeatureChWidth                                  PermissionsPolicyFeature = "ch-width"
	PermissionsPolicyFeatureClipboardRead                            PermissionsPolicyFeature = "clipboard-read"
	PermissionsPolicyFeatureClipboardWrite                           PermissionsPolicyFeature = "clipboard-write"
	PermissionsPolicyFeatureComputePressure                          PermissionsPolicyFeature = "compute-pressure"
	PermissionsPolicyFeatureControlledFrame                          PermissionsPolicyFeature = "controlled-frame"
	PermissionsPolicyFeatureCrossOriginIsolated                      PermissionsPolicyFeature = "cross-origin-isolated"
	PermissionsPolicyFeatureDeferredFetch                            PermissionsPolicyFeature = "deferred-fetch"
	PermissionsPolicyFeatureDeferredFetchMinimal                     PermissionsPolicyFeature = "deferred-fetch-minimal"
	PermissionsPolicyFeatureDeviceAttributes                         PermissionsPolicyFeature = "device-attributes"
	PermissionsPolicyFeatureDigitalCredentialsCreate                 PermissionsPolicyFeature = "digital-credentials-create"
	PermissionsPolicyFeatureDigitalCredentialsGet                    PermissionsPolicyFeature = "digital-credentials-get"
	PermissionsPolicyFeatureDirectSockets                            PermissionsPolicyFeature = "direct-sockets"
	PermissionsPolicyFeatureDirectSocketsMulticast                   PermissionsPolicyFeature = "direct-sockets-multicast"
	PermissionsPolicyFeatureDisplayCapture                           PermissionsPolicyFeature = "display-capture"
	PermissionsPolicyFeatureDocumentDomain                           PermissionsPolicyFeature = "document-domain"
	PermissionsPolicyFeatureEncryptedMedia                           PermissionsPolicyFeature = "encrypted-media"
	PermissionsPolicyFeatureExecutionWhileOutOfViewport              PermissionsPolicyFeature = "execution-while-out-of-viewport"
	PermissionsPolicyFeatureExecutionWhileNotRendered                PermissionsPolicyFeature = "execution-while-not-rendered"
	PermissionsPolicyFeatureFocusWithoutUserActivation               PermissionsPolicyFeature = "focus-without-user-activation"
	PermissionsPolicyFeatureFullscreen                               PermissionsPolicyFeature = "fullscreen"
	PermissionsPolicyFeatureFrobulate                                PermissionsPolicyFeature = "frobulate"
	PermissionsPolicyFeatureGamepad                                  PermissionsPolicyFeature = "gamepad"
	PermissionsPolicyFeatureGeolocation                              PermissionsPolicyFeature = "geolocation"
	PermissionsPolicyFeatureGyroscope                                PermissionsPolicyFeature = "gyroscope"
	PermissionsPolicyFeatureHaptics                                  PermissionsPolicyFeature = "haptics"
	PermissionsPolicyFeatureHid                                      PermissionsPolicyFeature = "hid"
	PermissionsPolicyFeatureIdentityCredentialsGet                   PermissionsPolicyFeature = "identity-credentials-get"
	PermissionsPolicyFeatureIdleDetection                            PermissionsPolicyFeature = "idle-detection"
	PermissionsPolicyFeatureInterestCohort                           PermissionsPolicyFeature = "interest-cohort"
	PermissionsPolicyFeatureKeyboardMap                              PermissionsPolicyFeature = "keyboard-map"
	PermissionsPolicyFeatureLanguageDetector                         PermissionsPolicyFeature = "language-detector"
	PermissionsPolicyFeatureLanguageModel                            PermissionsPolicyFeature = "language-model"
	PermissionsPolicyFeatureLocalFonts                               PermissionsPolicyFeature = "local-fonts"
	PermissionsPolicyFeatureLocalNetwork                             PermissionsPolicyFeature = "local-network"
	PermissionsPolicyFeatureLocalNetworkAccess                       PermissionsPolicyFeature = "local-network-access"
	PermissionsPolicyFeatureLoopbackNetwork                          PermissionsPolicyFeature = "loopback-network"
	PermissionsPolicyFeatureMagnetometer                             PermissionsPolicyFeature = "magnetometer"
	PermissionsPolicyFeatureManualText                               PermissionsPolicyFeature = "manual-text"
	PermissionsPolicyFeatureMediaPlaybackWhileNotVisible             PermissionsPolicyFeature = "media-playback-while-not-visible"
	PermissionsPolicyFeatureMicrophone                               PermissionsPolicyFeature = "microphone"
	PermissionsPolicyFeatureMidi                                     PermissionsPolicyFeature = "midi"
	PermissionsPolicyFeatureOnDeviceSpeechRecognition                PermissionsPolicyFeature = "on-device-speech-recognition"
	PermissionsPolicyFeatureOtpCredentials                           PermissionsPolicyFeature = "otp-credentials"
	PermissionsPolicyFeaturePayment                                  PermissionsPolicyFeature = "payment"
	PermissionsPolicyFeaturePictureInPicture                         PermissionsPolicyFeature = "picture-in-picture"
	PermissionsPolicyFeaturePrivateStateTokenIssuance                PermissionsPolicyFeature = "private-state-token-issuance"
	PermissionsPolicyFeaturePrivateStateTokenRedemption              PermissionsPolicyFeature = "private-state-token-redemption"
	PermissionsPolicyFeaturePublickeyCredentialsCreate               PermissionsPolicyFeature = "publickey-credentials-create"
	PermissionsPolicyFeaturePublickeyCredentialsGet                  PermissionsPolicyFeature = "publickey-credentials-get"
	PermissionsPolicyFeaturePublickeyCredentialsRemoteClientDataJSON PermissionsPolicyFeature = "publickey-credentials-remote-client-data-json"
	PermissionsPolicyFeatureRewriter                                 PermissionsPolicyFeature = "rewriter"
	PermissionsPolicyFeatureScreenWakeLock                           PermissionsPolicyFeature = "screen-wake-lock"
	PermissionsPolicyFeatureSerial                                   PermissionsPolicyFeature = "serial"
	PermissionsPolicyFeatureSmartCard                                PermissionsPolicyFeature = "smart-card"
	PermissionsPolicyFeatureSpeakerSelection                         PermissionsPolicyFeature = "speaker-selection"
	PermissionsPolicyFeatureStorageAccess                            PermissionsPolicyFeature = "storage-access"
	PermissionsPolicyFeatureSubApps                                  PermissionsPolicyFeature = "sub-apps"
	PermissionsPolicyFeatureSummarizer                               PermissionsPolicyFeature = "summarizer"
	PermissionsPolicyFeatureSyncXhr                                  PermissionsPolicyFeature = "sync-xhr"
	PermissionsPolicyFeatureTools                                    PermissionsPolicyFeature = "tools"
	PermissionsPolicyFeatureTranslator                               PermissionsPolicyFeature = "translator"
	PermissionsPolicyFeatureUnboundedElement                         PermissionsPolicyFeature = "unbounded-element"
	PermissionsPolicyFeatureUnload                                   PermissionsPolicyFeature = "unload"
	PermissionsPolicyFeatureUsb                                      PermissionsPolicyFeature = "usb"
	PermissionsPolicyFeatureUsbUnrestricted                          PermissionsPolicyFeature = "usb-unrestricted"
	PermissionsPolicyFeatureVerticalScroll                           PermissionsPolicyFeature = "vertical-scroll"
	PermissionsPolicyFeatureWebAppInstallation                       PermissionsPolicyFeature = "web-app-installation"
	PermissionsPolicyFeatureWebnn                                    PermissionsPolicyFeature = "webnn"
	PermissionsPolicyFeatureWebPrinting                              PermissionsPolicyFeature = "web-printing"
	PermissionsPolicyFeatureWebShare                                 PermissionsPolicyFeature = "web-share"
	PermissionsPolicyFeatureWindowManagement                         PermissionsPolicyFeature = "window-management"
	PermissionsPolicyFeatureWriter                                   PermissionsPolicyFeature = "writer"
	PermissionsPolicyFeatureXrSpatialTracking                        PermissionsPolicyFeature = "xr-spatial-tracking"
)

PermissionsPolicyFeature values.

func (PermissionsPolicyFeature) String

func (t PermissionsPolicyFeature) String() string

String returns the PermissionsPolicyFeature as string value.

type PermissionsPolicyFeatureState

type PermissionsPolicyFeatureState struct {
	Feature PermissionsPolicyFeature       `json:"feature"`
	Allowed bool                           `json:"allowed"`
	Locator *PermissionsPolicyBlockLocator `json:"locator,omitempty,omitzero"`
}

PermissionsPolicyFeatureState [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-PermissionsPolicyFeatureState

type PrintToPDFParams

type PrintToPDFParams struct {
	Landscape               *bool                  `json:"landscape,omitempty,omitzero"`               // Paper orientation. Defaults to false.
	DisplayHeaderFooter     *bool                  `json:"displayHeaderFooter,omitempty,omitzero"`     // Display header and footer. Defaults to false.
	PrintBackground         *bool                  `json:"printBackground,omitempty,omitzero"`         // Print background graphics. Defaults to false.
	Scale                   float64                `json:"scale,omitempty,omitzero"`                   // Scale of the webpage rendering. Defaults to 1.
	PaperWidth              float64                `json:"paperWidth,omitempty,omitzero"`              // Paper width in inches. Defaults to 8.5 inches.
	PaperHeight             float64                `json:"paperHeight,omitempty,omitzero"`             // Paper height in inches. Defaults to 11 inches.
	MarginTop               *float64               `json:"marginTop,omitempty,omitzero"`               // Top margin in inches. Defaults to 1cm (~0.4 inches).
	MarginBottom            *float64               `json:"marginBottom,omitempty,omitzero"`            // Bottom margin in inches. Defaults to 1cm (~0.4 inches).
	MarginLeft              *float64               `json:"marginLeft,omitempty,omitzero"`              // Left margin in inches. Defaults to 1cm (~0.4 inches).
	MarginRight             *float64               `json:"marginRight,omitempty,omitzero"`             // Right margin in inches. Defaults to 1cm (~0.4 inches).
	PageRanges              string                 `json:"pageRanges,omitempty,omitzero"`              // Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed in the document order, not in the order specified, and no more than once. Defaults to empty string, which implies the entire document is printed. The page numbers are quietly capped to actual page count of the document, and ranges beyond the end of the document are ignored. If this results in no pages to print, an error is reported. It is an error to specify a range with start greater than end.
	HeaderTemplate          string                 `json:"headerTemplate,omitempty,omitzero"`          // HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document  For example, <span class=title></span> would generate span containing the title.
	FooterTemplate          string                 `json:"footerTemplate,omitempty,omitzero"`          // HTML template for the print footer. Should use the same format as the headerTemplate.
	PreferCSSPageSize       *bool                  `json:"preferCSSPageSize,omitempty,omitzero"`       // Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.
	TransferMode            PrintToPDFTransferMode `json:"transferMode,omitempty,omitzero"`            // return as stream
	GenerateTaggedPDF       *bool                  `json:"generateTaggedPDF,omitempty,omitzero"`       // Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
	GenerateDocumentOutline *bool                  `json:"generateDocumentOutline,omitempty,omitzero"` // Whether or not to embed the document outline into the PDF.
}

PrintToPDFParams are the parameters of the command Page.printToPDF.

type PrintToPDFResult added in v0.157.3

type PrintToPDFResult struct {
	Data   []byte          `json:"data,omitempty,omitzero"`   // Base64-encoded pdf data. Empty if |returnAsStream| is specified.
	Stream io.StreamHandle `json:"stream,omitempty,omitzero"` // A handle of the stream that holds resulting PDF data.
}

PrintToPDFResult is the result of the command Page.printToPDF.

type PrintToPDFTransferMode added in v0.157.1

type PrintToPDFTransferMode string

PrintToPDFTransferMode return as stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-printToPDF

const (
	PrintToPDFTransferModeReturnAsBase64 PrintToPDFTransferMode = "ReturnAsBase64"
	PrintToPDFTransferModeReturnAsStream PrintToPDFTransferMode = "ReturnAsStream"
)

PrintToPDFTransferMode values.

func (PrintToPDFTransferMode) String added in v0.157.1

func (t PrintToPDFTransferMode) String() string

String returns the PrintToPDFTransferMode as string value.

type ProduceCompilationCacheParams

type ProduceCompilationCacheParams struct {
	Scripts []*CompilationCacheParams `json:"scripts"`
}

ProduceCompilationCacheParams are the parameters of the command Page.produceCompilationCache.

type ProtocolHandler

type ProtocolHandler struct {
	Protocol string `json:"protocol"`
	URL      string `json:"url"`
}

ProtocolHandler [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ProtocolHandler

type ReferrerPolicy

type ReferrerPolicy string

ReferrerPolicy the referring-policy used for the navigation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ReferrerPolicy

const (
	ReferrerPolicyNoReferrer                  ReferrerPolicy = "noReferrer"
	ReferrerPolicyNoReferrerWhenDowngrade     ReferrerPolicy = "noReferrerWhenDowngrade"
	ReferrerPolicyOrigin                      ReferrerPolicy = "origin"
	ReferrerPolicyOriginWhenCrossOrigin       ReferrerPolicy = "originWhenCrossOrigin"
	ReferrerPolicySameOrigin                  ReferrerPolicy = "sameOrigin"
	ReferrerPolicyStrictOrigin                ReferrerPolicy = "strictOrigin"
	ReferrerPolicyStrictOriginWhenCrossOrigin ReferrerPolicy = "strictOriginWhenCrossOrigin"
	ReferrerPolicyUnsafeURL                   ReferrerPolicy = "unsafeUrl"
)

ReferrerPolicy values.

func (ReferrerPolicy) String

func (t ReferrerPolicy) String() string

String returns the ReferrerPolicy as string value.

type RelatedApplication

type RelatedApplication struct {
	ID  string `json:"id,omitempty,omitzero"`
	URL string `json:"url"`
}

RelatedApplication [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-RelatedApplication

type ReloadParams

type ReloadParams struct {
	IgnoreCache            *bool        `json:"ignoreCache,omitempty,omitzero"`            // If true, browser cache is ignored (as if the user pressed Shift+refresh).
	ScriptToEvaluateOnLoad string       `json:"scriptToEvaluateOnLoad,omitempty,omitzero"` // If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.
	LoaderID               cdp.LoaderID `json:"loaderId,omitempty,omitzero"`               // If set, an error will be thrown if the target page's main frame's loader id does not match the provided id. This prevents accidentally reloading an unintended target in case there's a racing navigation.
}

ReloadParams are the parameters of the command Page.reload.

type RemoveScriptToEvaluateOnNewDocumentParams

type RemoveScriptToEvaluateOnNewDocumentParams struct {
	Identifier ScriptIdentifier `json:"identifier"`
}

RemoveScriptToEvaluateOnNewDocumentParams are the parameters of the command Page.removeScriptToEvaluateOnNewDocument.

type ScopeExtension

type ScopeExtension struct {
	Origin            string `json:"origin"` // Instead of using tuple, this field always returns the serialized string for easy understanding and comparison.
	HasOriginWildcard bool   `json:"hasOriginWildcard"`
}

ScopeExtension [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ScopeExtension

type ScreencastFrameAckParams

type ScreencastFrameAckParams struct {
	SessionID int64 `json:"sessionId"` // Frame number.
}

ScreencastFrameAckParams are the parameters of the command Page.screencastFrameAck.

type ScreencastFrameMetadata

type ScreencastFrameMetadata struct {
	OffsetTop          float64            `json:"offsetTop"`                             // Top offset in DIP.
	PageScaleFactor    float64            `json:"pageScaleFactor"`                       // Page scale factor.
	DeviceWidth        float64            `json:"deviceWidth"`                           // Device screen width in DIP.
	DeviceHeight       float64            `json:"deviceHeight"`                          // Device screen height in DIP.
	ScrollOffsetX      float64            `json:"scrollOffsetX"`                         // Position of horizontal scroll in CSS pixels.
	ScrollOffsetY      float64            `json:"scrollOffsetY"`                         // Position of vertical scroll in CSS pixels.
	Timestamp          cdp.TimeSinceEpoch `json:"timestamp,omitempty,omitzero"`          // Frame swap timestamp.
	MonotonicTimestamp cdp.MonotonicTime  `json:"monotonicTimestamp,omitempty,omitzero"` // Frame swap timestamp as monotonic time.
}

ScreencastFrameMetadata screencast frame metadata.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ScreencastFrameMetadata

type Screenshot

type Screenshot struct {
	Image      *ImageResource `json:"image"`
	FormFactor string         `json:"formFactor"`
	Label      string         `json:"label,omitempty,omitzero"`
}

Screenshot [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-Screenshot

type ScriptFontFamilies

type ScriptFontFamilies struct {
	Script       string        `json:"script"`       // Name of the script which these font families are defined for.
	FontFamilies *FontFamilies `json:"fontFamilies"` // Generic font families collection for the script.
}

ScriptFontFamilies font families collection for a script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ScriptFontFamilies

type ScriptIdentifier

type ScriptIdentifier string

ScriptIdentifier unique script identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ScriptIdentifier

func (ScriptIdentifier) String

func (t ScriptIdentifier) String() string

String returns the ScriptIdentifier as string value.

type SearchInResourceParams

type SearchInResourceParams struct {
	FrameID       cdp.FrameID `json:"frameId"`                          // Frame id for resource to search in.
	URL           string      `json:"url"`                              // URL of the resource to search in.
	Query         string      `json:"query"`                            // String to search for.
	CaseSensitive *bool       `json:"caseSensitive,omitempty,omitzero"` // If true, search is case sensitive.
	IsRegex       *bool       `json:"isRegex,omitempty,omitzero"`       // If true, treats string parameter as regex.
}

SearchInResourceParams are the parameters of the command Page.searchInResource.

type SearchInResourceResult added in v0.157.3

type SearchInResourceResult struct {
	Result []*debugger.SearchMatch `json:"result,omitempty,omitzero"` // List of search matches.
}

SearchInResourceResult is the result of the command Page.searchInResource.

type SetAdBlockingEnabledParams

type SetAdBlockingEnabledParams struct {
	Enabled bool `json:"enabled"` // Whether to block ads.
}

SetAdBlockingEnabledParams are the parameters of the command Page.setAdBlockingEnabled.

type SetBypassCSPParams

type SetBypassCSPParams struct {
	Enabled bool `json:"enabled"` // Whether to bypass page CSP.
}

SetBypassCSPParams are the parameters of the command Page.setBypassCSP.

type SetDocumentContentParams

type SetDocumentContentParams struct {
	FrameID cdp.FrameID `json:"frameId"` // Frame id to set HTML for.
	HTML    string      `json:"html"`    // HTML content to set.
}

SetDocumentContentParams are the parameters of the command Page.setDocumentContent.

type SetFontFamiliesParams

type SetFontFamiliesParams struct {
	FontFamilies *FontFamilies         `json:"fontFamilies"`                  // Specifies font families to set. If a font family is not specified, it won't be changed.
	ForScripts   []*ScriptFontFamilies `json:"forScripts,omitempty,omitzero"` // Specifies font families to set for individual scripts.
}

SetFontFamiliesParams are the parameters of the command Page.setFontFamilies.

type SetFontSizesParams

type SetFontSizesParams struct {
	FontSizes *FontSizes `json:"fontSizes"` // Specifies font sizes to set. If a font size is not specified, it won't be changed.
}

SetFontSizesParams are the parameters of the command Page.setFontSizes.

type SetInputVisualizationParams added in v0.157.11

type SetInputVisualizationParams struct {
	Clicks *bool `json:"clicks,omitempty,omitzero"` // Whether to enable click visualization.
}

SetInputVisualizationParams are the parameters of the command Page.setInputVisualization.

type SetInterceptFileChooserDialogParams

type SetInterceptFileChooserDialogParams struct {
	Enabled bool  `json:"enabled"`
	Cancel  *bool `json:"cancel,omitempty,omitzero"` // If true, cancels the dialog by emitting relevant events (if any) in addition to not showing it if the interception is enabled (default: false).
}

SetInterceptFileChooserDialogParams are the parameters of the command Page.setInterceptFileChooserDialog.

type SetLifecycleEventsEnabledParams

type SetLifecycleEventsEnabledParams struct {
	Enabled bool `json:"enabled"` // If true, starts emitting lifecycle events.
}

SetLifecycleEventsEnabledParams are the parameters of the command Page.setLifecycleEventsEnabled.

type SetPrerenderingAllowedParams

type SetPrerenderingAllowedParams struct {
	IsAllowed bool `json:"isAllowed"`
}

SetPrerenderingAllowedParams are the parameters of the command Page.setPrerenderingAllowed.

type SetRPHRegistrationModeMode added in v0.157.1

type SetRPHRegistrationModeMode string

SetRPHRegistrationModeMode [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setRPHRegistrationMode

const (
	SetRPHRegistrationModeModeNone       SetRPHRegistrationModeMode = "none"
	SetRPHRegistrationModeModeAutoAccept SetRPHRegistrationModeMode = "autoAccept"
	SetRPHRegistrationModeModeAutoReject SetRPHRegistrationModeMode = "autoReject"
)

SetRPHRegistrationModeMode values.

func (SetRPHRegistrationModeMode) String added in v0.157.1

String returns the SetRPHRegistrationModeMode as string value.

type SetRPHRegistrationModeParams

type SetRPHRegistrationModeParams struct {
	Mode SetRPHRegistrationModeMode `json:"mode"`
}

SetRPHRegistrationModeParams are the parameters of the command Page.setRPHRegistrationMode.

type SetSPCTransactionModeMode added in v0.157.1

type SetSPCTransactionModeMode string

SetSPCTransactionModeMode [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setSPCTransactionMode

const (
	SetSPCTransactionModeModeNone                       SetSPCTransactionModeMode = "none"
	SetSPCTransactionModeModeAutoAccept                 SetSPCTransactionModeMode = "autoAccept"
	SetSPCTransactionModeModeAutoChooseToAuthAnotherWay SetSPCTransactionModeMode = "autoChooseToAuthAnotherWay"
	SetSPCTransactionModeModeAutoReject                 SetSPCTransactionModeMode = "autoReject"
	SetSPCTransactionModeModeAutoOptOut                 SetSPCTransactionModeMode = "autoOptOut"
)

SetSPCTransactionModeMode values.

func (SetSPCTransactionModeMode) String added in v0.157.1

func (t SetSPCTransactionModeMode) String() string

String returns the SetSPCTransactionModeMode as string value.

type SetSPCTransactionModeParams

type SetSPCTransactionModeParams struct {
	Mode SetSPCTransactionModeMode `json:"mode"`
}

SetSPCTransactionModeParams are the parameters of the command Page.setSPCTransactionMode.

type SetWebLifecycleStateParams

type SetWebLifecycleStateParams struct {
	State SetWebLifecycleStateState `json:"state"` // Target lifecycle state
}

SetWebLifecycleStateParams are the parameters of the command Page.setWebLifecycleState.

type SetWebLifecycleStateState added in v0.157.1

type SetWebLifecycleStateState string

SetWebLifecycleStateState target lifecycle state.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-setWebLifecycleState

const (
	SetWebLifecycleStateStateFrozen SetWebLifecycleStateState = "frozen"
	SetWebLifecycleStateStateActive SetWebLifecycleStateState = "active"
)

SetWebLifecycleStateState values.

func (SetWebLifecycleStateState) String added in v0.157.1

func (t SetWebLifecycleStateState) String() string

String returns the SetWebLifecycleStateState as string value.

type ShareTarget

type ShareTarget struct {
	Action  string        `json:"action"`
	Method  string        `json:"method"`
	Enctype string        `json:"enctype"`
	Title   string        `json:"title,omitempty,omitzero"` // Embed the ShareTargetParams
	Text    string        `json:"text,omitempty,omitzero"`
	URL     string        `json:"url,omitempty,omitzero"`
	Files   []*FileFilter `json:"files,omitempty,omitzero"`
}

ShareTarget [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-ShareTarget

type Shortcut

type Shortcut struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Shortcut [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-Shortcut

type StartScreenRecordingParams

type StartScreenRecordingParams struct {
	Audio     *bool `json:"audio,omitempty,omitzero"`
	MaxWidth  int64 `json:"maxWidth,omitempty,omitzero"`  // Maximum frame width in pixels.
	MaxHeight int64 `json:"maxHeight,omitempty,omitzero"` // Maximum frame height in pixels.
	FrameRate int64 `json:"frameRate,omitempty,omitzero"` // Maximum frame rate in frames per second.
}

StartScreenRecordingParams are the parameters of the command Page.startScreenRecording.

type StartScreenRecordingResult added in v0.157.3

type StartScreenRecordingResult struct {
	Stream io.StreamHandle `json:"stream,omitempty,omitzero"` // A handle of the stream that holds resulting screencast data.
}

StartScreenRecordingResult is the result of the command Page.startScreenRecording.

type StartScreencastFormat added in v0.157.1

type StartScreencastFormat string

StartScreencastFormat image compression format.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#method-startScreencast

const (
	StartScreencastFormatJpeg StartScreencastFormat = "jpeg"
	StartScreencastFormatPng  StartScreencastFormat = "png"
)

StartScreencastFormat values.

func (StartScreencastFormat) String added in v0.157.1

func (t StartScreencastFormat) String() string

String returns the StartScreencastFormat as string value.

type StartScreencastParams

type StartScreencastParams struct {
	Format            StartScreencastFormat `json:"format,omitempty,omitzero"`            // Image compression format.
	Quality           *int64                `json:"quality,omitempty,omitzero"`           // Compression quality from range [0..100].
	MaxWidth          int64                 `json:"maxWidth,omitempty,omitzero"`          // Maximum screenshot width.
	MaxHeight         int64                 `json:"maxHeight,omitempty,omitzero"`         // Maximum screenshot height.
	EveryNthFrame     int64                 `json:"everyNthFrame,omitempty,omitzero"`     // Send every n-th frame. Must be a positive integer.
	MaxFramesInFlight int64                 `json:"maxFramesInFlight,omitempty,omitzero"` // Maximum number of frames sent until screencastFrameAck is required. Defaults to 3. Must be a positive integer.
	SendLastFrame     *bool                 `json:"sendLastFrame,omitempty,omitzero"`     // By default, after screencastFrameAck arrives, the next produced frame is sent. Passing this flag enables storing the last produced frame in memory, which is immediately sent upon screencastFrameAck. This way, overall performance is traded for a better latency.
}

StartScreencastParams are the parameters of the command Page.startScreencast.

type StopScreenRecordingResult added in v0.157.3

type StopScreenRecordingResult struct {
	Stream io.StreamHandle `json:"stream,omitempty,omitzero"` // A handle of the stream that holds resulting screencast data.
}

StopScreenRecordingResult is the result of the command Page.stopScreenRecording.

type SubApp

type SubApp struct {
	Name       string `json:"name"`       // Display name of the sub-app.
	Scope      string `json:"scope"`      // Scope of the sub-app.
	ManifestID string `json:"manifestId"` // Manifest id of the sub-app.
	StartURL   string `json:"startUrl"`   // Start URL of the sub-app.
}

SubApp [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-SubApp

type TransitionType

type TransitionType string

TransitionType transition type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-TransitionType

const (
	TransitionTypeLink             TransitionType = "link"
	TransitionTypeTyped            TransitionType = "typed"
	TransitionTypeAddressBar       TransitionType = "address_bar"
	TransitionTypeAutoBookmark     TransitionType = "auto_bookmark"
	TransitionTypeAutoSubframe     TransitionType = "auto_subframe"
	TransitionTypeManualSubframe   TransitionType = "manual_subframe"
	TransitionTypeGenerated        TransitionType = "generated"
	TransitionTypeAutoToplevel     TransitionType = "auto_toplevel"
	TransitionTypeFormSubmit       TransitionType = "form_submit"
	TransitionTypeReload           TransitionType = "reload"
	TransitionTypeKeyword          TransitionType = "keyword"
	TransitionTypeKeywordGenerated TransitionType = "keyword_generated"
	TransitionTypeOther            TransitionType = "other"
)

TransitionType values.

func (TransitionType) String

func (t TransitionType) String() string

String returns the TransitionType as string value.

type Viewport

type Viewport struct {
	X      float64 `json:"x"`      // X offset in device independent pixels (dip).
	Y      float64 `json:"y"`      // Y offset in device independent pixels (dip).
	Width  float64 `json:"width"`  // Rectangle width in device independent pixels (dip).
	Height float64 `json:"height"` // Rectangle height in device independent pixels (dip).
	Scale  float64 `json:"scale"`  // Page scale factor.
}

Viewport viewport for capturing screenshot.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-Viewport

type VisualViewport

type VisualViewport struct {
	OffsetX      float64 `json:"offsetX"`                 // Horizontal offset relative to the layout viewport (CSS pixels).
	OffsetY      float64 `json:"offsetY"`                 // Vertical offset relative to the layout viewport (CSS pixels).
	PageX        float64 `json:"pageX"`                   // Horizontal offset relative to the document (CSS pixels).
	PageY        float64 `json:"pageY"`                   // Vertical offset relative to the document (CSS pixels).
	ClientWidth  float64 `json:"clientWidth"`             // Width (CSS pixels), excludes scrollbar if present.
	ClientHeight float64 `json:"clientHeight"`            // Height (CSS pixels), excludes scrollbar if present.
	Scale        float64 `json:"scale"`                   // Scale relative to the ideal viewport (size at width=device-width).
	Zoom         float64 `json:"zoom,omitempty,omitzero"` // Page zoom factor (CSS to device independent pixels ratio).
}

VisualViewport visual viewport position, dimensions, and scale.

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-VisualViewport

type WebAppManifest

type WebAppManifest struct {
	BackgroundColor           string                `json:"backgroundColor,omitempty,omitzero"`
	Description               string                `json:"description,omitempty,omitzero"` // The extra description provided by the manifest.
	Dir                       string                `json:"dir,omitempty,omitzero"`
	Display                   string                `json:"display,omitempty,omitzero"`
	DisplayOverrides          []string              `json:"displayOverrides,omitempty,omitzero"` // The overrided display mode controlled by the user.
	FileHandlers              []*FileHandler        `json:"fileHandlers,omitempty,omitzero"`     // The handlers to open files.
	Icons                     []*ImageResource      `json:"icons,omitempty,omitzero"`
	ID                        string                `json:"id,omitempty,omitzero"`
	Lang                      string                `json:"lang,omitempty,omitzero"`
	LaunchHandler             *LaunchHandler        `json:"launchHandler,omitempty,omitzero"` // TODO(crbug.com/1231886): This field is non-standard and part of a Chrome experiment. See: https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
	Name                      string                `json:"name,omitempty,omitzero"`
	Orientation               string                `json:"orientation,omitempty,omitzero"`
	PreferRelatedApplications bool                  `json:"preferRelatedApplications"`
	ProtocolHandlers          []*ProtocolHandler    `json:"protocolHandlers,omitempty,omitzero"` // The handlers to open protocols.
	RelatedApplications       []*RelatedApplication `json:"relatedApplications,omitempty,omitzero"`
	Scope                     string                `json:"scope,omitempty,omitzero"`
	ScopeExtensions           []*ScopeExtension     `json:"scopeExtensions,omitempty,omitzero"` // Non-standard, see https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
	Screenshots               []*Screenshot         `json:"screenshots,omitempty,omitzero"`     // The screenshots used by chromium.
	ShareTarget               *ShareTarget          `json:"shareTarget,omitempty,omitzero"`
	ShortName                 string                `json:"shortName,omitempty,omitzero"`
	Shortcuts                 []*Shortcut           `json:"shortcuts,omitempty,omitzero"`
	StartURL                  string                `json:"startUrl,omitempty,omitzero"`
	ThemeColor                string                `json:"themeColor,omitempty,omitzero"`
}

WebAppManifest [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-WebAppManifest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL