package
0.0.0-20200525080501-418ac89e6fd2
Repository: https://github.com/bootgo/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.
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.
GetAppManifest [no description].
GetFrameTree returns present frame tree structure.
GetLayoutMetrics returns metrics relating to the layouting of the page, such as viewport bounds/scale.
GetNavigationHistory returns navigation history for the current page.
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.
Reload reloads given page optionally ignoring the cache.
RemoveScriptToEvaluateOnNewDocument removes given script from the list.
RequestAppBanner [no description].
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.
SetDownloadBehavior set the behavior when downloading a file.
SetFontFamilies set generic font families.
SetFontSizes set default font sizes.
SetLifecycleEventsEnabled controls whether page will emit lifecycle events.
SetProduceCompilationCache forces compilation cache to be generated for every subresource script.
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.
# Constants
CaptureScreenshotFormat values.
CaptureScreenshotFormat 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.
DialogType values.
DialogType values.
DialogType values.
DialogType values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
FrameScheduledNavigationReason values.
ScreencastFormat values.
ScreencastFormat values.
SetDownloadBehaviorBehavior values.
SetDownloadBehaviorBehavior values.
SetDownloadBehaviorBehavior 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.
AppManifestError error while paring app manifest.
BringToFrontParams brings page to front (activates tab).
CaptureScreenshotParams capture page screenshot.
CaptureScreenshotReturns return values.
ClearCompilationCacheParams clears seeded compilation cache.
CloseParams tries to close page, running its beforeunload hooks, if any.
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.
EventCompilationCacheProduced issued for every compilation cache generated.
EventDomContentEventFired [no description].
EventFrameAttached fired when frame has been attached to its parent.
EventFrameClearedScheduledNavigation fired when frame no longer has a scheduled navigation.
EventFrameDetached fired when frame has been detached from its parent.
EventFrameNavigated fired once navigation of the frame has completed.
EventFrameResized [no description].
EventFrameScheduledNavigation fired when frame schedules a potential navigation.
EventFrameStartedLoading fired when frame has started loading.
EventFrameStoppedLoading fired when frame has stopped loading.
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 top level page lifecycle events such as navigation, load, paint, etc.
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.
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.
GetAppManifestParams [no description].
GetAppManifestReturns return values.
GetFrameTreeParams returns present frame tree structure.
GetFrameTreeReturns 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.
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).
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.
PrintToPDFParams print page as PDF.
PrintToPDFReturns return values.
ReloadParams reloads given page optionally ignoring the cache.
RemoveScriptToEvaluateOnNewDocumentParams removes given script from the list.
RequestAppBannerParams [no description].
ScreencastFrameAckParams acknowledges that a screencast frame has been received by the frontend.
ScreencastFrameMetadata screencast frame metadata.
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.
SetDownloadBehaviorParams set the behavior when downloading a file.
SetFontFamiliesParams set generic font families.
SetFontSizesParams set default font sizes.
SetLifecycleEventsEnabledParams controls whether page will emit lifecycle events.
SetProduceCompilationCacheParams forces compilation cache to be generated for every subresource script.
SetWebLifecycleStateParams tries to update the web lifecycle state of the page.
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.
# Type aliases
CaptureScreenshotFormat image compression format (defaults to png).
DialogType javascript dialog type.
FrameScheduledNavigationReason the reason for the navigation.
ScreencastFormat image compression format.
ScriptIdentifier unique script identifier.
SetDownloadBehaviorBehavior whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
SetWebLifecycleStateState target lifecycle state.
TransitionType transition type.