page

package
Version: v0.0.0-...-b0b4414 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 13 Imported by: 128

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 cdproto-gen 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"
	CommandGetManifestIcons                    = "Page.getManifestIcons"
	CommandGetAppID                            = "Page.getAppId"
	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"
	CommandSetDownloadBehavior                 = "Page.setDownloadBehavior"
	CommandSetLifecycleEventsEnabled           = "Page.setLifecycleEventsEnabled"
	CommandStartScreencast                     = "Page.startScreencast"
	CommandStopLoading                         = "Page.stopLoading"
	CommandCrash                               = "Page.crash"
	CommandClose                               = "Page.close"
	CommandSetWebLifecycleState                = "Page.setWebLifecycleState"
	CommandStopScreencast                      = "Page.stopScreencast"
	CommandSetProduceCompilationCache          = "Page.setProduceCompilationCache"
	CommandProduceCompilationCache             = "Page.produceCompilationCache"
	CommandAddCompilationCache                 = "Page.addCompilationCache"
	CommandClearCompilationCache               = "Page.clearCompilationCache"
	CommandGenerateTestReport                  = "Page.generateTestReport"
	CommandWaitForDebugger                     = "Page.waitForDebugger"
	CommandSetInterceptFileChooserDialog       = "Page.setInterceptFileChooserDialog"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCompilationCacheParams

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

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

func AddCompilationCache

func AddCompilationCache(url string, data string) *AddCompilationCacheParams

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

parameters:

url
data - Base64-encoded data

func (*AddCompilationCacheParams) Do

Do executes Page.addCompilationCache against the provided context.

func (AddCompilationCacheParams) MarshalEasyJSON

func (v AddCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddCompilationCacheParams) MarshalJSON

func (v AddCompilationCacheParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddCompilationCacheParams) UnmarshalEasyJSON

func (v *AddCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddCompilationCacheParams) UnmarshalJSON

func (v *AddCompilationCacheParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AddScriptToEvaluateOnNewDocumentParams

type AddScriptToEvaluateOnNewDocumentParams struct {
	Source                string `json:"source"`
	WorldName             string `json:"worldName,omitempty"`             // 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"` // Specifies whether command line API should be available to the script, defaults to false.
}

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

func AddScriptToEvaluateOnNewDocument

func AddScriptToEvaluateOnNewDocument(source string) *AddScriptToEvaluateOnNewDocumentParams

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

parameters:

source

func (*AddScriptToEvaluateOnNewDocumentParams) Do

Do executes Page.addScriptToEvaluateOnNewDocument against the provided context.

returns:

identifier - Identifier of the added script.

func (AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddScriptToEvaluateOnNewDocumentParams) MarshalJSON

func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON

func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON

func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (AddScriptToEvaluateOnNewDocumentParams) WithIncludeCommandLineAPI

func (p AddScriptToEvaluateOnNewDocumentParams) WithIncludeCommandLineAPI(includeCommandLineAPI bool) *AddScriptToEvaluateOnNewDocumentParams

WithIncludeCommandLineAPI specifies whether command line API should be available to the script, defaults to false.

func (AddScriptToEvaluateOnNewDocumentParams) WithWorldName

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

type AddScriptToEvaluateOnNewDocumentReturns

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

AddScriptToEvaluateOnNewDocumentReturns return values.

func (AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON

func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON

func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON

func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AppManifestError

type AppManifestError struct {
	Message  string `json:"message"`  // Error message.
	Critical int64  `json:"critical"` // If criticial, 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

func (AppManifestError) MarshalEasyJSON

func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AppManifestError) MarshalJSON

func (v AppManifestError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AppManifestError) UnmarshalEasyJSON

func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AppManifestError) UnmarshalJSON

func (v *AppManifestError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (AppManifestParsedProperties) MarshalEasyJSON

func (v AppManifestParsedProperties) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AppManifestParsedProperties) MarshalJSON

func (v AppManifestParsedProperties) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AppManifestParsedProperties) UnmarshalEasyJSON

func (v *AppManifestParsedProperties) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AppManifestParsedProperties) UnmarshalJSON

func (v *AppManifestParsedProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type BackForwardCacheNotRestoredExplanation

type BackForwardCacheNotRestoredExplanation struct {
	Type   BackForwardCacheNotRestoredReasonType `json:"type"`   // Type of the reason
	Reason BackForwardCacheNotRestoredReason     `json:"reason"` // Not restored reason
}

BackForwardCacheNotRestoredExplanation [no description].

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

func (BackForwardCacheNotRestoredExplanation) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (BackForwardCacheNotRestoredExplanation) MarshalJSON

func (v BackForwardCacheNotRestoredExplanation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BackForwardCacheNotRestoredExplanation) UnmarshalEasyJSON

func (v *BackForwardCacheNotRestoredExplanation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BackForwardCacheNotRestoredExplanation) UnmarshalJSON

func (v *BackForwardCacheNotRestoredExplanation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 (
	BackForwardCacheNotRestoredReasonNotMainFrame                                             BackForwardCacheNotRestoredReason = "NotMainFrame"
	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"
	BackForwardCacheNotRestoredReasonGrantedMediaStreamAccess                                 BackForwardCacheNotRestoredReason = "GrantedMediaStreamAccess"
	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"
	BackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped                               BackForwardCacheNotRestoredReason = "BrowsingInstanceNotSwapped"
	BackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate                      BackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForDelegate"
	BackForwardCacheNotRestoredReasonOptInUnloadHeaderNotPresent                              BackForwardCacheNotRestoredReason = "OptInUnloadHeaderNotPresent"
	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"
	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"
	BackForwardCacheNotRestoredReasonDedicatedWorkerOrWorklet                                 BackForwardCacheNotRestoredReason = "DedicatedWorkerOrWorklet"
	BackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers                          BackForwardCacheNotRestoredReason = "OutstandingNetworkRequestOthers"
	BackForwardCacheNotRestoredReasonOutstandingIndexedDBTransaction                          BackForwardCacheNotRestoredReason = "OutstandingIndexedDBTransaction"
	BackForwardCacheNotRestoredReasonRequestedNotificationsPermission                         BackForwardCacheNotRestoredReason = "RequestedNotificationsPermission"
	BackForwardCacheNotRestoredReasonRequestedMIDIPermission                                  BackForwardCacheNotRestoredReason = "RequestedMIDIPermission"
	BackForwardCacheNotRestoredReasonRequestedAudioCapturePermission                          BackForwardCacheNotRestoredReason = "RequestedAudioCapturePermission"
	BackForwardCacheNotRestoredReasonRequestedVideoCapturePermission                          BackForwardCacheNotRestoredReason = "RequestedVideoCapturePermission"
	BackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors                  BackForwardCacheNotRestoredReason = "RequestedBackForwardCacheBlockedSensors"
	BackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission                        BackForwardCacheNotRestoredReason = "RequestedBackgroundWorkPermission"
	BackForwardCacheNotRestoredReasonBroadcastChannel                                         BackForwardCacheNotRestoredReason = "BroadcastChannel"
	BackForwardCacheNotRestoredReasonIndexedDBConnection                                      BackForwardCacheNotRestoredReason = "IndexedDBConnection"
	BackForwardCacheNotRestoredReasonWebXR                                                    BackForwardCacheNotRestoredReason = "WebXR"
	BackForwardCacheNotRestoredReasonSharedWorker                                             BackForwardCacheNotRestoredReason = "SharedWorker"
	BackForwardCacheNotRestoredReasonWebLocks                                                 BackForwardCacheNotRestoredReason = "WebLocks"
	BackForwardCacheNotRestoredReasonWebHID                                                   BackForwardCacheNotRestoredReason = "WebHID"
	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"
	BackForwardCacheNotRestoredReasonPortal                                                   BackForwardCacheNotRestoredReason = "Portal"
	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"
	BackForwardCacheNotRestoredReasonDummy                                                    BackForwardCacheNotRestoredReason = "Dummy"
	BackForwardCacheNotRestoredReasonContentSecurityHandler                                   BackForwardCacheNotRestoredReason = "ContentSecurityHandler"
	BackForwardCacheNotRestoredReasonContentWebAuthenticationAPI                              BackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI"
	BackForwardCacheNotRestoredReasonContentFileChooser                                       BackForwardCacheNotRestoredReason = "ContentFileChooser"
	BackForwardCacheNotRestoredReasonContentSerial                                            BackForwardCacheNotRestoredReason = "ContentSerial"
	BackForwardCacheNotRestoredReasonContentFileSystemAccess                                  BackForwardCacheNotRestoredReason = "ContentFileSystemAccess"
	BackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost                        BackForwardCacheNotRestoredReason = "ContentMediaDevicesDispatcherHost"
	BackForwardCacheNotRestoredReasonContentWebBluetooth                                      BackForwardCacheNotRestoredReason = "ContentWebBluetooth"
	BackForwardCacheNotRestoredReasonContentWebUSB                                            BackForwardCacheNotRestoredReason = "ContentWebUSB"
	BackForwardCacheNotRestoredReasonContentMediaSession                                      BackForwardCacheNotRestoredReason = "ContentMediaSession"
	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"
)

BackForwardCacheNotRestoredReason values.

func (BackForwardCacheNotRestoredReason) MarshalEasyJSON

func (t BackForwardCacheNotRestoredReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BackForwardCacheNotRestoredReason) MarshalJSON

func (t BackForwardCacheNotRestoredReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (BackForwardCacheNotRestoredReason) String

String returns the BackForwardCacheNotRestoredReason as string value.

func (*BackForwardCacheNotRestoredReason) UnmarshalEasyJSON

func (t *BackForwardCacheNotRestoredReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BackForwardCacheNotRestoredReason) UnmarshalJSON

func (t *BackForwardCacheNotRestoredReason) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

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) MarshalEasyJSON

func (t BackForwardCacheNotRestoredReasonType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BackForwardCacheNotRestoredReasonType) MarshalJSON

func (t BackForwardCacheNotRestoredReasonType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (BackForwardCacheNotRestoredReasonType) String

String returns the BackForwardCacheNotRestoredReasonType as string value.

func (*BackForwardCacheNotRestoredReasonType) UnmarshalEasyJSON

func (t *BackForwardCacheNotRestoredReasonType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BackForwardCacheNotRestoredReasonType) UnmarshalJSON

func (t *BackForwardCacheNotRestoredReasonType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type BringToFrontParams

type BringToFrontParams struct{}

BringToFrontParams brings page to front (activates tab).

func BringToFront

func BringToFront() *BringToFrontParams

BringToFront brings page to front (activates tab).

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

func (*BringToFrontParams) Do

func (p *BringToFrontParams) Do(ctx context.Context) (err error)

Do executes Page.bringToFront against the provided context.

func (BringToFrontParams) MarshalEasyJSON

func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BringToFrontParams) MarshalJSON

func (v BringToFrontParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BringToFrontParams) UnmarshalEasyJSON

func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BringToFrontParams) UnmarshalJSON

func (v *BringToFrontParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CaptureScreenshotFormat

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) MarshalEasyJSON

func (t CaptureScreenshotFormat) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CaptureScreenshotFormat) MarshalJSON

func (t CaptureScreenshotFormat) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CaptureScreenshotFormat) String

