package
0.0.0-20250224005500-01948a15fe7c
Repository: https://github.com/chromedp/cdproto.git
Documentation: pkg.go.dev
# Functions
AddCompilationCache seeds compilation cache for given url.
AddScriptToEvaluateOnNewDocument evaluates given script in every frame upon creation (before loading frame's scripts).
BringToFront brings page to front (activates tab).
CaptureScreenshot capture page screenshot.
CaptureSnapshot returns a snapshot of the page as a string.
ClearCompilationCache clears seeded compilation cache.
Close tries to close page, running its beforeunload hooks, if any.
Crash crashes renderer on the IO thread, generates minidumps.
CreateIsolatedWorld creates an isolated world for the given frame.
Disable disables page domain notifications.
Enable enables page domain notifications.
GenerateTestReport generates a report for testing.
GetAdScriptID [no description].
GetAppID returns the unique (PWA) app id.
GetAppManifest gets the processed manifest for this current document.
GetFrameTree returns present frame tree structure.
GetInstallabilityErrors [no description].
GetLayoutMetrics returns metrics relating to the layouting of the page, such as viewport bounds/scale.
GetNavigationHistory returns navigation history for the current page.
GetOriginTrials get Origin Trials on given frame.
GetPermissionsPolicyState get Permissions Policy state on given frame.
GetResourceContent returns content of the given resource.
GetResourceTree returns present frame / resource tree structure.
HandleJavaScriptDialog accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
Navigate navigates current page to the given URL.
NavigateToHistoryEntry navigates current page to the given history entry.
PrintToPDF print page as PDF.
ProduceCompilationCache requests backend to produce compilation cache for the specified scripts.
Reload reloads given page optionally ignoring the cache.
RemoveScriptToEvaluateOnNewDocument removes given script from the list.
ResetNavigationHistory resets navigation history for the current page.
ScreencastFrameAck acknowledges that a screencast frame has been received by the frontend.
SearchInResource searches for given string in resource content.
SetAdBlockingEnabled enable Chrome's experimental ad filter on all sites.
SetBypassCSP enable page Content Security Policy by-passing.
SetDocumentContent sets given markup as the document's HTML.
SetFontFamilies set generic font families.
SetFontSizes set default font sizes.
SetInterceptFileChooserDialog intercept file chooser requests and transfer control to protocol clients.
SetLifecycleEventsEnabled controls whether page will emit lifecycle events.
SetPrerenderingAllowed enable/disable prerendering manually.
SetRPHRegistrationMode extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation.
SetSPCTransactionMode sets the Secure Payment Confirmation transaction mode.
SetWebLifecycleState tries to update the web lifecycle state of the page.
StartScreencast starts sending each frame using the screencastFrame event.
StopLoading force the page stop all navigations and pending resource fetches.
StopScreencast stops sending each frame in the screencastFrame.
WaitForDebugger pauses page execution.
# Constants
AutoResponseMode values.
AutoResponseMode values.
AutoResponseMode values.
AutoResponseMode values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReasonType values.
BackForwardCacheNotRestoredReasonType values.
BackForwardCacheNotRestoredReasonType values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
BackForwardCacheNotRestoredReason values.
CaptureScreenshotFormat values.
CaptureScreenshotFormat values.
CaptureScreenshotFormat values.
CaptureSnapshotFormat values.
ClientNavigationDisposition values.
ClientNavigationDisposition values.
ClientNavigationDisposition values.
ClientNavigationDisposition values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
ClientNavigationReason values.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
DialogType values.
DialogType values.
DialogType values.
DialogType values.
FileChooserOpenedMode values.
FileChooserOpenedMode values.
FrameDetachedReason values.
FrameDetachedReason values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
FrameStartedNavigatingNavigationType values.
NavigatedWithinDocumentNavigationType values.
NavigatedWithinDocumentNavigationType values.
NavigatedWithinDocumentNavigationType values.
NavigationType values.
NavigationType values.
PermissionsPolicyBlockReason values.
PermissionsPolicyBlockReason values.
PermissionsPolicyBlockReason values.
PermissionsPolicyBlockReason values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PermissionsPolicyFeature values.
PrintToPDFTransferMode values.
PrintToPDFTransferMode values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ReferrerPolicy values.
ScreencastFormat values.
ScreencastFormat values.
SetWebLifecycleStateState values.
SetWebLifecycleStateState values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
TransitionType values.
# Structs
AddCompilationCacheParams seeds compilation cache for given url.
AddScriptToEvaluateOnNewDocumentParams evaluates given script in every frame upon creation (before loading frame's scripts).
AddScriptToEvaluateOnNewDocumentReturns return values.
AdScriptID identifies the bottom-most script which caused the frame to be labelled as an ad.
AppManifestError error while paring app manifest.
AppManifestParsedProperties parsed app manifest properties.
BackForwardCacheBlockingDetails [no description].
BackForwardCacheNotRestoredExplanation [no description].
BackForwardCacheNotRestoredExplanationTree [no description].
BringToFrontParams brings page to front (activates tab).
CaptureScreenshotParams capture page screenshot.
CaptureScreenshotReturns return values.
CaptureSnapshotParams returns a snapshot of the page as a string.
CaptureSnapshotReturns return values.
ClearCompilationCacheParams clears seeded compilation cache.
CloseParams tries to close page, running its beforeunload hooks, if any.
CompilationCacheParams per-script compilation cache parameters for Page.produceCompilationCache.
CrashParams crashes renderer on the IO thread, generates minidumps.
CreateIsolatedWorldParams creates an isolated world for the given frame.
CreateIsolatedWorldReturns return values.
DisableParams disables page domain notifications.
EnableParams enables page domain notifications.
EventBackForwardCacheNotUsed fired for failed bfcache history navigations if BackForwardCache feature is enabled.
EventCompilationCacheProduced issued for every compilation cache generated.
EventDocumentOpened fired when opening document to write to.
EventDomContentEventFired [no description].
EventFileChooserOpened emitted only when page.interceptFileChooser is enabled.
EventFrameAttached fired when frame has been attached to its parent.
EventFrameDetached fired when frame has been detached from its parent.
EventFrameNavigated fired once navigation of the frame has completed.
EventFrameRequestedNavigation fired when a renderer-initiated navigation is requested.
EventFrameResized [no description].
EventFrameStartedLoading fired when frame has started loading.
EventFrameStartedNavigating fired when a navigation starts.
EventFrameStoppedLoading fired when frame has stopped loading.
EventFrameSubtreeWillBeDetached fired before frame subtree is detached.
EventInterstitialHidden fired when interstitial page was hidden.
EventInterstitialShown fired when interstitial page was shown.
EventJavascriptDialogClosed fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
EventJavascriptDialogOpening fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
EventLifecycleEvent fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames).
EventLoadEventFired [no description].
EventNavigatedWithinDocument fired when same-document navigation happens, e.g.
EventScreencastFrame compressed image data requested by the startScreencast.
EventScreencastVisibilityChanged fired when the page with currently enabled screencast was shown or hidden .
EventWindowOpen fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
FileFilter [no description].
FileHandler [no description].
FontFamilies generic font families collection.
FontSizes default font sizes.
FrameResource information about the Resource on the page.
FrameResourceTree information about the Frame hierarchy along with their cached resources.
FrameTree information about the Frame hierarchy.
GenerateTestReportParams generates a report for testing.
GetAdScriptIDParams [no description].
GetAdScriptIDReturns return values.
GetAppIDParams returns the unique (PWA) app id.
GetAppIDReturns return values.
GetAppManifestParams gets the processed manifest for this current document.
GetAppManifestReturns return values.
GetFrameTreeParams returns present frame tree structure.
GetFrameTreeReturns return values.
GetInstallabilityErrorsParams [no description].
GetInstallabilityErrorsReturns return values.
GetLayoutMetricsParams returns metrics relating to the layouting of the page, such as viewport bounds/scale.
GetLayoutMetricsReturns return values.
GetNavigationHistoryParams returns navigation history for the current page.
GetNavigationHistoryReturns return values.
GetOriginTrialsParams get Origin Trials on given frame.
GetOriginTrialsReturns return values.
GetPermissionsPolicyStateParams get Permissions Policy state on given frame.
GetPermissionsPolicyStateReturns return values.
GetResourceContentParams returns content of the given resource.
GetResourceContentReturns return values.
GetResourceTreeParams returns present frame / resource tree structure.
GetResourceTreeReturns return values.
HandleJavaScriptDialogParams accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
ImageResource the image definition used in both icon and screenshot.
InstallabilityError the installability error.
InstallabilityErrorArgument [no description].
LaunchHandler [no description].
LayoutViewport layout viewport position and dimensions.
NavigateParams navigates current page to the given URL.
NavigateReturns return values.
NavigateToHistoryEntryParams navigates current page to the given history entry.
NavigationEntry navigation history entry.
PermissionsPolicyBlockLocator [no description].
PermissionsPolicyFeatureState [no description].
PrintToPDFParams print page as PDF.
PrintToPDFReturns return values.
ProduceCompilationCacheParams requests backend to produce compilation cache for the specified scripts.
ProtocolHandler [no description].
RelatedApplication [no description].
ReloadParams reloads given page optionally ignoring the cache.
RemoveScriptToEvaluateOnNewDocumentParams removes given script from the list.
ResetNavigationHistoryParams resets navigation history for the current page.
ScopeExtension [no description].
ScreencastFrameAckParams acknowledges that a screencast frame has been received by the frontend.
ScreencastFrameMetadata screencast frame metadata.
Screenshot [no description].
ScriptFontFamilies font families collection for a script.
SearchInResourceParams searches for given string in resource content.
SearchInResourceReturns return values.
SetAdBlockingEnabledParams enable Chrome's experimental ad filter on all sites.
SetBypassCSPParams enable page Content Security Policy by-passing.
SetDocumentContentParams sets given markup as the document's HTML.
SetFontFamiliesParams set generic font families.
SetFontSizesParams set default font sizes.
SetInterceptFileChooserDialogParams intercept file chooser requests and transfer control to protocol clients.
SetLifecycleEventsEnabledParams controls whether page will emit lifecycle events.
SetPrerenderingAllowedParams enable/disable prerendering manually.
SetRPHRegistrationModeParams extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation.
SetSPCTransactionModeParams sets the Secure Payment Confirmation transaction mode.
SetWebLifecycleStateParams tries to update the web lifecycle state of the page.
ShareTarget [no description].
Shortcut [no description].
StartScreencastParams starts sending each frame using the screencastFrame event.
StopLoadingParams force the page stop all navigations and pending resource fetches.
StopScreencastParams stops sending each frame in the screencastFrame.
Viewport viewport for capturing screenshot.
VisualViewport visual viewport position, dimensions, and scale.
WaitForDebuggerParams pauses page execution.
WebAppManifest [no description].
# Type aliases
AutoResponseMode enum of possible auto-response for permission / prompt dialogs.
BackForwardCacheNotRestoredReason list of not restored reasons for back-forward cache.
BackForwardCacheNotRestoredReasonType types of not restored reasons for back-forward cache.
CaptureScreenshotFormat image compression format (defaults to png).
CaptureSnapshotFormat format (defaults to mhtml).
ClientNavigationDisposition [no description].
ClientNavigationReason [no description].
DialogType javascript dialog type.
FileChooserOpenedMode input mode.
FrameDetachedReason [no description].
FrameStartedNavigatingNavigationType [no description].
NavigatedWithinDocumentNavigationType navigation type.
NavigationType the type of a frameNavigated event.
PermissionsPolicyBlockReason reason for a permissions policy feature to be disabled.
PermissionsPolicyFeature all Permissions Policy features.
PrintToPDFTransferMode return as stream.
ReferrerPolicy the referring-policy used for the navigation.
ScreencastFormat image compression format.
ScriptIdentifier unique script identifier.
SetWebLifecycleStateState target lifecycle state.
TransitionType transition type.