Documentation ¶
Index ¶
- Constants
- Variables
- func GetEventReply(event string) (json.Unmarshaler, bool)
- type AddCompilationCacheArgs
- type AddCompilationCacheReply
- type AddScriptToEvaluateOnLoadArgs
- type AddScriptToEvaluateOnLoadReply
- type AddScriptToEvaluateOnNewDocumentArgs
- type AddScriptToEvaluateOnNewDocumentReply
- type AppManifestError
- type AppManifestParsedProperties
- type BringToFrontArgs
- type BringToFrontReply
- type CaptureScreenshotArgs
- type CaptureScreenshotReply
- type CaptureSnapshotArgs
- type CaptureSnapshotReply
- type ClearCompilationCacheArgs
- type ClearCompilationCacheReply
- type ClientNavigationReason
- type CloseArgs
- type CloseReply
- type CompilationCacheProducedReply
- type CrashArgs
- type CrashReply
- type CreateIsolatedWorldArgs
- type CreateIsolatedWorldReply
- type DOMContentEventFiredReply
- type DialogType
- type DisableArgs
- type DisableReply
- type DownloadProgressReply
- type DownloadWillBeginReply
- type EnableArgs
- type EnableReply
- type FileChooserOpenedReply
- type FontFamilies
- type FontSizes
- type Frame
- type FrameAttachedReply
- type FrameClearedScheduledNavigationReply
- type FrameDetachedReply
- type FrameNavigatedReply
- type FrameRequestedNavigationReply
- type FrameResizedReply
- type FrameResource
- type FrameResourceTree
- type FrameScheduledNavigationReply
- type FrameStartedLoadingReply
- type FrameStoppedLoadingReply
- type FrameTree
- type GenerateTestReportArgs
- type GenerateTestReportReply
- type GetAppManifestArgs
- type GetAppManifestReply
- type GetFrameTreeArgs
- type GetFrameTreeReply
- type GetInstallabilityErrorsArgs
- type GetInstallabilityErrorsReply
- type GetLayoutMetricsArgs
- type GetLayoutMetricsReply
- type GetManifestIconsArgs
- type GetManifestIconsReply
- type GetNavigationHistoryArgs
- type GetNavigationHistoryReply
- type GetResourceContentArgs
- type GetResourceContentReply
- type GetResourceTreeArgs
- type GetResourceTreeReply
- type HandleJavaScriptDialogArgs
- type HandleJavaScriptDialogReply
- type InstallabilityError
- type InstallabilityErrorArgument
- type InterstitialHiddenReply
- type InterstitialShownReply
- type JavascriptDialogClosedReply
- type JavascriptDialogOpeningReply
- type LayoutViewport
- type LifecycleEventReply
- type LoadEventFiredReply
- type NavigateArgs
- type NavigateReply
- type NavigateToHistoryEntryArgs
- type NavigateToHistoryEntryReply
- type NavigatedWithinDocumentReply
- type NavigationEntry
- type PrintToPDFArgs
- type PrintToPDFReply
- type ReferrerPolicy
- type ReloadArgs
- type ReloadReply
- type RemoveScriptToEvaluateOnLoadArgs
- type RemoveScriptToEvaluateOnLoadReply
- type RemoveScriptToEvaluateOnNewDocumentArgs
- type RemoveScriptToEvaluateOnNewDocumentReply
- type ResetNavigationHistoryArgs
- type ResetNavigationHistoryReply
- type ScreencastFrameAckArgs
- type ScreencastFrameAckReply
- type ScreencastFrameMetadata
- type ScreencastFrameReply
- type ScreencastVisibilityChangedReply
- type ScriptIdentifier
- type SearchInResourceArgs
- type SearchInResourceReply
- type SetAdBlockingEnabledArgs
- type SetAdBlockingEnabledReply
- type SetBypassCSPArgs
- type SetBypassCSPReply
- type SetDocumentContentArgs
- type SetDocumentContentReply
- type SetDownloadBehaviorArgs
- type SetDownloadBehaviorReply
- type SetFontFamiliesArgs
- type SetFontFamiliesReply
- type SetFontSizesArgs
- type SetFontSizesReply
- type SetInterceptFileChooserDialogArgs
- type SetInterceptFileChooserDialogReply
- type SetLifecycleEventsEnabledArgs
- type SetLifecycleEventsEnabledReply
- type SetProduceCompilationCacheArgs
- type SetProduceCompilationCacheReply
- type SetWebLifecycleStateArgs
- type SetWebLifecycleStateReply
- type StartScreencastArgs
- type StartScreencastReply
- type StopLoadingArgs
- type StopLoadingReply
- type StopScreencastArgs
- type StopScreencastReply
- type TransitionType
- type Unmarshaler
- type Viewport
- type VisualViewport
- type WaitForDebuggerArgs
- type WaitForDebuggerReply
- type WindowOpenReply
Constants ¶
const ( CommandPageAddScriptToEvaluateOnLoad = "Page.addScriptToEvaluateOnLoad" CommandPageAddScriptToEvaluateOnNewDocument = "Page.addScriptToEvaluateOnNewDocument" CommandPageBringToFront = "Page.bringToFront" CommandPageCaptureScreenshot = "Page.captureScreenshot" CommandPageCaptureSnapshot = "Page.captureSnapshot" CommandPageClearDeviceMetricsOverride = "Page.clearDeviceMetricsOverride" CommandPageClearDeviceOrientationOverride = "Page.clearDeviceOrientationOverride" CommandPageClearGeolocationOverride = "Page.clearGeolocationOverride" CommandPageCreateIsolatedWorld = "Page.createIsolatedWorld" CommandPageDeleteCookie = "Page.deleteCookie" CommandPageDisable = "Page.disable" CommandPageEnable = "Page.enable" CommandPageGetAppManifest = "Page.getAppManifest" CommandPageGetInstallabilityErrors = "Page.getInstallabilityErrors" CommandPageGetManifestIcons = "Page.getManifestIcons" CommandPageGetCookies = "Page.getCookies" CommandPageGetFrameTree = "Page.getFrameTree" CommandPageGetLayoutMetrics = "Page.getLayoutMetrics" CommandPageGetResourceContent = "Page.getResourceContent" CommandPageGetResourceTree = "Page.getResourceTree" CommandPageHandleJavaScriptDialog = "Page.handleJavaScriptDialog" CommandPagePrintToPDF = "Page.printToPDF" CommandPageReload = "Page.reload" CommandPageRemoveScriptToEvaluateOnLoad = "Page.removeScriptToEvaluateOnLoad" CommandPageRemoveScriptToEvaluateOnNewDocument = "Page.removeScriptToEvaluateOnNewDocument" CommandPageScreencastFrameAck = "Page.screencastFrameAck" CommandPageSearchInResource = "Page.searchInResource" CommandPageSetAdBlockingEnabled = "Page.setAdBlockingEnabled" CommandPageSetBypassCSP = "Page.setBypassCSP" CommandPageSetDeviceMetricsOverride = "Page.setDeviceMetricsOverride" CommandPageSetDeviceOrientationOverride = "Page.setDeviceOrientationOverride" CommandPageSetFontFamilies = "Page.setFontFamilies" CommandPageSetFontSizes = "Page.setFontSizes" CommandPageSetDocumentContent = "Page.setDocumentContent" CommandPageSetDownloadBehavior = "Page.setDownloadBehavior" CommandPageSetGeolocationOverride = "Page.setGeolocationOverride" CommandPageSetLifecycleEventsEnabled = "Page.setLifecycleEventsEnabled" CommandPageSetTouchEmulationEnabled = "Page.setTouchEmulationEnabled" CommandPageStartScreencast = "Page.startScreencast" CommandPageStopLoading = "Page.stopLoading" CommandPageCrash = "Page.crash" CommandPageClose = "Page.close" CommandPageSetWebLifecycleState = "Page.setWebLifecycleState" CommandPageStopScreencast = "Page.stopScreencast" CommandPageSetProduceCompilationCache = "Page.setProduceCompilationCache" CommandPageAddCompilationCache = "Page.addCompilationCache" CommandPageClearCompilationCache = "Page.clearCompilationCache" CommandPageGenerateTestReport = "Page.generateTestReport" CommandPageWaitForDebugger = "Page.waitForDebugger" CommandPageSetInterceptFileChooserDialog = "Page.setInterceptFileChooserDialog" )
const ( EventPageDomContentEventFired = "Page.domContentEventFired" EventPageFileChooserOpened = "Page.fileChooserOpened" EventPageFrameAttached = "Page.frameAttached" EventPageFrameDetached = "Page.frameDetached" EventPageFrameResized = "Page.frameResized" EventPageFrameStartedLoading = "Page.frameStartedLoading" EventPageFrameStoppedLoading = "Page.frameStoppedLoading" EventPageDownloadWillBegin = "Page.downloadWillBegin" EventPageDownloadProgress = "Page.downloadProgress" EventPageInterstitialHidden = "Page.interstitialHidden" EventPageInterstitialShown = "Page.interstitialShown" EventPageJavascriptDialogClosed = "Page.javascriptDialogClosed" EventPageJavascriptDialogOpening = "Page.javascriptDialogOpening" EventPageLifecycleEvent = "Page.lifecycleEvent" EventPageLoadEventFired = "Page.loadEventFired" EventPageScreencastFrame = "Page.screencastFrame" EventPageScreencastVisibilityChanged = "Page.screencastVisibilityChanged" EventPageWindowOpen = "Page.windowOpen" EventPageCompilationCacheProduced = "Page.compilationCacheProduced" )
Variables ¶
var EventConstants = map[string]Unmarshaler{ EventPageDomContentEventFired: func() json.Unmarshaler { return &DOMContentEventFiredReply{} }, EventPageFileChooserOpened: func() json.Unmarshaler { return &FileChooserOpenedReply{} }, EventPageFrameAttached: func() json.Unmarshaler { return &FrameAttachedReply{} }, EventPageFrameClearedScheduledNavigation: func() json.Unmarshaler { return &FrameClearedScheduledNavigationReply{} }, EventPageFrameDetached: func() json.Unmarshaler { return &FrameDetachedReply{} }, EventPageFrameNavigated: func() json.Unmarshaler { return &FrameNavigatedReply{} }, EventPageFrameResized: func() json.Unmarshaler { return &FrameResizedReply{} }, EventPageFrameRequestedNavigation: func() json.Unmarshaler { return &FrameRequestedNavigationReply{} }, EventPageFrameScheduledNavigation: func() json.Unmarshaler { return &FrameScheduledNavigationReply{} }, EventPageFrameStartedLoading: func() json.Unmarshaler { return &FrameStartedLoadingReply{} }, EventPageFrameStoppedLoading: func() json.Unmarshaler { return &FrameStoppedLoadingReply{} }, EventPageDownloadWillBegin: func() json.Unmarshaler { return &DownloadWillBeginReply{} }, EventPageDownloadProgress: func() json.Unmarshaler { return &DownloadProgressReply{} }, EventPageInterstitialHidden: func() json.Unmarshaler { return &InterstitialHiddenReply{} }, EventPageInterstitialShown: func() json.Unmarshaler { return &InterstitialShownReply{} }, EventPageJavascriptDialogClosed: func() json.Unmarshaler { return &JavascriptDialogClosedReply{} }, EventPageJavascriptDialogOpening: func() json.Unmarshaler { return &JavascriptDialogOpeningReply{} }, EventPageLifecycleEvent: func() json.Unmarshaler { return &LifecycleEventReply{} }, EventPageLoadEventFired: func() json.Unmarshaler { return &LoadEventFiredReply{} }, EventPageNavigatedWithinDocument: func() json.Unmarshaler { return &NavigatedWithinDocumentReply{} }, EventPageScreencastFrame: func() json.Unmarshaler { return &ScreencastFrameReply{} }, EventPageScreencastVisibilityChanged: func() json.Unmarshaler { return &ScreencastVisibilityChangedReply{} }, EventPageWindowOpen: func() json.Unmarshaler { return &WindowOpenReply{} }, EventPageCompilationCacheProduced: func() json.Unmarshaler { return &CompilationCacheProducedReply{} }, }
Functions ¶
func GetEventReply ¶
func GetEventReply(event string) (json.Unmarshaler, bool)
Types ¶
type AddCompilationCacheArgs ¶
type AddCompilationCacheArgs struct { URL string `json:"url"` // No description. Data []byte `json:"data"` // Base64-encoded data }
AddCompilationCacheArgs represents the arguments for AddCompilationCache in the Page domain.
func (*AddCompilationCacheArgs) MarshalJSON ¶
func (a *AddCompilationCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for AddCompilationCache in the Page domain.
func (*AddCompilationCacheArgs) UnmarshalJSON ¶
func (a *AddCompilationCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddCompilationCache in the Page domain.
type AddCompilationCacheReply ¶
type AddCompilationCacheReply struct { }
AddCompilationCacheReply represents the return values for AddCompilationCache in the Page domain.
func (*AddCompilationCacheReply) GetFrameID ¶
func (a *AddCompilationCacheReply) GetFrameID() string
AddCompilationCacheReply returns the FrameID value for AddCompilationCache in the Page domain.
func (*AddCompilationCacheReply) MatchFrameID ¶
func (a *AddCompilationCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
AddCompilationCacheReply returns whether or not the FrameID matches the reply value for AddCompilationCache in the Page domain.
func (*AddCompilationCacheReply) UnmarshalJSON ¶
func (a *AddCompilationCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddCompilationCache in the Page domain.
type AddScriptToEvaluateOnLoadArgs ¶
type AddScriptToEvaluateOnLoadArgs struct {
ScriptSource string `json:"scriptSource"` // No description.
}
AddScriptToEvaluateOnLoadArgs represents the arguments for AddScriptToEvaluateOnLoad in the Page domain.
func (*AddScriptToEvaluateOnLoadArgs) MarshalJSON ¶
func (a *AddScriptToEvaluateOnLoadArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for AddScriptToEvaluateOnLoad in the Page domain.
func (*AddScriptToEvaluateOnLoadArgs) UnmarshalJSON ¶
func (a *AddScriptToEvaluateOnLoadArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddScriptToEvaluateOnLoad in the Page domain.
type AddScriptToEvaluateOnLoadReply ¶
type AddScriptToEvaluateOnLoadReply struct {
Identifier ScriptIdentifier `json:"identifier"` // Identifier of the added script.
}
AddScriptToEvaluateOnLoadReply represents the return values for AddScriptToEvaluateOnLoad in the Page domain.
func (*AddScriptToEvaluateOnLoadReply) GetFrameID ¶
func (a *AddScriptToEvaluateOnLoadReply) GetFrameID() string
AddScriptToEvaluateOnLoadReply returns the FrameID value for AddScriptToEvaluateOnLoad in the Page domain.
func (*AddScriptToEvaluateOnLoadReply) MatchFrameID ¶
func (a *AddScriptToEvaluateOnLoadReply) MatchFrameID(frameID string, m []byte) (bool, error)
AddScriptToEvaluateOnLoadReply returns whether or not the FrameID matches the reply value for AddScriptToEvaluateOnLoad in the Page domain.
func (*AddScriptToEvaluateOnLoadReply) UnmarshalJSON ¶
func (a *AddScriptToEvaluateOnLoadReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddScriptToEvaluateOnLoad in the Page domain.
type AddScriptToEvaluateOnNewDocumentArgs ¶
type AddScriptToEvaluateOnNewDocumentArgs struct { Source string `json:"source"` // No description. // WorldName 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. // // Note: This property is experimental. WorldName string `json:"worldName,omitempty"` }
AddScriptToEvaluateOnNewDocumentArgs represents the arguments for AddScriptToEvaluateOnNewDocument in the Page domain.
func (*AddScriptToEvaluateOnNewDocumentArgs) MarshalJSON ¶
func (a *AddScriptToEvaluateOnNewDocumentArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for AddScriptToEvaluateOnNewDocument in the Page domain.
func (*AddScriptToEvaluateOnNewDocumentArgs) UnmarshalJSON ¶
func (a *AddScriptToEvaluateOnNewDocumentArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddScriptToEvaluateOnNewDocument in the Page domain.
type AddScriptToEvaluateOnNewDocumentReply ¶
type AddScriptToEvaluateOnNewDocumentReply struct {
Identifier ScriptIdentifier `json:"identifier"` // Identifier of the added script.
}
AddScriptToEvaluateOnNewDocumentReply represents the return values for AddScriptToEvaluateOnNewDocument in the Page domain.
func (*AddScriptToEvaluateOnNewDocumentReply) GetFrameID ¶
func (a *AddScriptToEvaluateOnNewDocumentReply) GetFrameID() string
AddScriptToEvaluateOnNewDocumentReply returns the FrameID value for AddScriptToEvaluateOnNewDocument in the Page domain.
func (*AddScriptToEvaluateOnNewDocumentReply) MatchFrameID ¶
func (a *AddScriptToEvaluateOnNewDocumentReply) MatchFrameID(frameID string, m []byte) (bool, error)
AddScriptToEvaluateOnNewDocumentReply returns whether or not the FrameID matches the reply value for AddScriptToEvaluateOnNewDocument in the Page domain.
func (*AddScriptToEvaluateOnNewDocumentReply) UnmarshalJSON ¶
func (a *AddScriptToEvaluateOnNewDocumentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for AddScriptToEvaluateOnNewDocument in the Page domain.
type AppManifestError ¶
type AppManifestError struct { Message string `json:"message"` // Error message. Critical int `json:"critical"` // If criticial, this is a non-recoverable parse error. Line int `json:"line"` // Error line. Column int `json:"column"` // Error column. }
AppManifestError Error while paring app manifest.
type AppManifestParsedProperties ¶
type AppManifestParsedProperties struct {
Scope string `json:"scope"` // Computed scope value
}
AppManifestParsedProperties Parsed app manifest properties.
Note: This type is experimental.
type BringToFrontArgs ¶
type BringToFrontArgs struct { }
BringToFrontArgs represents the arguments for BringToFront in the Page domain.
func (*BringToFrontArgs) MarshalJSON ¶
func (a *BringToFrontArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for BringToFront in the Page domain.
func (*BringToFrontArgs) UnmarshalJSON ¶
func (a *BringToFrontArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for BringToFront in the Page domain.
type BringToFrontReply ¶
type BringToFrontReply struct { }
BringToFrontReply represents the return values for BringToFront in the Page domain.
func (*BringToFrontReply) GetFrameID ¶
func (a *BringToFrontReply) GetFrameID() string
BringToFrontReply returns the FrameID value for BringToFront in the Page domain.
func (*BringToFrontReply) MatchFrameID ¶
func (a *BringToFrontReply) MatchFrameID(frameID string, m []byte) (bool, error)
BringToFrontReply returns whether or not the FrameID matches the reply value for BringToFront in the Page domain.
func (*BringToFrontReply) UnmarshalJSON ¶
func (a *BringToFrontReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for BringToFront in the Page domain.
type CaptureScreenshotArgs ¶
type CaptureScreenshotArgs struct { // Format Image compression format (defaults to png). // // Values: "jpeg", "png". Format string `json:"format,omitempty"` Quality int `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 Capture the screenshot from the surface, rather than // the view. Defaults to true. // // Note: This property is experimental. FromSurface bool `json:"fromSurface,omitempty"` }
CaptureScreenshotArgs represents the arguments for CaptureScreenshot in the Page domain.
func (*CaptureScreenshotArgs) MarshalJSON ¶
func (a *CaptureScreenshotArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CaptureScreenshot in the Page domain.
func (*CaptureScreenshotArgs) UnmarshalJSON ¶
func (a *CaptureScreenshotArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CaptureScreenshot in the Page domain.
type CaptureScreenshotReply ¶
type CaptureScreenshotReply struct {
Data []byte `json:"data"` // Base64-encoded image data.
}
CaptureScreenshotReply represents the return values for CaptureScreenshot in the Page domain.
func (*CaptureScreenshotReply) GetFrameID ¶
func (a *CaptureScreenshotReply) GetFrameID() string
CaptureScreenshotReply returns the FrameID value for CaptureScreenshot in the Page domain.
func (*CaptureScreenshotReply) MatchFrameID ¶
func (a *CaptureScreenshotReply) MatchFrameID(frameID string, m []byte) (bool, error)
CaptureScreenshotReply returns whether or not the FrameID matches the reply value for CaptureScreenshot in the Page domain.
func (*CaptureScreenshotReply) UnmarshalJSON ¶
func (a *CaptureScreenshotReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CaptureScreenshot in the Page domain.
type CaptureSnapshotArgs ¶
type CaptureSnapshotArgs struct { // Format Format (defaults to mhtml). // // Values: "mhtml". Format string `json:"format,omitempty"` }
CaptureSnapshotArgs represents the arguments for CaptureSnapshot in the Page domain.
func (*CaptureSnapshotArgs) MarshalJSON ¶
func (a *CaptureSnapshotArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CaptureSnapshot in the Page domain.
func (*CaptureSnapshotArgs) UnmarshalJSON ¶
func (a *CaptureSnapshotArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CaptureSnapshot in the Page domain.
type CaptureSnapshotReply ¶
type CaptureSnapshotReply struct {
Data string `json:"data"` // Serialized page data.
}
CaptureSnapshotReply represents the return values for CaptureSnapshot in the Page domain.
func (*CaptureSnapshotReply) GetFrameID ¶
func (a *CaptureSnapshotReply) GetFrameID() string
CaptureSnapshotReply returns the FrameID value for CaptureSnapshot in the Page domain.
func (*CaptureSnapshotReply) MatchFrameID ¶
func (a *CaptureSnapshotReply) MatchFrameID(frameID string, m []byte) (bool, error)
CaptureSnapshotReply returns whether or not the FrameID matches the reply value for CaptureSnapshot in the Page domain.
func (*CaptureSnapshotReply) UnmarshalJSON ¶
func (a *CaptureSnapshotReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CaptureSnapshot in the Page domain.
type ClearCompilationCacheArgs ¶
type ClearCompilationCacheArgs struct { }
ClearCompilationCacheArgs represents the arguments for ClearCompilationCache in the Page domain.
func (*ClearCompilationCacheArgs) MarshalJSON ¶
func (a *ClearCompilationCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ClearCompilationCache in the Page domain.
func (*ClearCompilationCacheArgs) UnmarshalJSON ¶
func (a *ClearCompilationCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearCompilationCache in the Page domain.
type ClearCompilationCacheReply ¶
type ClearCompilationCacheReply struct { }
ClearCompilationCacheReply represents the return values for ClearCompilationCache in the Page domain.
func (*ClearCompilationCacheReply) GetFrameID ¶
func (a *ClearCompilationCacheReply) GetFrameID() string
ClearCompilationCacheReply returns the FrameID value for ClearCompilationCache in the Page domain.
func (*ClearCompilationCacheReply) MatchFrameID ¶
func (a *ClearCompilationCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
ClearCompilationCacheReply returns whether or not the FrameID matches the reply value for ClearCompilationCache in the Page domain.
func (*ClearCompilationCacheReply) UnmarshalJSON ¶
func (a *ClearCompilationCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearCompilationCache in the Page domain.
type ClientNavigationReason ¶
type ClientNavigationReason string
ClientNavigationReason
Note: This type is experimental.
const ()
ClientNavigationReason as enums.
func (ClientNavigationReason) String ¶
func (e ClientNavigationReason) String() string
func (ClientNavigationReason) Valid ¶
func (e ClientNavigationReason) Valid() bool
type CloseArgs ¶
type CloseArgs struct { }
CloseArgs represents the arguments for Close in the Page domain.
func (*CloseArgs) MarshalJSON ¶
Marshall the byte array into a return value for Close in the Page domain.
func (*CloseArgs) UnmarshalJSON ¶
Unmarshal the byte array into a return value for Close in the Page domain.
type CloseReply ¶
type CloseReply struct { }
CloseReply represents the return values for Close in the Page domain.
func (*CloseReply) GetFrameID ¶
func (a *CloseReply) GetFrameID() string
CloseReply returns the FrameID value for Close in the Page domain.
func (*CloseReply) MatchFrameID ¶
func (a *CloseReply) MatchFrameID(frameID string, m []byte) (bool, error)
CloseReply returns whether or not the FrameID matches the reply value for Close in the Page domain.
func (*CloseReply) UnmarshalJSON ¶
func (a *CloseReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Close in the Page domain.
type CompilationCacheProducedReply ¶
type CompilationCacheProducedReply struct { URL string `json:"url"` // No description. Data []byte `json:"data"` // Base64-encoded data }
CompilationCacheProducedReply is the reply for CompilationCacheProduced events.
func (*CompilationCacheProducedReply) GetFrameID ¶
func (a *CompilationCacheProducedReply) GetFrameID() string
CompilationCacheProducedReply returns the FrameID for CompilationCacheProduced in the Page domain.
func (*CompilationCacheProducedReply) MatchFrameID ¶
func (a *CompilationCacheProducedReply) MatchFrameID(frameID string, m []byte) (bool, error)
CompilationCacheProducedReply returns whether or not the FrameID matches the reply value for CompilationCacheProduced in the Page domain.
func (*CompilationCacheProducedReply) UnmarshalJSON ¶
func (a *CompilationCacheProducedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CompilationCacheProduced in the Page domain.
type CrashArgs ¶
type CrashArgs struct { }
CrashArgs represents the arguments for Crash in the Page domain.
func (*CrashArgs) MarshalJSON ¶
Marshall the byte array into a return value for Crash in the Page domain.
func (*CrashArgs) UnmarshalJSON ¶
Unmarshal the byte array into a return value for Crash in the Page domain.
type CrashReply ¶
type CrashReply struct { }
CrashReply represents the return values for Crash in the Page domain.
func (*CrashReply) GetFrameID ¶
func (a *CrashReply) GetFrameID() string
CrashReply returns the FrameID value for Crash in the Page domain.
func (*CrashReply) MatchFrameID ¶
func (a *CrashReply) MatchFrameID(frameID string, m []byte) (bool, error)
CrashReply returns whether or not the FrameID matches the reply value for Crash in the Page domain.
func (*CrashReply) UnmarshalJSON ¶
func (a *CrashReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Crash in the Page domain.
type CreateIsolatedWorldArgs ¶
type CreateIsolatedWorldArgs struct { FrameID shared.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. }
CreateIsolatedWorldArgs represents the arguments for CreateIsolatedWorld in the Page domain.
func (*CreateIsolatedWorldArgs) MarshalJSON ¶
func (a *CreateIsolatedWorldArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CreateIsolatedWorld in the Page domain.
func (*CreateIsolatedWorldArgs) UnmarshalJSON ¶
func (a *CreateIsolatedWorldArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CreateIsolatedWorld in the Page domain.
type CreateIsolatedWorldReply ¶
type CreateIsolatedWorldReply struct {
ExecutionContextID runtime.ExecutionContextID `json:"executionContextId"` // Execution context of the isolated world.
}
CreateIsolatedWorldReply represents the return values for CreateIsolatedWorld in the Page domain.
func (*CreateIsolatedWorldReply) GetFrameID ¶
func (a *CreateIsolatedWorldReply) GetFrameID() string
CreateIsolatedWorldReply returns the FrameID value for CreateIsolatedWorld in the Page domain.
func (*CreateIsolatedWorldReply) MatchFrameID ¶
func (a *CreateIsolatedWorldReply) MatchFrameID(frameID string, m []byte) (bool, error)
CreateIsolatedWorldReply returns whether or not the FrameID matches the reply value for CreateIsolatedWorld in the Page domain.
func (*CreateIsolatedWorldReply) UnmarshalJSON ¶
func (a *CreateIsolatedWorldReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CreateIsolatedWorld in the Page domain.
type DOMContentEventFiredReply ¶
type DOMContentEventFiredReply struct {
Timestamp network.MonotonicTime `json:"timestamp"` // No description.
}
DOMContentEventFiredReply is the reply for DOMContentEventFired events.
func (*DOMContentEventFiredReply) GetFrameID ¶
func (a *DOMContentEventFiredReply) GetFrameID() string
DOMContentEventFiredReply returns the FrameID for DOMContentEventFired in the Page domain.
func (*DOMContentEventFiredReply) MatchFrameID ¶
func (a *DOMContentEventFiredReply) MatchFrameID(frameID string, m []byte) (bool, error)
DOMContentEventFiredReply returns whether or not the FrameID matches the reply value for DOMContentEventFired in the Page domain.
func (*DOMContentEventFiredReply) UnmarshalJSON ¶
func (a *DOMContentEventFiredReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DOMContentEventFired in the Page domain.
type DialogType ¶
type DialogType string
DialogType Javascript dialog type.
const ( DialogTypeNotSet DialogType = "" DialogTypeAlert DialogType = "alert" DialogTypeConfirm DialogType = "confirm" DialogTypePrompt DialogType = "prompt" DialogTypeBeforeunload DialogType = "beforeunload" )
DialogType as enums.
func (DialogType) String ¶
func (e DialogType) String() string
func (DialogType) Valid ¶
func (e DialogType) Valid() bool
type DisableArgs ¶
type DisableArgs struct { }
DisableArgs represents the arguments for Disable in the Page domain.
func (*DisableArgs) MarshalJSON ¶
func (a *DisableArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Disable in the Page domain.
func (*DisableArgs) UnmarshalJSON ¶
func (a *DisableArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Disable in the Page domain.
type DisableReply ¶
type DisableReply struct { }
DisableReply represents the return values for Disable in the Page domain.
func (*DisableReply) GetFrameID ¶
func (a *DisableReply) GetFrameID() string
DisableReply returns the FrameID value for Disable in the Page domain.
func (*DisableReply) MatchFrameID ¶
func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)
DisableReply returns whether or not the FrameID matches the reply value for Disable in the Page domain.
func (*DisableReply) UnmarshalJSON ¶
func (a *DisableReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Disable in the Page domain.
type DownloadProgressReply ¶
type DownloadProgressReply struct { GUID string `json:"guid"` // Global unique identifier of the download. TotalBytes float64 `json:"totalBytes"` // Total expected bytes to download. ReceivedBytes float64 `json:"receivedBytes"` // Total bytes received. // State Download status. // // Values: "inProgress", "completed", "canceled". State string `json:"state"` }
DownloadProgressReply is the reply for DownloadProgress events.
func (*DownloadProgressReply) GetFrameID ¶
func (a *DownloadProgressReply) GetFrameID() string
DownloadProgressReply returns the FrameID for DownloadProgress in the Page domain.
func (*DownloadProgressReply) MatchFrameID ¶
func (a *DownloadProgressReply) MatchFrameID(frameID string, m []byte) (bool, error)
DownloadProgressReply returns whether or not the FrameID matches the reply value for DownloadProgress in the Page domain.
func (*DownloadProgressReply) UnmarshalJSON ¶
func (a *DownloadProgressReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DownloadProgress in the Page domain.
type DownloadWillBeginReply ¶
type DownloadWillBeginReply struct { FrameID shared.FrameID `json:"frameId"` // Id of the frame that caused download to begin. GUID string `json:"guid"` // Global unique identifier of the download. URL string `json:"url"` // URL of the resource being downloaded. }
DownloadWillBeginReply is the reply for DownloadWillBegin events.
func (*DownloadWillBeginReply) GetFrameID ¶
func (a *DownloadWillBeginReply) GetFrameID() string
DownloadWillBeginReply returns the FrameID for DownloadWillBegin in the Page domain.
func (*DownloadWillBeginReply) MatchFrameID ¶
func (a *DownloadWillBeginReply) MatchFrameID(frameID string, m []byte) (bool, error)
DownloadWillBeginReply returns whether or not the FrameID matches the reply value for DownloadWillBegin in the Page domain.
func (*DownloadWillBeginReply) UnmarshalJSON ¶
func (a *DownloadWillBeginReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DownloadWillBegin in the Page domain.
type EnableArgs ¶
type EnableArgs struct { }
EnableArgs represents the arguments for Enable in the Page domain.
func (*EnableArgs) MarshalJSON ¶
func (a *EnableArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Enable in the Page domain.
func (*EnableArgs) UnmarshalJSON ¶
func (a *EnableArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Enable in the Page domain.
type EnableReply ¶
type EnableReply struct { }
EnableReply represents the return values for Enable in the Page domain.
func (*EnableReply) GetFrameID ¶
func (a *EnableReply) GetFrameID() string
EnableReply returns the FrameID value for Enable in the Page domain.
func (*EnableReply) MatchFrameID ¶
func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)
EnableReply returns whether or not the FrameID matches the reply value for Enable in the Page domain.
func (*EnableReply) UnmarshalJSON ¶
func (a *EnableReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Enable in the Page domain.
type FileChooserOpenedReply ¶
type FileChooserOpenedReply struct { // FrameID Id of the frame containing input node. // // Note: This property is experimental. FrameID shared.FrameID `json:"frameId"` // BackendNodeID Input node id. // // Note: This property is experimental. BackendNodeID dom.BackendNodeID `json:"backendNodeId"` // Mode Input mode. // // Values: "selectSingle", "selectMultiple". Mode string `json:"mode"` }
FileChooserOpenedReply is the reply for FileChooserOpened events.
func (*FileChooserOpenedReply) GetFrameID ¶
func (a *FileChooserOpenedReply) GetFrameID() string
FileChooserOpenedReply returns the FrameID for FileChooserOpened in the Page domain.
func (*FileChooserOpenedReply) MatchFrameID ¶
func (a *FileChooserOpenedReply) MatchFrameID(frameID string, m []byte) (bool, error)
FileChooserOpenedReply returns whether or not the FrameID matches the reply value for FileChooserOpened in the Page domain.
func (*FileChooserOpenedReply) UnmarshalJSON ¶
func (a *FileChooserOpenedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FileChooserOpened in the Page domain.
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.
Note: This type is experimental.
type FontSizes ¶
type FontSizes struct { Standard int `json:"standard,omitempty"` // Default standard font size. Fixed int `json:"fixed,omitempty"` // Default fixed font size. }
FontSizes Default font sizes.
Note: This type is experimental.
type Frame ¶
type Frame struct { ID shared.FrameID `json:"id"` // Frame unique identifier. ParentID shared.FrameID `json:"parentId,omitempty"` // Parent frame identifier. LoaderID network.LoaderID `json:"loaderId"` // Identifier of the loader associated with this frame. Name string `json:"name,omitempty"` // Frame's name as specified in the tag. URL string `json:"url"` // Frame document's URL without fragment. // URLFragment Frame document's URL fragment including the '#'. // // Note: This property is experimental. URLFragment string `json:"urlFragment,omitempty"` SecurityOrigin string `json:"securityOrigin"` // Frame document's security origin. MimeType string `json:"mimeType"` // Frame document's mimeType as determined by the browser. // UnreachableURL If the frame failed to load, this contains the URL // that could not be loaded. Note that unlike url above, this URL may // contain a fragment. // // Note: This property is experimental. UnreachableURL string `json:"unreachableUrl,omitempty"` }
Frame Information about the Frame on the page.
type FrameAttachedReply ¶
type FrameAttachedReply struct { FrameID shared.FrameID `json:"frameId"` // Id of the frame that has been attached. ParentFrameID shared.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. }
FrameAttachedReply is the reply for FrameAttached events.
func (*FrameAttachedReply) GetFrameID ¶
func (a *FrameAttachedReply) GetFrameID() string
FrameAttachedReply returns the FrameID for FrameAttached in the Page domain.
func (*FrameAttachedReply) MatchFrameID ¶
func (a *FrameAttachedReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameAttachedReply returns whether or not the FrameID matches the reply value for FrameAttached in the Page domain.
func (*FrameAttachedReply) UnmarshalJSON ¶
func (a *FrameAttachedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameAttached in the Page domain.
type FrameClearedScheduledNavigationReply ¶
type FrameClearedScheduledNavigationReply struct {
}FrameClearedScheduledNavigationReply is the reply for FrameClearedScheduledNavigation events.
func (*FrameClearedScheduledNavigationReply) GetFrameID ¶
func (a *FrameClearedScheduledNavigationReply) GetFrameID() string
FrameClearedScheduledNavigationReply returns the FrameID for FrameClearedScheduledNavigation in the Page domain.
func (*FrameClearedScheduledNavigationReply) MatchFrameID ¶
func (a *FrameClearedScheduledNavigationReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameClearedScheduledNavigationReply returns whether or not the FrameID matches the reply value for FrameClearedScheduledNavigation in the Page domain.
func (*FrameClearedScheduledNavigationReply) UnmarshalJSON ¶
func (a *FrameClearedScheduledNavigationReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameClearedScheduledNavigation in the Page domain.
type FrameDetachedReply ¶
type FrameDetachedReply struct {
FrameID shared.FrameID `json:"frameId"` // Id of the frame that has been detached.
}
FrameDetachedReply is the reply for FrameDetached events.
func (*FrameDetachedReply) GetFrameID ¶
func (a *FrameDetachedReply) GetFrameID() string
FrameDetachedReply returns the FrameID for FrameDetached in the Page domain.
func (*FrameDetachedReply) MatchFrameID ¶
func (a *FrameDetachedReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameDetachedReply returns whether or not the FrameID matches the reply value for FrameDetached in the Page domain.
func (*FrameDetachedReply) UnmarshalJSON ¶
func (a *FrameDetachedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameDetached in the Page domain.
type FrameNavigatedReply ¶
type FrameNavigatedReply struct {
}FrameNavigatedReply is the reply for FrameNavigated events.
func (*FrameNavigatedReply) GetFrameID ¶
func (a *FrameNavigatedReply) GetFrameID() string
FrameNavigatedReply returns the FrameID for FrameNavigated in the Page domain.
func (*FrameNavigatedReply) MatchFrameID ¶
func (a *FrameNavigatedReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameNavigatedReply returns whether or not the FrameID matches the reply value for FrameNavigated in the Page domain.
func (*FrameNavigatedReply) UnmarshalJSON ¶
func (a *FrameNavigatedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameNavigated in the Page domain.
type FrameRequestedNavigationReply ¶
type FrameRequestedNavigationReply struct {}
FrameRequestedNavigationReply is the reply for FrameRequestedNavigation events.
func (*FrameRequestedNavigationReply) GetFrameID ¶
func (a *FrameRequestedNavigationReply) GetFrameID() string
FrameRequestedNavigationReply returns the FrameID for FrameRequestedNavigation in the Page domain.
func (*FrameRequestedNavigationReply) MatchFrameID ¶
func (a *FrameRequestedNavigationReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameRequestedNavigationReply returns whether or not the FrameID matches the reply value for FrameRequestedNavigation in the Page domain.
func (*FrameRequestedNavigationReply) UnmarshalJSON ¶
func (a *FrameRequestedNavigationReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameRequestedNavigation in the Page domain.
type FrameResizedReply ¶
type FrameResizedReply struct { }
FrameResizedReply is the reply for FrameResized events.
func (*FrameResizedReply) GetFrameID ¶
func (a *FrameResizedReply) GetFrameID() string
FrameResizedReply returns the FrameID for FrameResized in the Page domain.
func (*FrameResizedReply) MatchFrameID ¶
func (a *FrameResizedReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameResizedReply returns whether or not the FrameID matches the reply value for FrameResized in the Page domain.
func (*FrameResizedReply) UnmarshalJSON ¶
func (a *FrameResizedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameResized in the Page domain.
type FrameResource ¶
type FrameResource struct { URL string `json:"url"` // Resource URL. Type shared.ResourceType `json:"type"` // Type of this resource. MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser. LastModified *shared.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.
Note: This type is experimental.
type FrameResourceTree ¶
type FrameResourceTree struct { Frame 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.
Note: This type is experimental.
type FrameScheduledNavigationReply ¶
type FrameScheduledNavigationReply struct {}
FrameScheduledNavigationReply is the reply for FrameScheduledNavigation events.
func (*FrameScheduledNavigationReply) GetFrameID ¶
func (a *FrameScheduledNavigationReply) GetFrameID() string
FrameScheduledNavigationReply returns the FrameID for FrameScheduledNavigation in the Page domain.
func (*FrameScheduledNavigationReply) MatchFrameID ¶
func (a *FrameScheduledNavigationReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameScheduledNavigationReply returns whether or not the FrameID matches the reply value for FrameScheduledNavigation in the Page domain.
func (*FrameScheduledNavigationReply) UnmarshalJSON ¶
func (a *FrameScheduledNavigationReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameScheduledNavigation in the Page domain.
type FrameStartedLoadingReply ¶
type FrameStartedLoadingReply struct {
FrameID shared.FrameID `json:"frameId"` // Id of the frame that has started loading.
}
FrameStartedLoadingReply is the reply for FrameStartedLoading events.
func (*FrameStartedLoadingReply) GetFrameID ¶
func (a *FrameStartedLoadingReply) GetFrameID() string
FrameStartedLoadingReply returns the FrameID for FrameStartedLoading in the Page domain.
func (*FrameStartedLoadingReply) MatchFrameID ¶
func (a *FrameStartedLoadingReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameStartedLoadingReply returns whether or not the FrameID matches the reply value for FrameStartedLoading in the Page domain.
func (*FrameStartedLoadingReply) UnmarshalJSON ¶
func (a *FrameStartedLoadingReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameStartedLoading in the Page domain.
type FrameStoppedLoadingReply ¶
type FrameStoppedLoadingReply struct {
FrameID shared.FrameID `json:"frameId"` // Id of the frame that has stopped loading.
}
FrameStoppedLoadingReply is the reply for FrameStoppedLoading events.
func (*FrameStoppedLoadingReply) GetFrameID ¶
func (a *FrameStoppedLoadingReply) GetFrameID() string
FrameStoppedLoadingReply returns the FrameID for FrameStoppedLoading in the Page domain.
func (*FrameStoppedLoadingReply) MatchFrameID ¶
func (a *FrameStoppedLoadingReply) MatchFrameID(frameID string, m []byte) (bool, error)
FrameStoppedLoadingReply returns whether or not the FrameID matches the reply value for FrameStoppedLoading in the Page domain.
func (*FrameStoppedLoadingReply) UnmarshalJSON ¶
func (a *FrameStoppedLoadingReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for FrameStoppedLoading in the Page domain.
type FrameTree ¶
type FrameTree struct { Frame Frame `json:"frame"` // Frame information for this tree item. ChildFrames *[]FrameTree `json:"childFrames,omitempty"` // Child frames. }
FrameTree Information about the Frame hierarchy.
type GenerateTestReportArgs ¶
type GenerateTestReportArgs 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. }
GenerateTestReportArgs represents the arguments for GenerateTestReport in the Page domain.
func (*GenerateTestReportArgs) MarshalJSON ¶
func (a *GenerateTestReportArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GenerateTestReport in the Page domain.
func (*GenerateTestReportArgs) UnmarshalJSON ¶
func (a *GenerateTestReportArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GenerateTestReport in the Page domain.
type GenerateTestReportReply ¶
type GenerateTestReportReply struct { }
GenerateTestReportReply represents the return values for GenerateTestReport in the Page domain.
func (*GenerateTestReportReply) GetFrameID ¶
func (a *GenerateTestReportReply) GetFrameID() string
GenerateTestReportReply returns the FrameID value for GenerateTestReport in the Page domain.
func (*GenerateTestReportReply) MatchFrameID ¶
func (a *GenerateTestReportReply) MatchFrameID(frameID string, m []byte) (bool, error)
GenerateTestReportReply returns whether or not the FrameID matches the reply value for GenerateTestReport in the Page domain.
func (*GenerateTestReportReply) UnmarshalJSON ¶
func (a *GenerateTestReportReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GenerateTestReport in the Page domain.
type GetAppManifestArgs ¶
type GetAppManifestArgs struct { }
GetAppManifestArgs represents the arguments for GetAppManifest in the Page domain.
func (*GetAppManifestArgs) MarshalJSON ¶
func (a *GetAppManifestArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetAppManifest in the Page domain.
func (*GetAppManifestArgs) UnmarshalJSON ¶
func (a *GetAppManifestArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetAppManifest in the Page domain.
type GetAppManifestReply ¶
type GetAppManifestReply struct { URL string `json:"url"` // Manifest location. Errors []AppManifestError `json:"errors"` // No description. Data string `json:"data,omitempty"` // Manifest content. // Parsed Parsed manifest properties // // Note: This property is experimental. Parsed *AppManifestParsedProperties `json:"parsed,omitempty"` }
GetAppManifestReply represents the return values for GetAppManifest in the Page domain.
func (*GetAppManifestReply) GetFrameID ¶
func (a *GetAppManifestReply) GetFrameID() string
GetAppManifestReply returns the FrameID value for GetAppManifest in the Page domain.
func (*GetAppManifestReply) MatchFrameID ¶
func (a *GetAppManifestReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetAppManifestReply returns whether or not the FrameID matches the reply value for GetAppManifest in the Page domain.
func (*GetAppManifestReply) UnmarshalJSON ¶
func (a *GetAppManifestReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetAppManifest in the Page domain.
type GetFrameTreeArgs ¶
type GetFrameTreeArgs struct { }
GetFrameTreeArgs represents the arguments for GetFrameTree in the Page domain.
func (*GetFrameTreeArgs) MarshalJSON ¶
func (a *GetFrameTreeArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetFrameTree in the Page domain.
func (*GetFrameTreeArgs) UnmarshalJSON ¶
func (a *GetFrameTreeArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetFrameTree in the Page domain.
type GetFrameTreeReply ¶
type GetFrameTreeReply struct {
FrameTree FrameTree `json:"frameTree"` // Present frame tree structure.
}
GetFrameTreeReply represents the return values for GetFrameTree in the Page domain.
func (*GetFrameTreeReply) GetFrameID ¶
func (a *GetFrameTreeReply) GetFrameID() string
GetFrameTreeReply returns the FrameID value for GetFrameTree in the Page domain.
func (*GetFrameTreeReply) MatchFrameID ¶
func (a *GetFrameTreeReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetFrameTreeReply returns whether or not the FrameID matches the reply value for GetFrameTree in the Page domain.
func (*GetFrameTreeReply) UnmarshalJSON ¶
func (a *GetFrameTreeReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetFrameTree in the Page domain.
type GetInstallabilityErrorsArgs ¶
type GetInstallabilityErrorsArgs struct { }
GetInstallabilityErrorsArgs represents the arguments for GetInstallabilityErrors in the Page domain.
func (*GetInstallabilityErrorsArgs) MarshalJSON ¶
func (a *GetInstallabilityErrorsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetInstallabilityErrors in the Page domain.
func (*GetInstallabilityErrorsArgs) UnmarshalJSON ¶
func (a *GetInstallabilityErrorsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetInstallabilityErrors in the Page domain.
type GetInstallabilityErrorsReply ¶
type GetInstallabilityErrorsReply struct {
InstallabilityErrors []InstallabilityError `json:"installabilityErrors"` // No description.
}
GetInstallabilityErrorsReply represents the return values for GetInstallabilityErrors in the Page domain.
func (*GetInstallabilityErrorsReply) GetFrameID ¶
func (a *GetInstallabilityErrorsReply) GetFrameID() string
GetInstallabilityErrorsReply returns the FrameID value for GetInstallabilityErrors in the Page domain.
func (*GetInstallabilityErrorsReply) MatchFrameID ¶
func (a *GetInstallabilityErrorsReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetInstallabilityErrorsReply returns whether or not the FrameID matches the reply value for GetInstallabilityErrors in the Page domain.
func (*GetInstallabilityErrorsReply) UnmarshalJSON ¶
func (a *GetInstallabilityErrorsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetInstallabilityErrors in the Page domain.
type GetLayoutMetricsArgs ¶
type GetLayoutMetricsArgs struct { }
GetLayoutMetricsArgs represents the arguments for GetLayoutMetrics in the Page domain.
func (*GetLayoutMetricsArgs) MarshalJSON ¶
func (a *GetLayoutMetricsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetLayoutMetrics in the Page domain.
func (*GetLayoutMetricsArgs) UnmarshalJSON ¶
func (a *GetLayoutMetricsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetLayoutMetrics in the Page domain.
type GetLayoutMetricsReply ¶
type GetLayoutMetricsReply struct { LayoutViewport LayoutViewport `json:"layoutViewport"` // Metrics relating to the layout viewport. VisualViewport VisualViewport `json:"visualViewport"` // Metrics relating to the visual viewport. ContentSize dom.Rect `json:"contentSize"` // Size of scrollable area. }
GetLayoutMetricsReply represents the return values for GetLayoutMetrics in the Page domain.
func (*GetLayoutMetricsReply) GetFrameID ¶
func (a *GetLayoutMetricsReply) GetFrameID() string
GetLayoutMetricsReply returns the FrameID value for GetLayoutMetrics in the Page domain.
func (*GetLayoutMetricsReply) MatchFrameID ¶
func (a *GetLayoutMetricsReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetLayoutMetricsReply returns whether or not the FrameID matches the reply value for GetLayoutMetrics in the Page domain.
func (*GetLayoutMetricsReply) UnmarshalJSON ¶
func (a *GetLayoutMetricsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetLayoutMetrics in the Page domain.
type GetManifestIconsArgs ¶
type GetManifestIconsArgs struct { }
GetManifestIconsArgs represents the arguments for GetManifestIcons in the Page domain.
func (*GetManifestIconsArgs) MarshalJSON ¶
func (a *GetManifestIconsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetManifestIcons in the Page domain.
func (*GetManifestIconsArgs) UnmarshalJSON ¶
func (a *GetManifestIconsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetManifestIcons in the Page domain.
type GetManifestIconsReply ¶
type GetManifestIconsReply struct {
PrimaryIcon string `json:"primaryIcon,omitempty"` // No description.
}
GetManifestIconsReply represents the return values for GetManifestIcons in the Page domain.
func (*GetManifestIconsReply) GetFrameID ¶
func (a *GetManifestIconsReply) GetFrameID() string
GetManifestIconsReply returns the FrameID value for GetManifestIcons in the Page domain.
func (*GetManifestIconsReply) MatchFrameID ¶
func (a *GetManifestIconsReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetManifestIconsReply returns whether or not the FrameID matches the reply value for GetManifestIcons in the Page domain.
func (*GetManifestIconsReply) UnmarshalJSON ¶
func (a *GetManifestIconsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetManifestIcons in the Page domain.
type GetNavigationHistoryArgs ¶
type GetNavigationHistoryArgs struct { }
GetNavigationHistoryArgs represents the arguments for GetNavigationHistory in the Page domain.
func (*GetNavigationHistoryArgs) MarshalJSON ¶
func (a *GetNavigationHistoryArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetNavigationHistory in the Page domain.
func (*GetNavigationHistoryArgs) UnmarshalJSON ¶
func (a *GetNavigationHistoryArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetNavigationHistory in the Page domain.
type GetNavigationHistoryReply ¶
type GetNavigationHistoryReply struct {}
GetNavigationHistoryReply represents the return values for GetNavigationHistory in the Page domain.
func (*GetNavigationHistoryReply) GetFrameID ¶
func (a *GetNavigationHistoryReply) GetFrameID() string
GetNavigationHistoryReply returns the FrameID value for GetNavigationHistory in the Page domain.
func (*GetNavigationHistoryReply) MatchFrameID ¶
func (a *GetNavigationHistoryReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetNavigationHistoryReply returns whether or not the FrameID matches the reply value for GetNavigationHistory in the Page domain.
func (*GetNavigationHistoryReply) UnmarshalJSON ¶
func (a *GetNavigationHistoryReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetNavigationHistory in the Page domain.
type GetResourceContentArgs ¶
type GetResourceContentArgs struct { FrameID shared.FrameID `json:"frameId"` // Frame id to get resource for. URL string `json:"url"` // URL of the resource to get content for. }
GetResourceContentArgs represents the arguments for GetResourceContent in the Page domain.
func (*GetResourceContentArgs) MarshalJSON ¶
func (a *GetResourceContentArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetResourceContent in the Page domain.
func (*GetResourceContentArgs) UnmarshalJSON ¶
func (a *GetResourceContentArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResourceContent in the Page domain.
type GetResourceContentReply ¶
type GetResourceContentReply struct { Content string `json:"content"` // Resource content. Base64Encoded bool `json:"base64Encoded"` // True, if content was served as base64. }
GetResourceContentReply represents the return values for GetResourceContent in the Page domain.
func (*GetResourceContentReply) GetFrameID ¶
func (a *GetResourceContentReply) GetFrameID() string
GetResourceContentReply returns the FrameID value for GetResourceContent in the Page domain.
func (*GetResourceContentReply) MatchFrameID ¶
func (a *GetResourceContentReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetResourceContentReply returns whether or not the FrameID matches the reply value for GetResourceContent in the Page domain.
func (*GetResourceContentReply) UnmarshalJSON ¶
func (a *GetResourceContentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResourceContent in the Page domain.
type GetResourceTreeArgs ¶
type GetResourceTreeArgs struct { }
GetResourceTreeArgs represents the arguments for GetResourceTree in the Page domain.
func (*GetResourceTreeArgs) MarshalJSON ¶
func (a *GetResourceTreeArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetResourceTree in the Page domain.
func (*GetResourceTreeArgs) UnmarshalJSON ¶
func (a *GetResourceTreeArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResourceTree in the Page domain.
type GetResourceTreeReply ¶
type GetResourceTreeReply struct {
FrameTree FrameResourceTree `json:"frameTree"` // Present frame / resource tree structure.
}
GetResourceTreeReply represents the return values for GetResourceTree in the Page domain.
func (*GetResourceTreeReply) GetFrameID ¶
func (a *GetResourceTreeReply) GetFrameID() string
GetResourceTreeReply returns the FrameID value for GetResourceTree in the Page domain.
func (*GetResourceTreeReply) MatchFrameID ¶
func (a *GetResourceTreeReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetResourceTreeReply returns whether or not the FrameID matches the reply value for GetResourceTree in the Page domain.
func (*GetResourceTreeReply) UnmarshalJSON ¶
func (a *GetResourceTreeReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResourceTree in the Page domain.
type HandleJavaScriptDialogArgs ¶
type HandleJavaScriptDialogArgs 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. }
HandleJavaScriptDialogArgs represents the arguments for HandleJavaScriptDialog in the Page domain.
func (*HandleJavaScriptDialogArgs) MarshalJSON ¶
func (a *HandleJavaScriptDialogArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for HandleJavaScriptDialog in the Page domain.
func (*HandleJavaScriptDialogArgs) UnmarshalJSON ¶
func (a *HandleJavaScriptDialogArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for HandleJavaScriptDialog in the Page domain.
type HandleJavaScriptDialogReply ¶
type HandleJavaScriptDialogReply struct { }
HandleJavaScriptDialogReply represents the return values for HandleJavaScriptDialog in the Page domain.
func (*HandleJavaScriptDialogReply) GetFrameID ¶
func (a *HandleJavaScriptDialogReply) GetFrameID() string
HandleJavaScriptDialogReply returns the FrameID value for HandleJavaScriptDialog in the Page domain.
func (*HandleJavaScriptDialogReply) MatchFrameID ¶
func (a *HandleJavaScriptDialogReply) MatchFrameID(frameID string, m []byte) (bool, error)
HandleJavaScriptDialogReply returns whether or not the FrameID matches the reply value for HandleJavaScriptDialog in the Page domain.
func (*HandleJavaScriptDialogReply) UnmarshalJSON ¶
func (a *HandleJavaScriptDialogReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for HandleJavaScriptDialog in the Page domain.
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
Note: This type is experimental.
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
Note: This type is experimental.
type InterstitialHiddenReply ¶
type InterstitialHiddenReply struct { }
InterstitialHiddenReply is the reply for InterstitialHidden events.
func (*InterstitialHiddenReply) GetFrameID ¶
func (a *InterstitialHiddenReply) GetFrameID() string
InterstitialHiddenReply returns the FrameID for InterstitialHidden in the Page domain.
func (*InterstitialHiddenReply) MatchFrameID ¶
func (a *InterstitialHiddenReply) MatchFrameID(frameID string, m []byte) (bool, error)
InterstitialHiddenReply returns whether or not the FrameID matches the reply value for InterstitialHidden in the Page domain.
func (*InterstitialHiddenReply) UnmarshalJSON ¶
func (a *InterstitialHiddenReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for InterstitialHidden in the Page domain.
type InterstitialShownReply ¶
type InterstitialShownReply struct { }
InterstitialShownReply is the reply for InterstitialShown events.
func (*InterstitialShownReply) GetFrameID ¶
func (a *InterstitialShownReply) GetFrameID() string
InterstitialShownReply returns the FrameID for InterstitialShown in the Page domain.
func (*InterstitialShownReply) MatchFrameID ¶
func (a *InterstitialShownReply) MatchFrameID(frameID string, m []byte) (bool, error)
InterstitialShownReply returns whether or not the FrameID matches the reply value for InterstitialShown in the Page domain.
func (*InterstitialShownReply) UnmarshalJSON ¶
func (a *InterstitialShownReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for InterstitialShown in the Page domain.
type JavascriptDialogClosedReply ¶
type JavascriptDialogClosedReply struct { Result bool `json:"result"` // Whether dialog was confirmed. UserInput string `json:"userInput"` // User input in case of prompt. }
JavascriptDialogClosedReply is the reply for JavascriptDialogClosed events.
func (*JavascriptDialogClosedReply) GetFrameID ¶
func (a *JavascriptDialogClosedReply) GetFrameID() string
JavascriptDialogClosedReply returns the FrameID for JavascriptDialogClosed in the Page domain.
func (*JavascriptDialogClosedReply) MatchFrameID ¶
func (a *JavascriptDialogClosedReply) MatchFrameID(frameID string, m []byte) (bool, error)
JavascriptDialogClosedReply returns whether or not the FrameID matches the reply value for JavascriptDialogClosed in the Page domain.
func (*JavascriptDialogClosedReply) UnmarshalJSON ¶
func (a *JavascriptDialogClosedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for JavascriptDialogClosed in the Page domain.
type JavascriptDialogOpeningReply ¶
type JavascriptDialogOpeningReply 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. }
JavascriptDialogOpeningReply is the reply for JavascriptDialogOpening events.
func (*JavascriptDialogOpeningReply) GetFrameID ¶
func (a *JavascriptDialogOpeningReply) GetFrameID() string
JavascriptDialogOpeningReply returns the FrameID for JavascriptDialogOpening in the Page domain.
func (*JavascriptDialogOpeningReply) MatchFrameID ¶
func (a *JavascriptDialogOpeningReply) MatchFrameID(frameID string, m []byte) (bool, error)
JavascriptDialogOpeningReply returns whether or not the FrameID matches the reply value for JavascriptDialogOpening in the Page domain.
func (*JavascriptDialogOpeningReply) UnmarshalJSON ¶
func (a *JavascriptDialogOpeningReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for JavascriptDialogOpening in the Page domain.
type LayoutViewport ¶
type LayoutViewport struct { PageX int `json:"pageX"` // Horizontal offset relative to the document (CSS pixels). PageY int `json:"pageY"` // Vertical offset relative to the document (CSS pixels). ClientWidth int `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight int `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present. }
LayoutViewport Layout viewport position and dimensions.
type LifecycleEventReply ¶
type LifecycleEventReply struct { FrameID shared.FrameID `json:"frameId"` // Id of the frame. LoaderID network.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. Name string `json:"name"` // No description. Timestamp network.MonotonicTime `json:"timestamp"` // No description. }
LifecycleEventReply is the reply for LifecycleEvent events.
func (*LifecycleEventReply) GetFrameID ¶
func (a *LifecycleEventReply) GetFrameID() string
LifecycleEventReply returns the FrameID for LifecycleEvent in the Page domain.
func (*LifecycleEventReply) MatchFrameID ¶
func (a *LifecycleEventReply) MatchFrameID(frameID string, m []byte) (bool, error)
LifecycleEventReply returns whether or not the FrameID matches the reply value for LifecycleEvent in the Page domain.
func (*LifecycleEventReply) UnmarshalJSON ¶
func (a *LifecycleEventReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for LifecycleEvent in the Page domain.
type LoadEventFiredReply ¶
type LoadEventFiredReply struct {
Timestamp network.MonotonicTime `json:"timestamp"` // No description.
}
LoadEventFiredReply is the reply for LoadEventFired events.
func (*LoadEventFiredReply) GetFrameID ¶
func (a *LoadEventFiredReply) GetFrameID() string
LoadEventFiredReply returns the FrameID for LoadEventFired in the Page domain.
func (*LoadEventFiredReply) MatchFrameID ¶
func (a *LoadEventFiredReply) MatchFrameID(frameID string, m []byte) (bool, error)
LoadEventFiredReply returns whether or not the FrameID matches the reply value for LoadEventFired in the Page domain.
func (*LoadEventFiredReply) UnmarshalJSON ¶
func (a *LoadEventFiredReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for LoadEventFired in the Page domain.
type NavigateArgs ¶
type NavigateArgs struct { // // Note: This property is experimental. ReferrerPolicy *ReferrerPolicy `json:"referrerPolicy,omitempty"` }
NavigateArgs represents the arguments for Navigate in the Page domain.
func (*NavigateArgs) MarshalJSON ¶
func (a *NavigateArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Navigate in the Page domain.
func (*NavigateArgs) UnmarshalJSON ¶
func (a *NavigateArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Navigate in the Page domain.
type NavigateReply ¶
type NavigateReply struct {}
NavigateReply represents the return values for Navigate in the Page domain.
func (*NavigateReply) GetFrameID ¶
func (a *NavigateReply) GetFrameID() string
NavigateReply returns the FrameID for Navigate in the Page domain.
func (*NavigateReply) MatchFrameID ¶
func (a *NavigateReply) MatchFrameID(frameID string, m []byte) (bool, error)
NavigateReply returns whether or not the FrameID matches the reply value for Navigate in the Page domain.
func (*NavigateReply) UnmarshalJSON ¶
func (a *NavigateReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Navigate in the Page domain.
type NavigateToHistoryEntryArgs ¶
type NavigateToHistoryEntryArgs struct {
}NavigateToHistoryEntryArgs represents the arguments for NavigateToHistoryEntry in the Page domain.
func (*NavigateToHistoryEntryArgs) MarshalJSON ¶
func (a *NavigateToHistoryEntryArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for NavigateToHistoryEntry in the Page domain.
func (*NavigateToHistoryEntryArgs) UnmarshalJSON ¶
func (a *NavigateToHistoryEntryArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for NavigateToHistoryEntry in the Page domain.
type NavigateToHistoryEntryReply ¶
type NavigateToHistoryEntryReply struct { }
NavigateToHistoryEntryReply represents the return values for NavigateToHistoryEntry in the Page domain.
func (*NavigateToHistoryEntryReply) GetFrameID ¶
func (a *NavigateToHistoryEntryReply) GetFrameID() string
NavigateToHistoryEntryReply returns the FrameID value for NavigateToHistoryEntry in the Page domain.
func (*NavigateToHistoryEntryReply) MatchFrameID ¶
func (a *NavigateToHistoryEntryReply) MatchFrameID(frameID string, m []byte) (bool, error)
NavigateToHistoryEntryReply returns whether or not the FrameID matches the reply value for NavigateToHistoryEntry in the Page domain.
func (*NavigateToHistoryEntryReply) UnmarshalJSON ¶
func (a *NavigateToHistoryEntryReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for NavigateToHistoryEntry in the Page domain.
type NavigatedWithinDocumentReply ¶
type NavigatedWithinDocumentReply struct {}
NavigatedWithinDocumentReply is the reply for NavigatedWithinDocument events.
func (*NavigatedWithinDocumentReply) GetFrameID ¶
func (a *NavigatedWithinDocumentReply) GetFrameID() string
NavigatedWithinDocumentReply returns the FrameID for NavigatedWithinDocument in the Page domain.
func (*NavigatedWithinDocumentReply) MatchFrameID ¶
func (a *NavigatedWithinDocumentReply) MatchFrameID(frameID string, m []byte) (bool, error)
NavigatedWithinDocumentReply returns whether or not the FrameID matches the reply value for NavigatedWithinDocument in the Page domain.
func (*NavigatedWithinDocumentReply) UnmarshalJSON ¶
func (a *NavigatedWithinDocumentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for NavigatedWithinDocument in the Page domain.
type PrintToPDFArgs ¶
type PrintToPDFArgs struct { Landscape bool `json:"landscape,omitempty"` // Paper orientation. 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,omitempty"` // Top margin in inches. Defaults to 1cm (~0.4 inches). MarginBottom float64 `json:"marginBottom,omitempty"` // Bottom margin in inches. Defaults to 1cm (~0.4 inches). MarginLeft float64 `json:"marginLeft,omitempty"` // Left margin in inches. Defaults to 1cm (~0.4 inches). MarginRight float64 `json:"marginRight,omitempty"` // 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. 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 return as stream // // Values: "ReturnAsBase64", "ReturnAsStream". // // Note: This property is experimental. TransferMode string `json:"transferMode,omitempty"` }
PrintToPDFArgs represents the arguments for PrintToPDF in the Page domain.
func (*PrintToPDFArgs) MarshalJSON ¶
func (a *PrintToPDFArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for PrintToPDF in the Page domain.
func (*PrintToPDFArgs) UnmarshalJSON ¶
func (a *PrintToPDFArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for PrintToPDF in the Page domain.
type PrintToPDFReply ¶
type PrintToPDFReply struct { Data []byte `json:"data"` // Base64-encoded pdf data. Empty if |returnAsStream| is specified. // Stream A handle of the stream that holds resulting PDF data. // // Note: This property is experimental. Stream *io.StreamHandle `json:"stream,omitempty"` }
PrintToPDFReply represents the return values for PrintToPDF in the Page domain.
func (*PrintToPDFReply) GetFrameID ¶
func (a *PrintToPDFReply) GetFrameID() string
PrintToPDFReply returns the FrameID value for PrintToPDF in the Page domain.
func (*PrintToPDFReply) MatchFrameID ¶
func (a *PrintToPDFReply) MatchFrameID(frameID string, m []byte) (bool, error)
PrintToPDFReply returns whether or not the FrameID matches the reply value for PrintToPDF in the Page domain.
func (*PrintToPDFReply) UnmarshalJSON ¶
func (a *PrintToPDFReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for PrintToPDF in the Page domain.
type ReferrerPolicy ¶
type ReferrerPolicy string
ReferrerPolicy The referring-policy used for the navigation.
Note: This type is experimental.
const ( ReferrerPolicyNotSet ReferrerPolicy = "" 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 as enums.
func (ReferrerPolicy) String ¶
func (e ReferrerPolicy) String() string
func (ReferrerPolicy) Valid ¶
func (e ReferrerPolicy) Valid() bool
type ReloadArgs ¶
type ReloadArgs 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. }
ReloadArgs represents the arguments for Reload in the Page domain.
func (*ReloadArgs) MarshalJSON ¶
func (a *ReloadArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Reload in the Page domain.
func (*ReloadArgs) UnmarshalJSON ¶
func (a *ReloadArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Reload in the Page domain.
type ReloadReply ¶
type ReloadReply struct { }
ReloadReply represents the return values for Reload in the Page domain.
func (*ReloadReply) GetFrameID ¶
func (a *ReloadReply) GetFrameID() string
ReloadReply returns the FrameID value for Reload in the Page domain.
func (*ReloadReply) MatchFrameID ¶
func (a *ReloadReply) MatchFrameID(frameID string, m []byte) (bool, error)
ReloadReply returns whether or not the FrameID matches the reply value for Reload in the Page domain.
func (*ReloadReply) UnmarshalJSON ¶
func (a *ReloadReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Reload in the Page domain.
type RemoveScriptToEvaluateOnLoadArgs ¶
type RemoveScriptToEvaluateOnLoadArgs struct {
Identifier ScriptIdentifier `json:"identifier"` // No description.
}
RemoveScriptToEvaluateOnLoadArgs represents the arguments for RemoveScriptToEvaluateOnLoad in the Page domain.
func (*RemoveScriptToEvaluateOnLoadArgs) MarshalJSON ¶
func (a *RemoveScriptToEvaluateOnLoadArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for RemoveScriptToEvaluateOnLoad in the Page domain.
func (*RemoveScriptToEvaluateOnLoadArgs) UnmarshalJSON ¶
func (a *RemoveScriptToEvaluateOnLoadArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RemoveScriptToEvaluateOnLoad in the Page domain.
type RemoveScriptToEvaluateOnLoadReply ¶
type RemoveScriptToEvaluateOnLoadReply struct { }
RemoveScriptToEvaluateOnLoadReply represents the return values for RemoveScriptToEvaluateOnLoad in the Page domain.
func (*RemoveScriptToEvaluateOnLoadReply) GetFrameID ¶
func (a *RemoveScriptToEvaluateOnLoadReply) GetFrameID() string
RemoveScriptToEvaluateOnLoadReply returns the FrameID value for RemoveScriptToEvaluateOnLoad in the Page domain.
func (*RemoveScriptToEvaluateOnLoadReply) MatchFrameID ¶
func (a *RemoveScriptToEvaluateOnLoadReply) MatchFrameID(frameID string, m []byte) (bool, error)
RemoveScriptToEvaluateOnLoadReply returns whether or not the FrameID matches the reply value for RemoveScriptToEvaluateOnLoad in the Page domain.
func (*RemoveScriptToEvaluateOnLoadReply) UnmarshalJSON ¶
func (a *RemoveScriptToEvaluateOnLoadReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RemoveScriptToEvaluateOnLoad in the Page domain.
type RemoveScriptToEvaluateOnNewDocumentArgs ¶
type RemoveScriptToEvaluateOnNewDocumentArgs struct {
Identifier ScriptIdentifier `json:"identifier"` // No description.
}
RemoveScriptToEvaluateOnNewDocumentArgs represents the arguments for RemoveScriptToEvaluateOnNewDocument in the Page domain.
func (*RemoveScriptToEvaluateOnNewDocumentArgs) MarshalJSON ¶
func (a *RemoveScriptToEvaluateOnNewDocumentArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for RemoveScriptToEvaluateOnNewDocument in the Page domain.
func (*RemoveScriptToEvaluateOnNewDocumentArgs) UnmarshalJSON ¶
func (a *RemoveScriptToEvaluateOnNewDocumentArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RemoveScriptToEvaluateOnNewDocument in the Page domain.
type RemoveScriptToEvaluateOnNewDocumentReply ¶
type RemoveScriptToEvaluateOnNewDocumentReply struct { }
RemoveScriptToEvaluateOnNewDocumentReply represents the return values for RemoveScriptToEvaluateOnNewDocument in the Page domain.
func (*RemoveScriptToEvaluateOnNewDocumentReply) GetFrameID ¶
func (a *RemoveScriptToEvaluateOnNewDocumentReply) GetFrameID() string
RemoveScriptToEvaluateOnNewDocumentReply returns the FrameID value for RemoveScriptToEvaluateOnNewDocument in the Page domain.
func (*RemoveScriptToEvaluateOnNewDocumentReply) MatchFrameID ¶
func (a *RemoveScriptToEvaluateOnNewDocumentReply) MatchFrameID(frameID string, m []byte) (bool, error)
RemoveScriptToEvaluateOnNewDocumentReply returns whether or not the FrameID matches the reply value for RemoveScriptToEvaluateOnNewDocument in the Page domain.
func (*RemoveScriptToEvaluateOnNewDocumentReply) UnmarshalJSON ¶
func (a *RemoveScriptToEvaluateOnNewDocumentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RemoveScriptToEvaluateOnNewDocument in the Page domain.
type ResetNavigationHistoryArgs ¶
type ResetNavigationHistoryArgs struct { }
ResetNavigationHistoryArgs represents the arguments for ResetNavigationHistory in the Page domain.
func (*ResetNavigationHistoryArgs) MarshalJSON ¶
func (a *ResetNavigationHistoryArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ResetNavigationHistory in the Page domain.
func (*ResetNavigationHistoryArgs) UnmarshalJSON ¶
func (a *ResetNavigationHistoryArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ResetNavigationHistory in the Page domain.
type ResetNavigationHistoryReply ¶
type ResetNavigationHistoryReply struct { }
ResetNavigationHistoryReply represents the return values for ResetNavigationHistory in the Page domain.
func (*ResetNavigationHistoryReply) GetFrameID ¶
func (a *ResetNavigationHistoryReply) GetFrameID() string
ResetNavigationHistoryReply returns the FrameID value for ResetNavigationHistory in the Page domain.
func (*ResetNavigationHistoryReply) MatchFrameID ¶
func (a *ResetNavigationHistoryReply) MatchFrameID(frameID string, m []byte) (bool, error)
ResetNavigationHistoryReply returns whether or not the FrameID matches the reply value for ResetNavigationHistory in the Page domain.
func (*ResetNavigationHistoryReply) UnmarshalJSON ¶
func (a *ResetNavigationHistoryReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ResetNavigationHistory in the Page domain.
type ScreencastFrameAckArgs ¶
type ScreencastFrameAckArgs struct {
SessionID int `json:"sessionId"` // Frame number.
}
ScreencastFrameAckArgs represents the arguments for ScreencastFrameAck in the Page domain.
func (*ScreencastFrameAckArgs) MarshalJSON ¶
func (a *ScreencastFrameAckArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ScreencastFrameAck in the Page domain.
func (*ScreencastFrameAckArgs) UnmarshalJSON ¶
func (a *ScreencastFrameAckArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ScreencastFrameAck in the Page domain.
type ScreencastFrameAckReply ¶
type ScreencastFrameAckReply struct { }
ScreencastFrameAckReply represents the return values for ScreencastFrameAck in the Page domain.
func (*ScreencastFrameAckReply) GetFrameID ¶
func (a *ScreencastFrameAckReply) GetFrameID() string
ScreencastFrameAckReply returns the FrameID value for ScreencastFrameAck in the Page domain.
func (*ScreencastFrameAckReply) MatchFrameID ¶
func (a *ScreencastFrameAckReply) MatchFrameID(frameID string, m []byte) (bool, error)
ScreencastFrameAckReply returns whether or not the FrameID matches the reply value for ScreencastFrameAck in the Page domain.
func (*ScreencastFrameAckReply) UnmarshalJSON ¶
func (a *ScreencastFrameAckReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ScreencastFrameAck in the Page domain.
type ScreencastFrameMetadata ¶
type ScreencastFrameMetadata struct { OffsetTop float64 `json:"offsetTop"` // Top offset in DIP. PageScaleFactor float64 `json:"pageScaleFactor"` // Page scale factor. DeviceWidth float64 `json:"deviceWidth"` // Device screen width in DIP. DeviceHeight float64 `json:"deviceHeight"` // Device screen height in DIP. ScrollOffsetX float64 `json:"scrollOffsetX"` // Position of horizontal scroll in CSS pixels. ScrollOffsetY float64 `json:"scrollOffsetY"` // Position of vertical scroll in CSS pixels. Timestamp *shared.TimeSinceEpoch `json:"timestamp,omitempty"` // Frame swap timestamp. }
ScreencastFrameMetadata Screencast frame metadata.
Note: This type is experimental.
type ScreencastFrameReply ¶
type ScreencastFrameReply struct { Data []byte `json:"data"` // Base64-encoded compressed image. Metadata ScreencastFrameMetadata `json:"metadata"` // Screencast frame metadata. SessionID int `json:"sessionId"` // Frame number. }
ScreencastFrameReply is the reply for ScreencastFrame events.
func (*ScreencastFrameReply) GetFrameID ¶
func (a *ScreencastFrameReply) GetFrameID() string
ScreencastFrameReply returns the FrameID for ScreencastFrame in the Page domain.
func (*ScreencastFrameReply) MatchFrameID ¶
func (a *ScreencastFrameReply) MatchFrameID(frameID string, m []byte) (bool, error)
ScreencastFrameReply returns whether or not the FrameID matches the reply value for ScreencastFrame in the Page domain.
func (*ScreencastFrameReply) UnmarshalJSON ¶
func (a *ScreencastFrameReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ScreencastFrame in the Page domain.
type ScreencastVisibilityChangedReply ¶
type ScreencastVisibilityChangedReply struct {
Visible bool `json:"visible"` // True if the page is visible.
}
ScreencastVisibilityChangedReply is the reply for ScreencastVisibilityChanged events.
func (*ScreencastVisibilityChangedReply) GetFrameID ¶
func (a *ScreencastVisibilityChangedReply) GetFrameID() string
ScreencastVisibilityChangedReply returns the FrameID for ScreencastVisibilityChanged in the Page domain.
func (*ScreencastVisibilityChangedReply) MatchFrameID ¶
func (a *ScreencastVisibilityChangedReply) MatchFrameID(frameID string, m []byte) (bool, error)
ScreencastVisibilityChangedReply returns whether or not the FrameID matches the reply value for ScreencastVisibilityChanged in the Page domain.
func (*ScreencastVisibilityChangedReply) UnmarshalJSON ¶
func (a *ScreencastVisibilityChangedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ScreencastVisibilityChanged in the Page domain.
type SearchInResourceArgs ¶
type SearchInResourceArgs struct { FrameID shared.FrameID `json:"frameId"` // Frame id for resource to search in. URL string `json:"url"` // URL of the resource to search in. Query string `json:"query"` // String to search for. CaseSensitive bool `json:"caseSensitive,omitempty"` // If true, search is case sensitive. IsRegex bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex. }
SearchInResourceArgs represents the arguments for SearchInResource in the Page domain.
func (*SearchInResourceArgs) MarshalJSON ¶
func (a *SearchInResourceArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SearchInResource in the Page domain.
func (*SearchInResourceArgs) UnmarshalJSON ¶
func (a *SearchInResourceArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SearchInResource in the Page domain.
type SearchInResourceReply ¶
type SearchInResourceReply struct {
Result []debugger.SearchMatch `json:"result"` // List of search matches.
}
SearchInResourceReply represents the return values for SearchInResource in the Page domain.
func (*SearchInResourceReply) GetFrameID ¶
func (a *SearchInResourceReply) GetFrameID() string
SearchInResourceReply returns the FrameID value for SearchInResource in the Page domain.
func (*SearchInResourceReply) MatchFrameID ¶
func (a *SearchInResourceReply) MatchFrameID(frameID string, m []byte) (bool, error)
SearchInResourceReply returns whether or not the FrameID matches the reply value for SearchInResource in the Page domain.
func (*SearchInResourceReply) UnmarshalJSON ¶
func (a *SearchInResourceReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SearchInResource in the Page domain.
type SetAdBlockingEnabledArgs ¶
type SetAdBlockingEnabledArgs struct {
Enabled bool `json:"enabled"` // Whether to block ads.
}
SetAdBlockingEnabledArgs represents the arguments for SetAdBlockingEnabled in the Page domain.
func (*SetAdBlockingEnabledArgs) MarshalJSON ¶
func (a *SetAdBlockingEnabledArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetAdBlockingEnabled in the Page domain.
func (*SetAdBlockingEnabledArgs) UnmarshalJSON ¶
func (a *SetAdBlockingEnabledArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetAdBlockingEnabled in the Page domain.
type SetAdBlockingEnabledReply ¶
type SetAdBlockingEnabledReply struct { }
SetAdBlockingEnabledReply represents the return values for SetAdBlockingEnabled in the Page domain.
func (*SetAdBlockingEnabledReply) GetFrameID ¶
func (a *SetAdBlockingEnabledReply) GetFrameID() string
SetAdBlockingEnabledReply returns the FrameID value for SetAdBlockingEnabled in the Page domain.
func (*SetAdBlockingEnabledReply) MatchFrameID ¶
func (a *SetAdBlockingEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetAdBlockingEnabledReply returns whether or not the FrameID matches the reply value for SetAdBlockingEnabled in the Page domain.
func (*SetAdBlockingEnabledReply) UnmarshalJSON ¶
func (a *SetAdBlockingEnabledReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetAdBlockingEnabled in the Page domain.
type SetBypassCSPArgs ¶
type SetBypassCSPArgs struct {
Enabled bool `json:"enabled"` // Whether to bypass page CSP.
}
SetBypassCSPArgs represents the arguments for SetBypassCSP in the Page domain.
func (*SetBypassCSPArgs) MarshalJSON ¶
func (a *SetBypassCSPArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetBypassCSP in the Page domain.
func (*SetBypassCSPArgs) UnmarshalJSON ¶
func (a *SetBypassCSPArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBypassCSP in the Page domain.
type SetBypassCSPReply ¶
type SetBypassCSPReply struct { }
SetBypassCSPReply represents the return values for SetBypassCSP in the Page domain.
func (*SetBypassCSPReply) GetFrameID ¶
func (a *SetBypassCSPReply) GetFrameID() string
SetBypassCSPReply returns the FrameID value for SetBypassCSP in the Page domain.
func (*SetBypassCSPReply) MatchFrameID ¶
func (a *SetBypassCSPReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetBypassCSPReply returns whether or not the FrameID matches the reply value for SetBypassCSP in the Page domain.
func (*SetBypassCSPReply) UnmarshalJSON ¶
func (a *SetBypassCSPReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBypassCSP in the Page domain.
type SetDocumentContentArgs ¶
type SetDocumentContentArgs struct { FrameID shared.FrameID `json:"frameId"` // Frame id to set HTML for. HTML string `json:"html"` // HTML content to set. }
SetDocumentContentArgs represents the arguments for SetDocumentContent in the Page domain.
func (*SetDocumentContentArgs) MarshalJSON ¶
func (a *SetDocumentContentArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetDocumentContent in the Page domain.
func (*SetDocumentContentArgs) UnmarshalJSON ¶
func (a *SetDocumentContentArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDocumentContent in the Page domain.
type SetDocumentContentReply ¶
type SetDocumentContentReply struct { }
SetDocumentContentReply represents the return values for SetDocumentContent in the Page domain.
func (*SetDocumentContentReply) GetFrameID ¶
func (a *SetDocumentContentReply) GetFrameID() string
SetDocumentContentReply returns the FrameID value for SetDocumentContent in the Page domain.
func (*SetDocumentContentReply) MatchFrameID ¶
func (a *SetDocumentContentReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetDocumentContentReply returns whether or not the FrameID matches the reply value for SetDocumentContent in the Page domain.
func (*SetDocumentContentReply) UnmarshalJSON ¶
func (a *SetDocumentContentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDocumentContent in the Page domain.
type SetDownloadBehaviorArgs ¶
type SetDownloadBehaviorArgs struct { // Behavior Whether to allow all or deny all download requests, or use // default Chrome behavior if available (otherwise deny). // // Values: "deny", "allow", "default". Behavior string `json:"behavior"` DownloadPath string `json:"downloadPath,omitempty"` // The default path to save downloaded files to. This is required if behavior is set to 'allow' }
SetDownloadBehaviorArgs represents the arguments for SetDownloadBehavior in the Page domain.
func (*SetDownloadBehaviorArgs) MarshalJSON ¶
func (a *SetDownloadBehaviorArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetDownloadBehavior in the Page domain.
func (*SetDownloadBehaviorArgs) UnmarshalJSON ¶
func (a *SetDownloadBehaviorArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDownloadBehavior in the Page domain.
type SetDownloadBehaviorReply ¶
type SetDownloadBehaviorReply struct { }
SetDownloadBehaviorReply represents the return values for SetDownloadBehavior in the Page domain.
func (*SetDownloadBehaviorReply) GetFrameID ¶
func (a *SetDownloadBehaviorReply) GetFrameID() string
SetDownloadBehaviorReply returns the FrameID value for SetDownloadBehavior in the Page domain.
func (*SetDownloadBehaviorReply) MatchFrameID ¶
func (a *SetDownloadBehaviorReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetDownloadBehaviorReply returns whether or not the FrameID matches the reply value for SetDownloadBehavior in the Page domain.
func (*SetDownloadBehaviorReply) UnmarshalJSON ¶
func (a *SetDownloadBehaviorReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDownloadBehavior in the Page domain.
type SetFontFamiliesArgs ¶
type SetFontFamiliesArgs struct {
FontFamilies FontFamilies `json:"fontFamilies"` // Specifies font families to set. If a font family is not specified, it won't be changed.
}
SetFontFamiliesArgs represents the arguments for SetFontFamilies in the Page domain.
func (*SetFontFamiliesArgs) MarshalJSON ¶
func (a *SetFontFamiliesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetFontFamilies in the Page domain.
func (*SetFontFamiliesArgs) UnmarshalJSON ¶
func (a *SetFontFamiliesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetFontFamilies in the Page domain.
type SetFontFamiliesReply ¶
type SetFontFamiliesReply struct { }
SetFontFamiliesReply represents the return values for SetFontFamilies in the Page domain.
func (*SetFontFamiliesReply) GetFrameID ¶
func (a *SetFontFamiliesReply) GetFrameID() string
SetFontFamiliesReply returns the FrameID value for SetFontFamilies in the Page domain.
func (*SetFontFamiliesReply) MatchFrameID ¶
func (a *SetFontFamiliesReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetFontFamiliesReply returns whether or not the FrameID matches the reply value for SetFontFamilies in the Page domain.
func (*SetFontFamiliesReply) UnmarshalJSON ¶
func (a *SetFontFamiliesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetFontFamilies in the Page domain.
type SetFontSizesArgs ¶
type SetFontSizesArgs struct {
FontSizes FontSizes `json:"fontSizes"` // Specifies font sizes to set. If a font size is not specified, it won't be changed.
}
SetFontSizesArgs represents the arguments for SetFontSizes in the Page domain.
func (*SetFontSizesArgs) MarshalJSON ¶
func (a *SetFontSizesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetFontSizes in the Page domain.
func (*SetFontSizesArgs) UnmarshalJSON ¶
func (a *SetFontSizesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetFontSizes in the Page domain.
type SetFontSizesReply ¶
type SetFontSizesReply struct { }
SetFontSizesReply represents the return values for SetFontSizes in the Page domain.
func (*SetFontSizesReply) GetFrameID ¶
func (a *SetFontSizesReply) GetFrameID() string
SetFontSizesReply returns the FrameID value for SetFontSizes in the Page domain.
func (*SetFontSizesReply) MatchFrameID ¶
func (a *SetFontSizesReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetFontSizesReply returns whether or not the FrameID matches the reply value for SetFontSizes in the Page domain.
func (*SetFontSizesReply) UnmarshalJSON ¶
func (a *SetFontSizesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetFontSizes in the Page domain.
type SetInterceptFileChooserDialogArgs ¶
type SetInterceptFileChooserDialogArgs struct {
Enabled bool `json:"enabled"` // No description.
}
SetInterceptFileChooserDialogArgs represents the arguments for SetInterceptFileChooserDialog in the Page domain.
func (*SetInterceptFileChooserDialogArgs) MarshalJSON ¶
func (a *SetInterceptFileChooserDialogArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetInterceptFileChooserDialog in the Page domain.
func (*SetInterceptFileChooserDialogArgs) UnmarshalJSON ¶
func (a *SetInterceptFileChooserDialogArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetInterceptFileChooserDialog in the Page domain.
type SetInterceptFileChooserDialogReply ¶
type SetInterceptFileChooserDialogReply struct { }
SetInterceptFileChooserDialogReply represents the return values for SetInterceptFileChooserDialog in the Page domain.
func (*SetInterceptFileChooserDialogReply) GetFrameID ¶
func (a *SetInterceptFileChooserDialogReply) GetFrameID() string
SetInterceptFileChooserDialogReply returns the FrameID value for SetInterceptFileChooserDialog in the Page domain.
func (*SetInterceptFileChooserDialogReply) MatchFrameID ¶
func (a *SetInterceptFileChooserDialogReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetInterceptFileChooserDialogReply returns whether or not the FrameID matches the reply value for SetInterceptFileChooserDialog in the Page domain.
func (*SetInterceptFileChooserDialogReply) UnmarshalJSON ¶
func (a *SetInterceptFileChooserDialogReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetInterceptFileChooserDialog in the Page domain.
type SetLifecycleEventsEnabledArgs ¶
type SetLifecycleEventsEnabledArgs struct {
Enabled bool `json:"enabled"` // If true, starts emitting lifecycle events.
}
SetLifecycleEventsEnabledArgs represents the arguments for SetLifecycleEventsEnabled in the Page domain.
func (*SetLifecycleEventsEnabledArgs) MarshalJSON ¶
func (a *SetLifecycleEventsEnabledArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetLifecycleEventsEnabled in the Page domain.
func (*SetLifecycleEventsEnabledArgs) UnmarshalJSON ¶
func (a *SetLifecycleEventsEnabledArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetLifecycleEventsEnabled in the Page domain.
type SetLifecycleEventsEnabledReply ¶
type SetLifecycleEventsEnabledReply struct { }
SetLifecycleEventsEnabledReply represents the return values for SetLifecycleEventsEnabled in the Page domain.
func (*SetLifecycleEventsEnabledReply) GetFrameID ¶
func (a *SetLifecycleEventsEnabledReply) GetFrameID() string
SetLifecycleEventsEnabledReply returns the FrameID value for SetLifecycleEventsEnabled in the Page domain.
func (*SetLifecycleEventsEnabledReply) MatchFrameID ¶
func (a *SetLifecycleEventsEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetLifecycleEventsEnabledReply returns whether or not the FrameID matches the reply value for SetLifecycleEventsEnabled in the Page domain.
func (*SetLifecycleEventsEnabledReply) UnmarshalJSON ¶
func (a *SetLifecycleEventsEnabledReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetLifecycleEventsEnabled in the Page domain.
type SetProduceCompilationCacheArgs ¶
type SetProduceCompilationCacheArgs struct {
Enabled bool `json:"enabled"` // No description.
}
SetProduceCompilationCacheArgs represents the arguments for SetProduceCompilationCache in the Page domain.
func (*SetProduceCompilationCacheArgs) MarshalJSON ¶
func (a *SetProduceCompilationCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetProduceCompilationCache in the Page domain.
func (*SetProduceCompilationCacheArgs) UnmarshalJSON ¶
func (a *SetProduceCompilationCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetProduceCompilationCache in the Page domain.
type SetProduceCompilationCacheReply ¶
type SetProduceCompilationCacheReply struct { }
SetProduceCompilationCacheReply represents the return values for SetProduceCompilationCache in the Page domain.
func (*SetProduceCompilationCacheReply) GetFrameID ¶
func (a *SetProduceCompilationCacheReply) GetFrameID() string
SetProduceCompilationCacheReply returns the FrameID value for SetProduceCompilationCache in the Page domain.
func (*SetProduceCompilationCacheReply) MatchFrameID ¶
func (a *SetProduceCompilationCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetProduceCompilationCacheReply returns whether or not the FrameID matches the reply value for SetProduceCompilationCache in the Page domain.
func (*SetProduceCompilationCacheReply) UnmarshalJSON ¶
func (a *SetProduceCompilationCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetProduceCompilationCache in the Page domain.
type SetWebLifecycleStateArgs ¶
type SetWebLifecycleStateArgs struct { // State Target lifecycle state // // Values: "frozen", "active". State string `json:"state"` }
SetWebLifecycleStateArgs represents the arguments for SetWebLifecycleState in the Page domain.
func (*SetWebLifecycleStateArgs) MarshalJSON ¶
func (a *SetWebLifecycleStateArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetWebLifecycleState in the Page domain.
func (*SetWebLifecycleStateArgs) UnmarshalJSON ¶
func (a *SetWebLifecycleStateArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetWebLifecycleState in the Page domain.
type SetWebLifecycleStateReply ¶
type SetWebLifecycleStateReply struct { }
SetWebLifecycleStateReply represents the return values for SetWebLifecycleState in the Page domain.
func (*SetWebLifecycleStateReply) GetFrameID ¶
func (a *SetWebLifecycleStateReply) GetFrameID() string
SetWebLifecycleStateReply returns the FrameID value for SetWebLifecycleState in the Page domain.
func (*SetWebLifecycleStateReply) MatchFrameID ¶
func (a *SetWebLifecycleStateReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetWebLifecycleStateReply returns whether or not the FrameID matches the reply value for SetWebLifecycleState in the Page domain.
func (*SetWebLifecycleStateReply) UnmarshalJSON ¶
func (a *SetWebLifecycleStateReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetWebLifecycleState in the Page domain.
type StartScreencastArgs ¶
type StartScreencastArgs struct { // Format Image compression format. // // Values: "jpeg", "png". Format string `json:"format,omitempty"` Quality int `json:"quality,omitempty"` // Compression quality from range [0..100]. MaxWidth int `json:"maxWidth,omitempty"` // Maximum screenshot width. MaxHeight int `json:"maxHeight,omitempty"` // Maximum screenshot height. EveryNthFrame int `json:"everyNthFrame,omitempty"` // Send every n-th frame. }
StartScreencastArgs represents the arguments for StartScreencast in the Page domain.
func (*StartScreencastArgs) MarshalJSON ¶
func (a *StartScreencastArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for StartScreencast in the Page domain.
func (*StartScreencastArgs) UnmarshalJSON ¶
func (a *StartScreencastArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StartScreencast in the Page domain.
type StartScreencastReply ¶
type StartScreencastReply struct { }
StartScreencastReply represents the return values for StartScreencast in the Page domain.
func (*StartScreencastReply) GetFrameID ¶
func (a *StartScreencastReply) GetFrameID() string
StartScreencastReply returns the FrameID value for StartScreencast in the Page domain.
func (*StartScreencastReply) MatchFrameID ¶
func (a *StartScreencastReply) MatchFrameID(frameID string, m []byte) (bool, error)
StartScreencastReply returns whether or not the FrameID matches the reply value for StartScreencast in the Page domain.
func (*StartScreencastReply) UnmarshalJSON ¶
func (a *StartScreencastReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StartScreencast in the Page domain.
type StopLoadingArgs ¶
type StopLoadingArgs struct { }
StopLoadingArgs represents the arguments for StopLoading in the Page domain.
func (*StopLoadingArgs) MarshalJSON ¶
func (a *StopLoadingArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for StopLoading in the Page domain.
func (*StopLoadingArgs) UnmarshalJSON ¶
func (a *StopLoadingArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StopLoading in the Page domain.
type StopLoadingReply ¶
type StopLoadingReply struct { }
StopLoadingReply represents the return values for StopLoading in the Page domain.
func (*StopLoadingReply) GetFrameID ¶
func (a *StopLoadingReply) GetFrameID() string
StopLoadingReply returns the FrameID value for StopLoading in the Page domain.
func (*StopLoadingReply) MatchFrameID ¶
func (a *StopLoadingReply) MatchFrameID(frameID string, m []byte) (bool, error)
StopLoadingReply returns whether or not the FrameID matches the reply value for StopLoading in the Page domain.
func (*StopLoadingReply) UnmarshalJSON ¶
func (a *StopLoadingReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StopLoading in the Page domain.
type StopScreencastArgs ¶
type StopScreencastArgs struct { }
StopScreencastArgs represents the arguments for StopScreencast in the Page domain.
func (*StopScreencastArgs) MarshalJSON ¶
func (a *StopScreencastArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for StopScreencast in the Page domain.
func (*StopScreencastArgs) UnmarshalJSON ¶
func (a *StopScreencastArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StopScreencast in the Page domain.
type StopScreencastReply ¶
type StopScreencastReply struct { }
StopScreencastReply represents the return values for StopScreencast in the Page domain.
func (*StopScreencastReply) GetFrameID ¶
func (a *StopScreencastReply) GetFrameID() string
StopScreencastReply returns the FrameID value for StopScreencast in the Page domain.
func (*StopScreencastReply) MatchFrameID ¶
func (a *StopScreencastReply) MatchFrameID(frameID string, m []byte) (bool, error)
StopScreencastReply returns whether or not the FrameID matches the reply value for StopScreencast in the Page domain.
func (*StopScreencastReply) UnmarshalJSON ¶
func (a *StopScreencastReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for StopScreencast in the Page domain.
type TransitionType ¶
type TransitionType string
TransitionType Transition type.
const ( TransitionTypeNotSet TransitionType = "" TransitionTypeLink TransitionType = "link" TransitionTypeTyped TransitionType = "typed" TransitionTypeAddressBar TransitionType = "address_bar" TransitionTypeAutoBookmark TransitionType = "auto_bookmark" TransitionTypeAutoSubframe TransitionType = "auto_subframe" TransitionTypeManualSubframe TransitionType = "manual_subframe" TransitionTypeGenerated TransitionType = "generated" TransitionTypeAutoToplevel TransitionType = "auto_toplevel" TransitionTypeFormSubmit TransitionType = "form_submit" TransitionTypeReload TransitionType = "reload" TransitionTypeKeyword TransitionType = "keyword" TransitionTypeKeywordGenerated TransitionType = "keyword_generated" TransitionTypeOther TransitionType = "other" )
TransitionType as enums.
func (TransitionType) String ¶
func (e TransitionType) String() string
func (TransitionType) Valid ¶
func (e TransitionType) Valid() bool
type Unmarshaler ¶
type Unmarshaler func() json.Unmarshaler
type Viewport ¶
type Viewport struct { X float64 `json:"x"` // X offset in device independent pixels (dip). Y float64 `json:"y"` // Y offset in device independent pixels (dip). Width float64 `json:"width"` // Rectangle width in device independent pixels (dip). Height float64 `json:"height"` // Rectangle height in device independent pixels (dip). Scale float64 `json:"scale"` // Page scale factor. }
Viewport Viewport for capturing screenshot.
type VisualViewport ¶
type VisualViewport struct { OffsetX float64 `json:"offsetX"` // Horizontal offset relative to the layout viewport (CSS pixels). OffsetY float64 `json:"offsetY"` // Vertical offset relative to the layout viewport (CSS pixels). PageX float64 `json:"pageX"` // Horizontal offset relative to the document (CSS pixels). PageY float64 `json:"pageY"` // Vertical offset relative to the document (CSS pixels). ClientWidth float64 `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight float64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present. Scale float64 `json:"scale"` // Scale relative to the ideal viewport (size at width=device-width). Zoom float64 `json:"zoom,omitempty"` // Page zoom factor (CSS to device independent pixels ratio). }
VisualViewport Visual viewport position, dimensions, and scale.
type WaitForDebuggerArgs ¶
type WaitForDebuggerArgs struct { }
WaitForDebuggerArgs represents the arguments for WaitForDebugger in the Page domain.
func (*WaitForDebuggerArgs) MarshalJSON ¶
func (a *WaitForDebuggerArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for WaitForDebugger in the Page domain.
func (*WaitForDebuggerArgs) UnmarshalJSON ¶
func (a *WaitForDebuggerArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WaitForDebugger in the Page domain.
type WaitForDebuggerReply ¶
type WaitForDebuggerReply struct { }
WaitForDebuggerReply represents the return values for WaitForDebugger in the Page domain.
func (*WaitForDebuggerReply) GetFrameID ¶
func (a *WaitForDebuggerReply) GetFrameID() string
WaitForDebuggerReply returns the FrameID value for WaitForDebugger in the Page domain.
func (*WaitForDebuggerReply) MatchFrameID ¶
func (a *WaitForDebuggerReply) MatchFrameID(frameID string, m []byte) (bool, error)
WaitForDebuggerReply returns whether or not the FrameID matches the reply value for WaitForDebugger in the Page domain.
func (*WaitForDebuggerReply) UnmarshalJSON ¶
func (a *WaitForDebuggerReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WaitForDebugger in the Page domain.
type WindowOpenReply ¶
type WindowOpenReply 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. }
WindowOpenReply is the reply for WindowOpen events.
func (*WindowOpenReply) GetFrameID ¶
func (a *WindowOpenReply) GetFrameID() string
WindowOpenReply returns the FrameID for WindowOpen in the Page domain.
func (*WindowOpenReply) MatchFrameID ¶
func (a *WindowOpenReply) MatchFrameID(frameID string, m []byte) (bool, error)
WindowOpenReply returns whether or not the FrameID matches the reply value for WindowOpen in the Page domain.
func (*WindowOpenReply) UnmarshalJSON ¶
func (a *WindowOpenReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WindowOpen in the Page domain.