func (t CaptureScreenshotFormat) String() string

String returns the CaptureScreenshotFormat as string value.

func (*CaptureScreenshotFormat) UnmarshalEasyJSON

func (t *CaptureScreenshotFormat) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CaptureScreenshotFormat) UnmarshalJSON

func (t *CaptureScreenshotFormat) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type CaptureScreenshotParams

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

CaptureScreenshotParams capture page screenshot.

func CaptureScreenshot

func CaptureScreenshot() *CaptureScreenshotParams

CaptureScreenshot capture page screenshot.

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

parameters:

func (*CaptureScreenshotParams) Do

func (p *CaptureScreenshotParams) Do(ctx context.Context) (data []byte, err error)

Do executes Page.captureScreenshot against the provided context.

returns:

data - Base64-encoded image data.

func (CaptureScreenshotParams) MarshalEasyJSON

func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureScreenshotParams) MarshalJSON

func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CaptureScreenshotParams) UnmarshalEasyJSON

func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureScreenshotParams) UnmarshalJSON

func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CaptureScreenshotParams) WithCaptureBeyondViewport

func (p CaptureScreenshotParams) WithCaptureBeyondViewport(captureBeyondViewport bool) *CaptureScreenshotParams

WithCaptureBeyondViewport capture the screenshot beyond the viewport. Defaults to false.

func (CaptureScreenshotParams) WithClip

WithClip capture the screenshot of a given region only.

func (CaptureScreenshotParams) WithFormat

WithFormat image compression format (defaults to png).

func (CaptureScreenshotParams) WithFromSurface

func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams

WithFromSurface capture the screenshot from the surface, rather than the view. Defaults to true.

func (CaptureScreenshotParams) WithQuality

func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotParams

WithQuality compression quality from range [0..100] (jpeg only).

type CaptureScreenshotReturns

type CaptureScreenshotReturns struct {
	Data string `json:"data,omitempty"` // Base64-encoded image data.
}

CaptureScreenshotReturns return values.

func (CaptureScreenshotReturns) MarshalEasyJSON

func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureScreenshotReturns) MarshalJSON

func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CaptureScreenshotReturns) UnmarshalEasyJSON

func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureScreenshotReturns) UnmarshalJSON

func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CaptureSnapshotFormat

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) MarshalEasyJSON

func (t CaptureSnapshotFormat) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CaptureSnapshotFormat) MarshalJSON

func (t CaptureSnapshotFormat) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CaptureSnapshotFormat) String

func (t CaptureSnapshotFormat) String() string

String returns the CaptureSnapshotFormat as string value.

func (*CaptureSnapshotFormat) UnmarshalEasyJSON

func (t *CaptureSnapshotFormat) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CaptureSnapshotFormat) UnmarshalJSON

func (t *CaptureSnapshotFormat) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type CaptureSnapshotParams

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

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

func CaptureSnapshot

func CaptureSnapshot() *CaptureSnapshotParams

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

parameters:

func (*CaptureSnapshotParams) Do

func (p *CaptureSnapshotParams) Do(ctx context.Context) (data string, err error)

Do executes Page.captureSnapshot against the provided context.

returns:

data - Serialized page data.

func (CaptureSnapshotParams) MarshalEasyJSON

func (v CaptureSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureSnapshotParams) MarshalJSON

func (v CaptureSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CaptureSnapshotParams) UnmarshalEasyJSON

func (v *CaptureSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureSnapshotParams) UnmarshalJSON

func (v *CaptureSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CaptureSnapshotParams) WithFormat

WithFormat format (defaults to mhtml).

type CaptureSnapshotReturns

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

CaptureSnapshotReturns return values.

func (CaptureSnapshotReturns) MarshalEasyJSON

func (v CaptureSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureSnapshotReturns) MarshalJSON

func (v CaptureSnapshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CaptureSnapshotReturns) UnmarshalEasyJSON

func (v *CaptureSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureSnapshotReturns) UnmarshalJSON

func (v *CaptureSnapshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ClearCompilationCacheParams

type ClearCompilationCacheParams struct{}

ClearCompilationCacheParams clears seeded compilation cache.

func ClearCompilationCache

func ClearCompilationCache() *ClearCompilationCacheParams

ClearCompilationCache clears seeded compilation cache.

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

func (*ClearCompilationCacheParams) Do

Do executes Page.clearCompilationCache against the provided context.

func (ClearCompilationCacheParams) MarshalEasyJSON

func (v ClearCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearCompilationCacheParams) MarshalJSON

func (v ClearCompilationCacheParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearCompilationCacheParams) UnmarshalEasyJSON

func (v *ClearCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearCompilationCacheParams) UnmarshalJSON

func (v *ClearCompilationCacheParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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) MarshalEasyJSON

func (t ClientNavigationDisposition) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ClientNavigationDisposition) MarshalJSON

func (t ClientNavigationDisposition) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ClientNavigationDisposition) String

String returns the ClientNavigationDisposition as string value.

func (*ClientNavigationDisposition) UnmarshalEasyJSON

func (t *ClientNavigationDisposition) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ClientNavigationDisposition) UnmarshalJSON

func (t *ClientNavigationDisposition) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ClientNavigationReason

type ClientNavigationReason string

ClientNavigationReason [no description].

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

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

ClientNavigationReason values.

func (ClientNavigationReason) MarshalEasyJSON

func (t ClientNavigationReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ClientNavigationReason) MarshalJSON

func (t ClientNavigationReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ClientNavigationReason) String

func (t ClientNavigationReason) String() string

String returns the ClientNavigationReason as string value.

func (*ClientNavigationReason) UnmarshalEasyJSON

func (t *ClientNavigationReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ClientNavigationReason) UnmarshalJSON

func (t *ClientNavigationReason) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type CloseParams

type CloseParams struct{}

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

func Close

func Close() *CloseParams

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

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

func (*CloseParams) Do

func (p *CloseParams) Do(ctx context.Context) (err error)

Do executes Page.close against the provided context.

func (CloseParams) MarshalEasyJSON

func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CloseParams) MarshalJSON

func (v CloseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CloseParams) UnmarshalEasyJSON

func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CloseParams) UnmarshalJSON

func (v *CloseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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,omitempty"` // 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

func (CompilationCacheParams) MarshalEasyJSON

func (v CompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompilationCacheParams) MarshalJSON

func (v CompilationCacheParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CompilationCacheParams) UnmarshalEasyJSON

func (v *CompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompilationCacheParams) UnmarshalJSON

func (v *CompilationCacheParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CrashParams

type CrashParams struct{}

CrashParams crashes renderer on the IO thread, generates minidumps.

func Crash

func Crash() *CrashParams

Crash crashes renderer on the IO thread, generates minidumps.

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

func (*CrashParams) Do

func (p *CrashParams) Do(ctx context.Context) (err error)

Do executes Page.crash against the provided context.

func (CrashParams) MarshalEasyJSON

func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrashParams) MarshalJSON

func (v CrashParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrashParams) UnmarshalEasyJSON

func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrashParams) UnmarshalJSON

func (v *CrashParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`           // An optional name which is reported in the Execution Context.
	GrantUniveralAccess bool        `json:"grantUniveralAccess,omitempty"` // Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
}

CreateIsolatedWorldParams creates an isolated world for the given frame.

func CreateIsolatedWorld

func CreateIsolatedWorld(frameID cdp.FrameID) *CreateIsolatedWorldParams

CreateIsolatedWorld creates an isolated world for the given frame.

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

parameters:

frameID - Id of the frame in which the isolated world should be created.

func (*CreateIsolatedWorldParams) Do

func (p *CreateIsolatedWorldParams) Do(ctx context.Context) (executionContextID runtime.ExecutionContextID, err error)

Do executes Page.createIsolatedWorld against the provided context.

returns:

executionContextID - Execution context of the isolated world.

func (CreateIsolatedWorldParams) MarshalEasyJSON

func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateIsolatedWorldParams) MarshalJSON

func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateIsolatedWorldParams) UnmarshalEasyJSON

func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateIsolatedWorldParams) UnmarshalJSON

func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (CreateIsolatedWorldParams) WithGrantUniveralAccess

func (p CreateIsolatedWorldParams) WithGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldParams

WithGrantUniveralAccess whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.

func (CreateIsolatedWorldParams) WithWorldName

func (p CreateIsolatedWorldParams) WithWorldName(worldName string) *CreateIsolatedWorldParams

WithWorldName an optional name which is reported in the Execution Context.

type CreateIsolatedWorldReturns

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

CreateIsolatedWorldReturns return values.

func (CreateIsolatedWorldReturns) MarshalEasyJSON

func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateIsolatedWorldReturns) MarshalJSON

func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateIsolatedWorldReturns) UnmarshalEasyJSON

func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateIsolatedWorldReturns) UnmarshalJSON

func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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) MarshalEasyJSON

func (t DialogType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DialogType) MarshalJSON

func (t DialogType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DialogType) String

func (t DialogType) String() string

String returns the DialogType as string value.

func (*DialogType) UnmarshalEasyJSON

func (t *DialogType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DialogType) UnmarshalJSON

func (t *DialogType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disables page domain notifications.

func Disable

func Disable() *DisableParams

Disable disables page domain notifications.

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

func (*DisableParams) Do

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Page.disable against the provided context.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enables page domain notifications.

func Enable

func Enable() *EnableParams

Enable enables page domain notifications.

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

func (*EnableParams) Do

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Page.enable against the provided context.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventBackForwardCacheNotUsed

type EventBackForwardCacheNotUsed struct {
	LoaderID                cdp.LoaderID                              `json:"loaderId"`                // The loader id for the associated navgation.
	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.
}

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

func (EventBackForwardCacheNotUsed) MarshalEasyJSON

func (v EventBackForwardCacheNotUsed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventBackForwardCacheNotUsed) MarshalJSON

func (v EventBackForwardCacheNotUsed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventBackForwardCacheNotUsed) UnmarshalEasyJSON

func (v *EventBackForwardCacheNotUsed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventBackForwardCacheNotUsed) UnmarshalJSON

func (v *EventBackForwardCacheNotUsed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventCompilationCacheProduced

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

EventCompilationCacheProduced issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.

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

func (EventCompilationCacheProduced) MarshalEasyJSON

func (v EventCompilationCacheProduced) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventCompilationCacheProduced) MarshalJSON

func (v EventCompilationCacheProduced) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventCompilationCacheProduced) UnmarshalEasyJSON

func (v *EventCompilationCacheProduced) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventCompilationCacheProduced) UnmarshalJSON

func (v *EventCompilationCacheProduced) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventDocumentOpened) MarshalEasyJSON

func (v EventDocumentOpened) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDocumentOpened) MarshalJSON

func (v EventDocumentOpened) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDocumentOpened) UnmarshalEasyJSON

func (v *EventDocumentOpened) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDocumentOpened) UnmarshalJSON

func (v *EventDocumentOpened) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDomContentEventFired

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

EventDomContentEventFired [no description].

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

func (EventDomContentEventFired) MarshalEasyJSON

func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomContentEventFired) MarshalJSON

func (v EventDomContentEventFired) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDomContentEventFired) UnmarshalEasyJSON

func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomContentEventFired) UnmarshalJSON

func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventFileChooserOpened

type EventFileChooserOpened struct {
	FrameID       cdp.FrameID           `json:"frameId"`       // Id of the frame containing input node.
	BackendNodeID cdp.BackendNodeID     `json:"backendNodeId"` // Input node id.
	Mode          FileChooserOpenedMode `json:"mode"`          // Input mode.
}

EventFileChooserOpened emitted only when page.interceptFileChooser is enabled.

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

func (EventFileChooserOpened) MarshalEasyJSON

func (v EventFileChooserOpened) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFileChooserOpened) MarshalJSON

func (v EventFileChooserOpened) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFileChooserOpened) UnmarshalEasyJSON

func (v *EventFileChooserOpened) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFileChooserOpened) UnmarshalJSON

func (v *EventFileChooserOpened) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"` // 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

func (EventFrameAttached) MarshalEasyJSON

func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameAttached) MarshalJSON

func (v EventFrameAttached) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameAttached) UnmarshalEasyJSON

func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameAttached) UnmarshalJSON

func (v *EventFrameAttached) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventFrameDetached) MarshalEasyJSON

func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameDetached) MarshalJSON

func (v EventFrameDetached) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameDetached) UnmarshalEasyJSON

func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameDetached) UnmarshalJSON

func (v *EventFrameDetached) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventFrameNavigated) MarshalEasyJSON

func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameNavigated) MarshalJSON

func (v EventFrameNavigated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameNavigated) UnmarshalEasyJSON

func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameNavigated) UnmarshalJSON

func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventFrameRequestedNavigation) MarshalEasyJSON

func (v EventFrameRequestedNavigation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameRequestedNavigation) MarshalJSON

func (v EventFrameRequestedNavigation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameRequestedNavigation) UnmarshalEasyJSON

func (v *EventFrameRequestedNavigation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameRequestedNavigation) UnmarshalJSON

func (v *EventFrameRequestedNavigation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameResized

type EventFrameResized struct{}

EventFrameResized [no description].

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

func (EventFrameResized) MarshalEasyJSON

func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameResized) MarshalJSON

func (v EventFrameResized) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameResized) UnmarshalEasyJSON

func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameResized) UnmarshalJSON

func (v *EventFrameResized) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventFrameStartedLoading) MarshalEasyJSON

func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameStartedLoading) MarshalJSON

func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameStartedLoading) UnmarshalEasyJSON

func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameStartedLoading) UnmarshalJSON

func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventFrameStoppedLoading) MarshalEasyJSON

func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameStoppedLoading) MarshalJSON

func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFrameStoppedLoading) UnmarshalEasyJSON

func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameStoppedLoading) UnmarshalJSON

func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInterstitialHidden

type EventInterstitialHidden struct{}

EventInterstitialHidden fired when interstitial page was hidden.

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

func (EventInterstitialHidden) MarshalEasyJSON

func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInterstitialHidden) MarshalJSON

func (v EventInterstitialHidden) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInterstitialHidden) UnmarshalEasyJSON

func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInterstitialHidden) UnmarshalJSON

func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInterstitialShown

type EventInterstitialShown struct{}

EventInterstitialShown fired when interstitial page was shown.

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

func (EventInterstitialShown) MarshalEasyJSON

func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInterstitialShown) MarshalJSON

func (v EventInterstitialShown) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInterstitialShown) UnmarshalEasyJSON

func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInterstitialShown) UnmarshalJSON

func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventJavascriptDialogClosed

type EventJavascriptDialogClosed struct {
	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

func (EventJavascriptDialogClosed) MarshalEasyJSON

func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventJavascriptDialogClosed) MarshalJSON

func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventJavascriptDialogClosed) UnmarshalEasyJSON

func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventJavascriptDialogClosed) UnmarshalJSON

func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventJavascriptDialogOpening

type EventJavascriptDialogOpening struct {
	URL               string     `json:"url"`                     // Frame url.
	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"` // 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

func (EventJavascriptDialogOpening) MarshalEasyJSON

func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventJavascriptDialogOpening) MarshalJSON

func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventJavascriptDialogOpening) UnmarshalEasyJSON

func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventJavascriptDialogOpening) UnmarshalJSON

func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 top level page lifecycle events such as navigation, load, paint, etc.

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

func (EventLifecycleEvent) MarshalEasyJSON

func (v EventLifecycleEvent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLifecycleEvent) MarshalJSON

func (v EventLifecycleEvent) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLifecycleEvent) UnmarshalEasyJSON

func (v *EventLifecycleEvent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLifecycleEvent) UnmarshalJSON

func (v *EventLifecycleEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadEventFired

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

EventLoadEventFired [no description].

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

func (EventLoadEventFired) MarshalEasyJSON

func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadEventFired) MarshalJSON

func (v EventLoadEventFired) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLoadEventFired) UnmarshalEasyJSON

func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadEventFired) UnmarshalJSON

func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNavigatedWithinDocument

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

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

func (EventNavigatedWithinDocument) MarshalEasyJSON

func (v EventNavigatedWithinDocument) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNavigatedWithinDocument) MarshalJSON

func (v EventNavigatedWithinDocument) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNavigatedWithinDocument) UnmarshalEasyJSON

func (v *EventNavigatedWithinDocument) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNavigatedWithinDocument) UnmarshalJSON

func (v *EventNavigatedWithinDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventScreencastFrame

type EventScreencastFrame struct {
	Data      string                   `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

func (EventScreencastFrame) MarshalEasyJSON

func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreencastFrame) MarshalJSON

func (v EventScreencastFrame) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventScreencastFrame) UnmarshalEasyJSON

func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreencastFrame) UnmarshalJSON

func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventScreencastVisibilityChanged) MarshalEasyJSON

func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreencastVisibilityChanged) MarshalJSON

func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventScreencastVisibilityChanged) UnmarshalEasyJSON

func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreencastVisibilityChanged) UnmarshalJSON

func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (EventWindowOpen) MarshalEasyJSON

func (v EventWindowOpen) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWindowOpen) MarshalJSON

func (v EventWindowOpen) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWindowOpen) UnmarshalEasyJSON

func (v *EventWindowOpen) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWindowOpen) UnmarshalJSON

func (v *EventWindowOpen) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FileChooserOpenedMode

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) MarshalEasyJSON

func (t FileChooserOpenedMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (FileChooserOpenedMode) MarshalJSON

func (t FileChooserOpenedMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (FileChooserOpenedMode) String

func (t FileChooserOpenedMode) String() string

String returns the FileChooserOpenedMode as string value.

func (*FileChooserOpenedMode) UnmarshalEasyJSON

func (t *FileChooserOpenedMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*FileChooserOpenedMode) UnmarshalJSON

func (t *FileChooserOpenedMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type FontFamilies

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

FontFamilies generic font families collection.

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

func (FontFamilies) MarshalEasyJSON

func (v FontFamilies) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontFamilies) MarshalJSON

func (v FontFamilies) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FontFamilies) UnmarshalEasyJSON

func (v *FontFamilies) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontFamilies) UnmarshalJSON

func (v *FontFamilies) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FontSizes

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

FontSizes default font sizes.

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

func (FontSizes) MarshalEasyJSON

func (v FontSizes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontSizes) MarshalJSON

func (v FontSizes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FontSizes) UnmarshalEasyJSON

func (v *FontSizes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontSizes) UnmarshalJSON

func (v *FontSizes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FrameDetachedReason

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) MarshalEasyJSON

func (t FrameDetachedReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (FrameDetachedReason) MarshalJSON

func (t FrameDetachedReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (FrameDetachedReason) String

func (t FrameDetachedReason) String() string

String returns the FrameDetachedReason as string value.

func (*FrameDetachedReason) UnmarshalEasyJSON

func (t *FrameDetachedReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*FrameDetachedReason) UnmarshalJSON

func (t *FrameDetachedReason) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

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"` // last-modified timestamp as reported by server.
	ContentSize  float64              `json:"contentSize,omitempty"`  // Resource content size.
	Failed       bool                 `json:"failed,omitempty"`       // True if the resource failed to load.
	Canceled     bool                 `json:"canceled,omitempty"`     // 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

func (FrameResource) MarshalEasyJSON

func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameResource) MarshalJSON

func (v FrameResource) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FrameResource) UnmarshalEasyJSON

func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameResource) UnmarshalJSON

func (v *FrameResource) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FrameResourceTree

type FrameResourceTree struct {
	Frame       *cdp.Frame           `json:"frame"`                 // Frame information for this tree item.
	ChildFrames []*FrameResourceTree `json:"childFrames,omitempty"` // 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

func (FrameResourceTree) MarshalEasyJSON

func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameResourceTree) MarshalJSON

func (v FrameResourceTree) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FrameResourceTree) UnmarshalEasyJSON

func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameResourceTree) UnmarshalJSON

func (v *FrameResourceTree) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FrameTree

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

FrameTree information about the Frame hierarchy.

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

func (FrameTree) MarshalEasyJSON

func (v FrameTree) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameTree) MarshalJSON

func (v FrameTree) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FrameTree) UnmarshalEasyJSON

func (v *FrameTree) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameTree) UnmarshalJSON

func (v *FrameTree) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GenerateTestReportParams

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

GenerateTestReportParams generates a report for testing.

func GenerateTestReport

func GenerateTestReport(message string) *GenerateTestReportParams

GenerateTestReport generates a report for testing.

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

parameters:

message - Message to be displayed in the report.

func (*GenerateTestReportParams) Do

func (p *GenerateTestReportParams) Do(ctx context.Context) (err error)

Do executes Page.generateTestReport against the provided context.

func (GenerateTestReportParams) MarshalEasyJSON

func (v GenerateTestReportParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GenerateTestReportParams) MarshalJSON

func (v GenerateTestReportParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GenerateTestReportParams) UnmarshalEasyJSON

func (v *GenerateTestReportParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GenerateTestReportParams) UnmarshalJSON

func (v *GenerateTestReportParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GenerateTestReportParams) WithGroup

WithGroup specifies the endpoint group to deliver the report to.

type GetAppIDParams

type GetAppIDParams struct{}

GetAppIDParams returns the unique (PWA) app id.

func GetAppID

func GetAppID() *GetAppIDParams

GetAppID returns the unique (PWA) app id.

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

func (*GetAppIDParams) Do

func (p *GetAppIDParams) Do(ctx context.Context) (appID string, err error)

Do executes Page.getAppId against the provided context.

returns:

appID - Only returns a value if the feature flag 'WebAppEnableManifestId' is enabled

func (GetAppIDParams) MarshalEasyJSON

func (v GetAppIDParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppIDParams) MarshalJSON

func (v GetAppIDParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAppIDParams) UnmarshalEasyJSON

func (v *GetAppIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppIDParams) UnmarshalJSON

func (v *GetAppIDParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAppIDReturns

type GetAppIDReturns struct {
	AppID string `json:"appId,omitempty"` // Only returns a value if the feature flag 'WebAppEnableManifestId' is enabled
}

GetAppIDReturns return values.

func (GetAppIDReturns) MarshalEasyJSON

func (v GetAppIDReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppIDReturns) MarshalJSON

func (v GetAppIDReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAppIDReturns) UnmarshalEasyJSON

func (v *GetAppIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppIDReturns) UnmarshalJSON

func (v *GetAppIDReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAppManifestParams

type GetAppManifestParams struct{}

GetAppManifestParams [no description].

func (*GetAppManifestParams) Do

func (p *GetAppManifestParams) Do(ctx context.Context) (url string, errors []*AppManifestError, data string, parsed *AppManifestParsedProperties, err error)

Do executes Page.getAppManifest against the provided context.

returns:

url - Manifest location.
errors
data - Manifest content.
parsed - Parsed manifest properties

func (GetAppManifestParams) MarshalEasyJSON

func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppManifestParams) MarshalJSON

func (v GetAppManifestParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAppManifestParams) UnmarshalEasyJSON

func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppManifestParams) UnmarshalJSON

func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAppManifestReturns

type GetAppManifestReturns struct {
	URL    string                       `json:"url,omitempty"` // Manifest location.
	Errors []*AppManifestError          `json:"errors,omitempty"`
	Data   string                       `json:"data,omitempty"`   // Manifest content.
	Parsed *AppManifestParsedProperties `json:"parsed,omitempty"` // Parsed manifest properties
}

GetAppManifestReturns return values.

func (GetAppManifestReturns) MarshalEasyJSON

func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppManifestReturns) MarshalJSON

func (v GetAppManifestReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAppManifestReturns) UnmarshalEasyJSON

func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppManifestReturns) UnmarshalJSON

func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameTreeParams

type GetFrameTreeParams struct{}

GetFrameTreeParams returns present frame tree structure.

func GetFrameTree

func GetFrameTree() *GetFrameTreeParams

GetFrameTree returns present frame tree structure.

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

func (*GetFrameTreeParams) Do

func (p *GetFrameTreeParams) Do(ctx context.Context) (frameTree *FrameTree, err error)

Do executes Page.getFrameTree against the provided context.

returns:

frameTree - Present frame tree structure.

func (GetFrameTreeParams) MarshalEasyJSON

func (v GetFrameTreeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameTreeParams) MarshalJSON

func (v GetFrameTreeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFrameTreeParams) UnmarshalEasyJSON

func (v *GetFrameTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameTreeParams) UnmarshalJSON

func (v *GetFrameTreeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameTreeReturns

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

GetFrameTreeReturns return values.

func (GetFrameTreeReturns) MarshalEasyJSON

func (v GetFrameTreeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameTreeReturns) MarshalJSON

func (v GetFrameTreeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetFrameTreeReturns) UnmarshalEasyJSON

func (v *GetFrameTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameTreeReturns) UnmarshalJSON

func (v *GetFrameTreeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInstallabilityErrorsParams

type GetInstallabilityErrorsParams struct{}

GetInstallabilityErrorsParams [no description].

func (*GetInstallabilityErrorsParams) Do

func (p *GetInstallabilityErrorsParams) Do(ctx context.Context) (installabilityErrors []*InstallabilityError, err error)

Do executes Page.getInstallabilityErrors against the provided context.

returns:

installabilityErrors

func (GetInstallabilityErrorsParams) MarshalEasyJSON

func (v GetInstallabilityErrorsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInstallabilityErrorsParams) MarshalJSON

func (v GetInstallabilityErrorsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInstallabilityErrorsParams) UnmarshalEasyJSON

func (v *GetInstallabilityErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInstallabilityErrorsParams) UnmarshalJSON

func (v *GetInstallabilityErrorsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInstallabilityErrorsReturns

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

GetInstallabilityErrorsReturns return values.

func (GetInstallabilityErrorsReturns) MarshalEasyJSON

func (v GetInstallabilityErrorsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInstallabilityErrorsReturns) MarshalJSON

func (v GetInstallabilityErrorsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInstallabilityErrorsReturns) UnmarshalEasyJSON

func (v *GetInstallabilityErrorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInstallabilityErrorsReturns) UnmarshalJSON

func (v *GetInstallabilityErrorsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetLayoutMetricsParams

type GetLayoutMetricsParams struct{}

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

func GetLayoutMetrics

func GetLayoutMetrics() *GetLayoutMetricsParams

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

func (*GetLayoutMetricsParams) Do

func (p *GetLayoutMetricsParams) Do(ctx context.Context) (layoutViewport *LayoutViewport, visualViewport *VisualViewport, contentSize *dom.Rect, cssLayoutViewport *LayoutViewport, cssVisualViewport *VisualViewport, cssContentSize *dom.Rect, err error)

Do executes Page.getLayoutMetrics against the provided context.

returns:

layoutViewport - Deprecated metrics relating to the layout viewport. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssLayoutViewport instead.
visualViewport - Deprecated metrics relating to the visual viewport. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssVisualViewport instead.
contentSize - Deprecated size of scrollable area. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssContentSize instead.
cssLayoutViewport - Metrics relating to the layout viewport in CSS pixels.
cssVisualViewport - Metrics relating to the visual viewport in CSS pixels.
cssContentSize - Size of scrollable area in CSS pixels.

func (GetLayoutMetricsParams) MarshalEasyJSON

func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetLayoutMetricsParams) MarshalJSON

func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetLayoutMetricsParams) UnmarshalEasyJSON

func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetLayoutMetricsParams) UnmarshalJSON

func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetLayoutMetricsReturns

type GetLayoutMetricsReturns struct {
	LayoutViewport    *LayoutViewport `json:"layoutViewport"`    // Deprecated metrics relating to the layout viewport. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssLayoutViewport instead.
	VisualViewport    *VisualViewport `json:"visualViewport"`    // Deprecated metrics relating to the visual viewport. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssVisualViewport instead.
	ContentSize       *dom.Rect       `json:"contentSize"`       // Deprecated size of scrollable area. Can be in DP or in CSS pixels depending on the enable-use-zoom-for-dsf flag. Use cssContentSize instead.
	CSSLayoutViewport *LayoutViewport `json:"cssLayoutViewport"` // Metrics relating to the layout viewport in CSS pixels.
	CSSVisualViewport *VisualViewport `json:"cssVisualViewport"` // Metrics relating to the visual viewport in CSS pixels.
	CSSContentSize    *dom.Rect       `json:"cssContentSize"`    // Size of scrollable area in CSS pixels.
}

GetLayoutMetricsReturns return values.

func (GetLayoutMetricsReturns) MarshalEasyJSON

func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetLayoutMetricsReturns) MarshalJSON

func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetLayoutMetricsReturns) UnmarshalEasyJSON

func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetLayoutMetricsReturns) UnmarshalJSON

func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetManifestIconsParams

type GetManifestIconsParams struct{}

GetManifestIconsParams [no description].

func (*GetManifestIconsParams) Do

func (p *GetManifestIconsParams) Do(ctx context.Context) (primaryIcon []byte, err error)

Do executes Page.getManifestIcons against the provided context.

returns:

primaryIcon

func (GetManifestIconsParams) MarshalEasyJSON

func (v GetManifestIconsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetManifestIconsParams) MarshalJSON

func (v GetManifestIconsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetManifestIconsParams) UnmarshalEasyJSON

func (v *GetManifestIconsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetManifestIconsParams) UnmarshalJSON

func (v *GetManifestIconsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetManifestIconsReturns

type GetManifestIconsReturns struct {
	PrimaryIcon string `json:"primaryIcon,omitempty"`
}

GetManifestIconsReturns return values.

func (GetManifestIconsReturns) MarshalEasyJSON

func (v GetManifestIconsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetManifestIconsReturns) MarshalJSON

func (v GetManifestIconsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetManifestIconsReturns) UnmarshalEasyJSON

func (v *GetManifestIconsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetManifestIconsReturns) UnmarshalJSON

func (v *GetManifestIconsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNavigationHistoryParams

type GetNavigationHistoryParams struct{}

GetNavigationHistoryParams returns navigation history for the current page.

func GetNavigationHistory

func GetNavigationHistory() *GetNavigationHistoryParams

GetNavigationHistory returns navigation history for the current page.

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

func (*GetNavigationHistoryParams) Do

func (p *GetNavigationHistoryParams) Do(ctx context.Context) (currentIndex int64, entries []*NavigationEntry, err error)

Do executes Page.getNavigationHistory against the provided context.

returns:

currentIndex - Index of the current navigation history entry.
entries - Array of navigation history entries.

func (GetNavigationHistoryParams) MarshalEasyJSON

func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNavigationHistoryParams) MarshalJSON

func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNavigationHistoryParams) UnmarshalEasyJSON

func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNavigationHistoryParams) UnmarshalJSON

func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetNavigationHistoryReturns

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

GetNavigationHistoryReturns return values.

func (GetNavigationHistoryReturns) MarshalEasyJSON

func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNavigationHistoryReturns) MarshalJSON

func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetNavigationHistoryReturns) UnmarshalEasyJSON

func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNavigationHistoryReturns) UnmarshalJSON

func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetOriginTrialsParams

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

GetOriginTrialsParams get Origin Trials on given frame.

func GetOriginTrials

func GetOriginTrials(frameID cdp.FrameID) *GetOriginTrialsParams

GetOriginTrials get Origin Trials on given frame.

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

parameters:

frameID

func (*GetOriginTrialsParams) Do

func (p *GetOriginTrialsParams) Do(ctx context.Context) (originTrials []*cdp.OriginTrial, err error)

Do executes Page.getOriginTrials against the provided context.

returns:

originTrials

func (GetOriginTrialsParams) MarshalEasyJSON

func (v GetOriginTrialsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOriginTrialsParams) MarshalJSON

func (v GetOriginTrialsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetOriginTrialsParams) UnmarshalEasyJSON

func (v *GetOriginTrialsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOriginTrialsParams) UnmarshalJSON

func (v *GetOriginTrialsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetOriginTrialsReturns

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

GetOriginTrialsReturns return values.

func (GetOriginTrialsReturns) MarshalEasyJSON

func (v GetOriginTrialsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOriginTrialsReturns) MarshalJSON

func (v GetOriginTrialsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetOriginTrialsReturns) UnmarshalEasyJSON

func (v *GetOriginTrialsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOriginTrialsReturns) UnmarshalJSON

func (v *GetOriginTrialsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPermissionsPolicyStateParams

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

GetPermissionsPolicyStateParams get Permissions Policy state on given frame.

func GetPermissionsPolicyState

func GetPermissionsPolicyState(frameID cdp.FrameID) *GetPermissionsPolicyStateParams

GetPermissionsPolicyState get Permissions Policy state on given frame.

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

parameters:

frameID

func (*GetPermissionsPolicyStateParams) Do

Do executes Page.getPermissionsPolicyState against the provided context.

returns:

states

func (GetPermissionsPolicyStateParams) MarshalEasyJSON

func (v GetPermissionsPolicyStateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPermissionsPolicyStateParams) MarshalJSON

func (v GetPermissionsPolicyStateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPermissionsPolicyStateParams) UnmarshalEasyJSON

func (v *GetPermissionsPolicyStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPermissionsPolicyStateParams) UnmarshalJSON

func (v *GetPermissionsPolicyStateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPermissionsPolicyStateReturns

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

GetPermissionsPolicyStateReturns return values.

func (GetPermissionsPolicyStateReturns) MarshalEasyJSON

func (v GetPermissionsPolicyStateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPermissionsPolicyStateReturns) MarshalJSON

func (v GetPermissionsPolicyStateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPermissionsPolicyStateReturns) UnmarshalEasyJSON

func (v *GetPermissionsPolicyStateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPermissionsPolicyStateReturns) UnmarshalJSON

func (v *GetPermissionsPolicyStateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 returns content of the given resource.

func GetResourceContent

func GetResourceContent(frameID cdp.FrameID, url string) *GetResourceContentParams

GetResourceContent returns content of the given resource.

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

parameters:

frameID - Frame id to get resource for.
url - URL of the resource to get content for.

func (*GetResourceContentParams) Do

func (p *GetResourceContentParams) Do(ctx context.Context) (content []byte, err error)

Do executes Page.getResourceContent against the provided context.

returns:

content - Resource content.

func (GetResourceContentParams) MarshalEasyJSON

func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceContentParams) MarshalJSON

func (v GetResourceContentParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResourceContentParams) UnmarshalEasyJSON

func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceContentParams) UnmarshalJSON

func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceContentReturns

type GetResourceContentReturns struct {
	Content       string `json:"content,omitempty"`       // Resource content.
	Base64encoded bool   `json:"base64Encoded,omitempty"` // True, if content was served as base64.
}

GetResourceContentReturns return values.

func (GetResourceContentReturns) MarshalEasyJSON

func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceContentReturns) MarshalJSON

func (v GetResourceContentReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResourceContentReturns) UnmarshalEasyJSON

func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceContentReturns) UnmarshalJSON

func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceTreeParams

type GetResourceTreeParams struct{}

GetResourceTreeParams returns present frame / resource tree structure.

func GetResourceTree

func GetResourceTree() *GetResourceTreeParams

GetResourceTree returns present frame / resource tree structure.

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

func (*GetResourceTreeParams) Do

func (p *GetResourceTreeParams) Do(ctx context.Context) (frameTree *FrameResourceTree, err error)

Do executes Page.getResourceTree against the provided context.

returns:

frameTree - Present frame / resource tree structure.

func (GetResourceTreeParams) MarshalEasyJSON

func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceTreeParams) MarshalJSON

func (v GetResourceTreeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResourceTreeParams) UnmarshalEasyJSON

func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceTreeParams) UnmarshalJSON

func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceTreeReturns

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

GetResourceTreeReturns return values.

func (GetResourceTreeReturns) MarshalEasyJSON

func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceTreeReturns) MarshalJSON

func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResourceTreeReturns) UnmarshalEasyJSON

func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceTreeReturns) UnmarshalJSON

func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HandleJavaScriptDialogParams

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

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

func HandleJavaScriptDialog

func HandleJavaScriptDialog(accept bool) *HandleJavaScriptDialogParams

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

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

parameters:

accept - Whether to accept or dismiss the dialog.

func (*HandleJavaScriptDialogParams) Do

Do executes Page.handleJavaScriptDialog against the provided context.

func (HandleJavaScriptDialogParams) MarshalEasyJSON

func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HandleJavaScriptDialogParams) MarshalJSON

func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HandleJavaScriptDialogParams) UnmarshalEasyJSON

func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HandleJavaScriptDialogParams) UnmarshalJSON

func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (HandleJavaScriptDialogParams) WithPromptText

WithPromptText the text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.

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

func (InstallabilityError) MarshalEasyJSON

func (v InstallabilityError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InstallabilityError) MarshalJSON

func (v InstallabilityError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InstallabilityError) UnmarshalEasyJSON

func (v *InstallabilityError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InstallabilityError) UnmarshalJSON

func (v *InstallabilityError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (InstallabilityErrorArgument) MarshalEasyJSON

func (v InstallabilityErrorArgument) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InstallabilityErrorArgument) MarshalJSON

func (v InstallabilityErrorArgument) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InstallabilityErrorArgument) UnmarshalEasyJSON

func (v *InstallabilityErrorArgument) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InstallabilityErrorArgument) UnmarshalJSON

func (v *InstallabilityErrorArgument) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (LayoutViewport) MarshalEasyJSON

func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LayoutViewport) MarshalJSON

func (v LayoutViewport) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LayoutViewport) UnmarshalEasyJSON

func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LayoutViewport) UnmarshalJSON

func (v *LayoutViewport) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

NavigateParams navigates current page to the given URL.

func Navigate(url string) *NavigateParams

Navigate navigates current page to the given URL.

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

parameters:

url - URL to navigate the page to.
func (p *NavigateParams) Do(ctx context.Context) (frameID cdp.FrameID, loaderID cdp.LoaderID, errorText string, err error)

Do executes Page.navigate against the provided context.

returns:

frameID - Frame id that has navigated (or failed to navigate)
loaderID - Loader identifier.
errorText - User friendly error message, present if and only if navigation has failed.
func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (v NavigateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (v *NavigateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (p NavigateParams) WithFrameID(frameID cdp.FrameID) *NavigateParams

WithFrameID frame id to navigate, if not specified navigates the top frame.

func (p NavigateParams) WithReferrer(referrer string) *NavigateParams

WithReferrer referrer URL.

func (p NavigateParams) WithReferrerPolicy(referrerPolicy ReferrerPolicy) *NavigateParams

WithReferrerPolicy referrer-policy used for the navigation.

func (p NavigateParams) WithTransitionType(transitionType TransitionType) *NavigateParams

WithTransitionType intended transition type.

type NavigateReturns struct {
	FrameID   cdp.FrameID  `json:"frameId,omitempty"`   // Frame id that has navigated (or failed to navigate)
	LoaderID  cdp.LoaderID `json:"loaderId,omitempty"`  // Loader identifier.
	ErrorText string       `json:"errorText,omitempty"` // User friendly error message, present if and only if navigation has failed.
}

NavigateReturns return values.

func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (v NavigateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (v *NavigateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

NavigateToHistoryEntryParams navigates current page to the given history entry.

func NavigateToHistoryEntry(entryID int64) *NavigateToHistoryEntryParams

NavigateToHistoryEntry navigates current page to the given history entry.

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

parameters:

entryID - Unique id of the entry to navigate to.

Do executes Page.navigateToHistoryEntry against the provided context.

func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (v NavigationEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (v *NavigationEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (t NavigationType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (t NavigationType) String() string

String returns the NavigationType as string value.

func (t *NavigationType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (t *NavigationType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

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

func (PermissionsPolicyBlockLocator) MarshalEasyJSON

func (v PermissionsPolicyBlockLocator) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PermissionsPolicyBlockLocator) MarshalJSON

func (v PermissionsPolicyBlockLocator) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PermissionsPolicyBlockLocator) UnmarshalEasyJSON

func (v *PermissionsPolicyBlockLocator) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PermissionsPolicyBlockLocator) UnmarshalJSON

func (v *PermissionsPolicyBlockLocator) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"
)

PermissionsPolicyBlockReason values.

func (PermissionsPolicyBlockReason) MarshalEasyJSON

func (t PermissionsPolicyBlockReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PermissionsPolicyBlockReason) MarshalJSON

func (t PermissionsPolicyBlockReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PermissionsPolicyBlockReason) String

String returns the PermissionsPolicyBlockReason as string value.

func (*PermissionsPolicyBlockReason) UnmarshalEasyJSON

func (t *PermissionsPolicyBlockReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PermissionsPolicyBlockReason) UnmarshalJSON

func (t *PermissionsPolicyBlockReason) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PermissionsPolicyFeature

type PermissionsPolicyFeature string

PermissionsPolicyFeature all Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.

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

const (
	PermissionsPolicyFeatureAccelerometer               PermissionsPolicyFeature = "accelerometer"
	PermissionsPolicyFeatureAmbientLightSensor          PermissionsPolicyFeature = "ambient-light-sensor"
	PermissionsPolicyFeatureAttributionReporting        PermissionsPolicyFeature = "attribution-reporting"
	PermissionsPolicyFeatureAutoplay                    PermissionsPolicyFeature = "autoplay"
	PermissionsPolicyFeatureCamera                      PermissionsPolicyFeature = "camera"
	PermissionsPolicyFeatureChDpr                       PermissionsPolicyFeature = "ch-dpr"
	PermissionsPolicyFeatureChDeviceMemory              PermissionsPolicyFeature = "ch-device-memory"
	PermissionsPolicyFeatureChDownlink                  PermissionsPolicyFeature = "ch-downlink"
	PermissionsPolicyFeatureChEct                       PermissionsPolicyFeature = "ch-ect"
	PermissionsPolicyFeatureChPrefersColorScheme        PermissionsPolicyFeature = "ch-prefers-color-scheme"
	PermissionsPolicyFeatureChRtt                       PermissionsPolicyFeature = "ch-rtt"
	PermissionsPolicyFeatureChUa                        PermissionsPolicyFeature = "ch-ua"
	PermissionsPolicyFeatureChUaArch                    PermissionsPolicyFeature = "ch-ua-arch"
	PermissionsPolicyFeatureChUaBitness                 PermissionsPolicyFeature = "ch-ua-bitness"
	PermissionsPolicyFeatureChUaPlatform                PermissionsPolicyFeature = "ch-ua-platform"
	PermissionsPolicyFeatureChUaModel                   PermissionsPolicyFeature = "ch-ua-model"
	PermissionsPolicyFeatureChUaMobile                  PermissionsPolicyFeature = "ch-ua-mobile"
	PermissionsPolicyFeatureChUaFullVersion             PermissionsPolicyFeature = "ch-ua-full-version"
	PermissionsPolicyFeatureChUaPlatformVersion         PermissionsPolicyFeature = "ch-ua-platform-version"
	PermissionsPolicyFeatureChUaReduced                 PermissionsPolicyFeature = "ch-ua-reduced"
	PermissionsPolicyFeatureChViewportHeight            PermissionsPolicyFeature = "ch-viewport-height"
	PermissionsPolicyFeatureChViewportWidth             PermissionsPolicyFeature = "ch-viewport-width"
	PermissionsPolicyFeatureChWidth                     PermissionsPolicyFeature = "ch-width"
	PermissionsPolicyFeatureClipboardRead               PermissionsPolicyFeature = "clipboard-read"
	PermissionsPolicyFeatureClipboardWrite              PermissionsPolicyFeature = "clipboard-write"
	PermissionsPolicyFeatureCrossOriginIsolated         PermissionsPolicyFeature = "cross-origin-isolated"
	PermissionsPolicyFeatureDirectSockets               PermissionsPolicyFeature = "direct-sockets"
	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"
	PermissionsPolicyFeatureHid                         PermissionsPolicyFeature = "hid"
	PermissionsPolicyFeatureIdleDetection               PermissionsPolicyFeature = "idle-detection"
	PermissionsPolicyFeatureInterestCohort              PermissionsPolicyFeature = "interest-cohort"
	PermissionsPolicyFeatureMagnetometer                PermissionsPolicyFeature = "magnetometer"
	PermissionsPolicyFeatureMicrophone                  PermissionsPolicyFeature = "microphone"
	PermissionsPolicyFeatureMidi                        PermissionsPolicyFeature = "midi"
	PermissionsPolicyFeatureOtpCredentials              PermissionsPolicyFeature = "otp-credentials"
	PermissionsPolicyFeaturePayment                     PermissionsPolicyFeature = "payment"
	PermissionsPolicyFeaturePictureInPicture            PermissionsPolicyFeature = "picture-in-picture"
	PermissionsPolicyFeaturePublickeyCredentialsGet     PermissionsPolicyFeature = "publickey-credentials-get"
	PermissionsPolicyFeatureScreenWakeLock              PermissionsPolicyFeature = "screen-wake-lock"
	PermissionsPolicyFeatureSerial                      PermissionsPolicyFeature = "serial"
	PermissionsPolicyFeatureSharedAutofill              PermissionsPolicyFeature = "shared-autofill"
	PermissionsPolicyFeatureStorageAccessAPI            PermissionsPolicyFeature = "storage-access-api"
	PermissionsPolicyFeatureSyncXhr                     PermissionsPolicyFeature = "sync-xhr"
	PermissionsPolicyFeatureTrustTokenRedemption        PermissionsPolicyFeature = "trust-token-redemption"
	PermissionsPolicyFeatureUsb                         PermissionsPolicyFeature = "usb"
	PermissionsPolicyFeatureVerticalScroll              PermissionsPolicyFeature = "vertical-scroll"
	PermissionsPolicyFeatureWebShare                    PermissionsPolicyFeature = "web-share"
	PermissionsPolicyFeatureWindowPlacement             PermissionsPolicyFeature = "window-placement"
	PermissionsPolicyFeatureXrSpatialTracking           PermissionsPolicyFeature = "xr-spatial-tracking"
)

PermissionsPolicyFeature values.

func (PermissionsPolicyFeature) MarshalEasyJSON

func (t PermissionsPolicyFeature) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PermissionsPolicyFeature) MarshalJSON

func (t PermissionsPolicyFeature) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PermissionsPolicyFeature) String

func (t PermissionsPolicyFeature) String() string

String returns the PermissionsPolicyFeature as string value.

func (*PermissionsPolicyFeature) UnmarshalEasyJSON

func (t *PermissionsPolicyFeature) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PermissionsPolicyFeature) UnmarshalJSON

func (t *PermissionsPolicyFeature) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PermissionsPolicyFeatureState

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

PermissionsPolicyFeatureState [no description].

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

func (PermissionsPolicyFeatureState) MarshalEasyJSON

func (v PermissionsPolicyFeatureState) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PermissionsPolicyFeatureState) MarshalJSON

func (v PermissionsPolicyFeatureState) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PermissionsPolicyFeatureState) UnmarshalEasyJSON

func (v *PermissionsPolicyFeatureState) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PermissionsPolicyFeatureState) UnmarshalJSON

func (v *PermissionsPolicyFeatureState) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PrintToPDFParams

type PrintToPDFParams struct {
	Landscape               bool                   `json:"landscape,omitempty"`               // Paper orientation. Defaults to false.
	DisplayHeaderFooter     bool                   `json:"displayHeaderFooter,omitempty"`     // Display header and footer. Defaults to false.
	PrintBackground         bool                   `json:"printBackground,omitempty"`         // Print background graphics. Defaults to false.
	Scale                   float64                `json:"scale,omitempty"`                   // Scale of the webpage rendering. Defaults to 1.
	PaperWidth              float64                `json:"paperWidth,omitempty"`              // Paper width in inches. Defaults to 8.5 inches.
	PaperHeight             float64                `json:"paperHeight,omitempty"`             // Paper height in inches. Defaults to 11 inches.
	MarginTop               float64                `json:"marginTop"`                         // Top margin in inches. Defaults to 1cm (~0.4 inches).
	MarginBottom            float64                `json:"marginBottom"`                      // Bottom margin in inches. Defaults to 1cm (~0.4 inches).
	MarginLeft              float64                `json:"marginLeft"`                        // Left margin in inches. Defaults to 1cm (~0.4 inches).
	MarginRight             float64                `json:"marginRight"`                       // Right margin in inches. Defaults to 1cm (~0.4 inches).
	PageRanges              string                 `json:"pageRanges,omitempty"`              // Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
	IgnoreInvalidPageRanges bool                   `json:"ignoreInvalidPageRanges,omitempty"` // Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.
	HeaderTemplate          string                 `json:"headerTemplate,omitempty"`          // 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"`          // HTML template for the print footer. Should use the same format as the headerTemplate.
	PreferCSSPageSize       bool                   `json:"preferCSSPageSize,omitempty"`       // 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"`            // return as stream
}

PrintToPDFParams print page as PDF.

func PrintToPDF

func PrintToPDF() *PrintToPDFParams

PrintToPDF print page as PDF.

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

parameters:

func (*PrintToPDFParams) Do

func (p *PrintToPDFParams) Do(ctx context.Context) (data []byte, stream io.StreamHandle, err error)

Do executes Page.printToPDF against the provided context.

returns:

data - Base64-encoded pdf data. Empty if |returnAsStream| is specified.
stream - A handle of the stream that holds resulting PDF data.

func (PrintToPDFParams) MarshalEasyJSON

func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrintToPDFParams) MarshalJSON

func (v PrintToPDFParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PrintToPDFParams) UnmarshalEasyJSON

func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrintToPDFParams) UnmarshalJSON

func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (PrintToPDFParams) WithDisplayHeaderFooter

func (p PrintToPDFParams) WithDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFParams

WithDisplayHeaderFooter display header and footer. Defaults to false.

func (PrintToPDFParams) WithFooterTemplate

func (p PrintToPDFParams) WithFooterTemplate(footerTemplate string) *PrintToPDFParams

WithFooterTemplate HTML template for the print footer. Should use the same format as the headerTemplate.

func (PrintToPDFParams) WithHeaderTemplate

func (p PrintToPDFParams) WithHeaderTemplate(headerTemplate string) *PrintToPDFParams

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

func (PrintToPDFParams) WithIgnoreInvalidPageRanges

func (p PrintToPDFParams) WithIgnoreInvalidPageRanges(ignoreInvalidPageRanges bool) *PrintToPDFParams

WithIgnoreInvalidPageRanges whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.

func (PrintToPDFParams) WithLandscape

func (p PrintToPDFParams) WithLandscape(landscape bool) *PrintToPDFParams

WithLandscape paper orientation. Defaults to false.

func (PrintToPDFParams) WithMarginBottom

func (p PrintToPDFParams) WithMarginBottom(marginBottom float64) *PrintToPDFParams

WithMarginBottom bottom margin in inches. Defaults to 1cm (~0.4 inches).

func (PrintToPDFParams) WithMarginLeft

func (p PrintToPDFParams) WithMarginLeft(marginLeft float64) *PrintToPDFParams

WithMarginLeft left margin in inches. Defaults to 1cm (~0.4 inches).

func (PrintToPDFParams) WithMarginRight

func (p PrintToPDFParams) WithMarginRight(marginRight float64) *PrintToPDFParams

WithMarginRight right margin in inches. Defaults to 1cm (~0.4 inches).

func (PrintToPDFParams) WithMarginTop

func (p PrintToPDFParams) WithMarginTop(marginTop float64) *PrintToPDFParams

WithMarginTop top margin in inches. Defaults to 1cm (~0.4 inches).

func (PrintToPDFParams) WithPageRanges

func (p PrintToPDFParams) WithPageRanges(pageRanges string) *PrintToPDFParams

WithPageRanges paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.

func (PrintToPDFParams) WithPaperHeight

func (p PrintToPDFParams) WithPaperHeight(paperHeight float64) *PrintToPDFParams

WithPaperHeight paper height in inches. Defaults to 11 inches.

func (PrintToPDFParams) WithPaperWidth

func (p PrintToPDFParams) WithPaperWidth(paperWidth float64) *PrintToPDFParams

WithPaperWidth paper width in inches. Defaults to 8.5 inches.

func (PrintToPDFParams) WithPreferCSSPageSize

func (p PrintToPDFParams) WithPreferCSSPageSize(preferCSSPageSize bool) *PrintToPDFParams

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

func (PrintToPDFParams) WithPrintBackground

func (p PrintToPDFParams) WithPrintBackground(printBackground bool) *PrintToPDFParams

WithPrintBackground print background graphics. Defaults to false.

func (PrintToPDFParams) WithScale

func (p PrintToPDFParams) WithScale(scale float64) *PrintToPDFParams

WithScale scale of the webpage rendering. Defaults to 1.

func (PrintToPDFParams) WithTransferMode

func (p PrintToPDFParams) WithTransferMode(transferMode PrintToPDFTransferMode) *PrintToPDFParams

WithTransferMode return as stream.

type PrintToPDFReturns

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

PrintToPDFReturns return values.

func (PrintToPDFReturns) MarshalEasyJSON

func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrintToPDFReturns) MarshalJSON

func (v PrintToPDFReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PrintToPDFReturns) UnmarshalEasyJSON

func (v *PrintToPDFReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrintToPDFReturns) UnmarshalJSON

func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PrintToPDFTransferMode

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) MarshalEasyJSON

func (t PrintToPDFTransferMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PrintToPDFTransferMode) MarshalJSON

func (t PrintToPDFTransferMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PrintToPDFTransferMode) String

func (t PrintToPDFTransferMode) String() string

String returns the PrintToPDFTransferMode as string value.

func (*PrintToPDFTransferMode) UnmarshalEasyJSON

func (t *PrintToPDFTransferMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PrintToPDFTransferMode) UnmarshalJSON

func (t *PrintToPDFTransferMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ProduceCompilationCacheParams

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

ProduceCompilationCacheParams requests backend to produce compilation cache for the specified scripts. Unlike setProduceCompilationCache, this allows client to only produce cache for specific scripts. scripts are appeneded to the list of scripts for which the cache for would produced. Disabling compilation cache with setProduceCompilationCache would reset all pending cache requests. The list may also 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.

func ProduceCompilationCache

func ProduceCompilationCache(scripts []*CompilationCacheParams) *ProduceCompilationCacheParams

ProduceCompilationCache requests backend to produce compilation cache for the specified scripts. Unlike setProduceCompilationCache, this allows client to only produce cache for specific scripts. scripts are appeneded to the list of scripts for which the cache for would produced. Disabling compilation cache with setProduceCompilationCache would reset all pending cache requests. The list may also 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

parameters:

scripts

func (*ProduceCompilationCacheParams) Do

Do executes Page.produceCompilationCache against the provided context.

func (ProduceCompilationCacheParams) MarshalEasyJSON

func (v ProduceCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProduceCompilationCacheParams) MarshalJSON

func (v ProduceCompilationCacheParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ProduceCompilationCacheParams) UnmarshalEasyJSON

func (v *ProduceCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProduceCompilationCacheParams) UnmarshalJSON

func (v *ProduceCompilationCacheParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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) MarshalEasyJSON

func (t ReferrerPolicy) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ReferrerPolicy) MarshalJSON

func (t ReferrerPolicy) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ReferrerPolicy) String

func (t ReferrerPolicy) String() string

String returns the ReferrerPolicy as string value.

func (*ReferrerPolicy) UnmarshalEasyJSON

func (t *ReferrerPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ReferrerPolicy) UnmarshalJSON

func (t *ReferrerPolicy) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ReloadParams

type ReloadParams struct {
	IgnoreCache            bool   `json:"ignoreCache,omitempty"`            // If true, browser cache is ignored (as if the user pressed Shift+refresh).
	ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"` // If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.
}

ReloadParams reloads given page optionally ignoring the cache.

func Reload

func Reload() *ReloadParams

Reload reloads given page optionally ignoring the cache.

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

parameters:

func (*ReloadParams) Do

func (p *ReloadParams) Do(ctx context.Context) (err error)

Do executes Page.reload against the provided context.

func (ReloadParams) MarshalEasyJSON

func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReloadParams) MarshalJSON

func (v ReloadParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReloadParams) UnmarshalEasyJSON

func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReloadParams) UnmarshalJSON

func (v *ReloadParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ReloadParams) WithIgnoreCache

func (p ReloadParams) WithIgnoreCache(ignoreCache bool) *ReloadParams

WithIgnoreCache if true, browser cache is ignored (as if the user pressed Shift+refresh).

func (ReloadParams) WithScriptToEvaluateOnLoad

func (p ReloadParams) WithScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadParams

WithScriptToEvaluateOnLoad if set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.

type RemoveScriptToEvaluateOnNewDocumentParams

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

RemoveScriptToEvaluateOnNewDocumentParams removes given script from the list.

func RemoveScriptToEvaluateOnNewDocument

func RemoveScriptToEvaluateOnNewDocument(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnNewDocumentParams

RemoveScriptToEvaluateOnNewDocument removes given script from the list.

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

parameters:

identifier

func (*RemoveScriptToEvaluateOnNewDocumentParams) Do

Do executes Page.removeScriptToEvaluateOnNewDocument against the provided context.

func (RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON

func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON

func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResetNavigationHistoryParams

type ResetNavigationHistoryParams struct{}

ResetNavigationHistoryParams resets navigation history for the current page.

func ResetNavigationHistory

func ResetNavigationHistory() *ResetNavigationHistoryParams

ResetNavigationHistory resets navigation history for the current page.

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

func (*ResetNavigationHistoryParams)