Documentation ¶
Overview ¶
Package page provides the Chrome Debugging Protocol commands, types, and events for the Page domain.
Actions and events related to the inspected page belong to the page domain.
Generated by the chromedp-gen command.
Index ¶
- Variables
- type AddScriptToEvaluateOnLoadParams
- func (p *AddScriptToEvaluateOnLoadParams) Do(ctxt context.Context, h cdp.Handler) (identifier ScriptIdentifier, err error)
- func (v AddScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v AddScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error)
- func (v *AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AddScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error
- type AddScriptToEvaluateOnLoadReturns
- func (v AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v AddScriptToEvaluateOnLoadReturns) MarshalJSON() ([]byte, error)
- func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalJSON(data []byte) error
- type AppManifestError
- type CaptureScreenshotFormat
- func (t CaptureScreenshotFormat) MarshalEasyJSON(out *jwriter.Writer)
- func (t CaptureScreenshotFormat) MarshalJSON() ([]byte, error)
- func (t CaptureScreenshotFormat) String() string
- func (t *CaptureScreenshotFormat) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *CaptureScreenshotFormat) UnmarshalJSON(buf []byte) error
- type CaptureScreenshotParams
- func (p *CaptureScreenshotParams) Do(ctxt context.Context, h cdp.Handler) (data []byte, err error)
- func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error)
- func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error
- func (p CaptureScreenshotParams) WithFormat(format CaptureScreenshotFormat) *CaptureScreenshotParams
- func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams
- func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotParams
- type CaptureScreenshotReturns
- type CreateIsolatedWorldParams
- func (p *CreateIsolatedWorldParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error)
- func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error
- func (p CreateIsolatedWorldParams) WithGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldParams
- func (p CreateIsolatedWorldParams) WithWorldName(worldName string) *CreateIsolatedWorldParams
- type DialogType
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type EnableParams
- type EventDomContentEventFired
- type EventFrameAttached
- type EventFrameClearedScheduledNavigation
- func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer)
- func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error)
- func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error
- type EventFrameDetached
- type EventFrameNavigated
- type EventFrameResized
- type EventFrameScheduledNavigation
- type EventFrameStartedLoading
- type EventFrameStoppedLoading
- type EventInterstitialHidden
- type EventInterstitialShown
- type EventJavascriptDialogClosed
- type EventJavascriptDialogOpening
- type EventLoadEventFired
- type EventNavigationRequested
- type EventScreencastFrame
- type EventScreencastVisibilityChanged
- func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer)
- func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error)
- func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error
- type FrameResource
- type FrameResourceTree
- type GetAppManifestParams
- func (p *GetAppManifestParams) Do(ctxt context.Context, h cdp.Handler) (url string, errors []*AppManifestError, data string, err error)
- func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetAppManifestParams) MarshalJSON() ([]byte, error)
- func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error
- type GetAppManifestReturns
- type GetLayoutMetricsParams
- func (p *GetLayoutMetricsParams) Do(ctxt context.Context, h cdp.Handler) (layoutViewport *LayoutViewport, visualViewport *VisualViewport, ...)
- func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error)
- func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error
- type GetLayoutMetricsReturns
- type GetNavigationHistoryParams
- func (p *GetNavigationHistoryParams) Do(ctxt context.Context, h cdp.Handler) (currentIndex int64, entries []*NavigationEntry, err error)
- func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error)
- func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error
- type GetNavigationHistoryReturns
- type GetResourceContentParams
- func (p *GetResourceContentParams) Do(ctxt context.Context, h cdp.Handler) (content []byte, err error)
- func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetResourceContentParams) MarshalJSON() ([]byte, error)
- func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error
- type GetResourceContentReturns
- type GetResourceTreeParams
- func (p *GetResourceTreeParams) Do(ctxt context.Context, h cdp.Handler) (frameTree *FrameResourceTree, err error)
- func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetResourceTreeParams) MarshalJSON() ([]byte, error)
- func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error
- type GetResourceTreeReturns
- type HandleJavaScriptDialogParams
- func (p *HandleJavaScriptDialogParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error)
- func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error
- func (p HandleJavaScriptDialogParams) WithPromptText(promptText string) *HandleJavaScriptDialogParams
- type LayoutViewport
- type NavigateParams
- func (p *NavigateParams) Do(ctxt context.Context, h cdp.Handler) (frameID cdp.FrameID, err error)
- func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v NavigateParams) MarshalJSON() ([]byte, error)
- func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *NavigateParams) UnmarshalJSON(data []byte) error
- func (p NavigateParams) WithReferrer(referrer string) *NavigateParams
- func (p NavigateParams) WithTransitionType(transitionType TransitionType) *NavigateParams
- type NavigateReturns
- type NavigateToHistoryEntryParams
- func (p *NavigateToHistoryEntryParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error)
- func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error
- type NavigationEntry
- type NavigationResponse
- type PrintToPDFParams
- func (p *PrintToPDFParams) Do(ctxt context.Context, h cdp.Handler) (data []byte, err error)
- func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v PrintToPDFParams) MarshalJSON() ([]byte, error)
- func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error
- func (p PrintToPDFParams) WithDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFParams
- func (p PrintToPDFParams) WithLandscape(landscape bool) *PrintToPDFParams
- func (p PrintToPDFParams) WithMarginBottom(marginBottom float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithMarginLeft(marginLeft float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithMarginRight(marginRight float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithMarginTop(marginTop float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithPageRanges(pageRanges string) *PrintToPDFParams
- func (p PrintToPDFParams) WithPaperHeight(paperHeight float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithPaperWidth(paperWidth float64) *PrintToPDFParams
- func (p PrintToPDFParams) WithPrintBackground(printBackground bool) *PrintToPDFParams
- func (p PrintToPDFParams) WithScale(scale float64) *PrintToPDFParams
- type PrintToPDFReturns
- type ProcessNavigationParams
- func (p *ProcessNavigationParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ProcessNavigationParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ProcessNavigationParams) MarshalJSON() ([]byte, error)
- func (v *ProcessNavigationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ProcessNavigationParams) UnmarshalJSON(data []byte) error
- type ReloadParams
- func (p *ReloadParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ReloadParams) MarshalJSON() ([]byte, error)
- func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ReloadParams) UnmarshalJSON(data []byte) error
- func (p ReloadParams) WithIgnoreCache(ignoreCache bool) *ReloadParams
- func (p ReloadParams) WithScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadParams
- type RemoveScriptToEvaluateOnLoadParams
- func (p *RemoveScriptToEvaluateOnLoadParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RemoveScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error)
- func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error
- type RequestAppBannerParams
- func (p *RequestAppBannerParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestAppBannerParams) MarshalJSON() ([]byte, error)
- func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error
- type ResourceType
- type ScreencastFormat
- type ScreencastFrameAckParams
- func (p *ScreencastFrameAckParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error)
- func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error
- type ScreencastFrameMetadata
- type ScriptIdentifier
- type SearchInResourceParams
- func (p *SearchInResourceParams) Do(ctxt context.Context, h cdp.Handler) (result []*debugger.SearchMatch, err error)
- func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SearchInResourceParams) MarshalJSON() ([]byte, error)
- func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error
- func (p SearchInResourceParams) WithCaseSensitive(caseSensitive bool) *SearchInResourceParams
- func (p SearchInResourceParams) WithIsRegex(isRegex bool) *SearchInResourceParams
- type SearchInResourceReturns
- type SetAutoAttachToCreatedPagesParams
- func (p *SetAutoAttachToCreatedPagesParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error)
- func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error
- type SetControlNavigationsParams
- func (p *SetControlNavigationsParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetControlNavigationsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetControlNavigationsParams) MarshalJSON() ([]byte, error)
- func (v *SetControlNavigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetControlNavigationsParams) UnmarshalJSON(data []byte) error
- type SetDocumentContentParams
- func (p *SetDocumentContentParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetDocumentContentParams) MarshalJSON() ([]byte, error)
- func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error
- type StartScreencastParams
- func (p *StartScreencastParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartScreencastParams) MarshalJSON() ([]byte, error)
- func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartScreencastParams) UnmarshalJSON(data []byte) error
- func (p StartScreencastParams) WithEveryNthFrame(everyNthFrame int64) *StartScreencastParams
- func (p StartScreencastParams) WithFormat(format ScreencastFormat) *StartScreencastParams
- func (p StartScreencastParams) WithMaxHeight(maxHeight int64) *StartScreencastParams
- func (p StartScreencastParams) WithMaxWidth(maxWidth int64) *StartScreencastParams
- func (p StartScreencastParams) WithQuality(quality int64) *StartScreencastParams
- type StopLoadingParams
- func (p *StopLoadingParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopLoadingParams) MarshalJSON() ([]byte, error)
- func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopLoadingParams) UnmarshalJSON(data []byte) error
- type StopScreencastParams
- func (p *StopScreencastParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopScreencastParams) MarshalJSON() ([]byte, error)
- func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopScreencastParams) UnmarshalJSON(data []byte) error
- type TransitionType
- type VisualViewport
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventPageDomContentEventFired, cdp.EventPageLoadEventFired, cdp.EventPageFrameAttached, cdp.EventPageFrameNavigated, cdp.EventPageFrameDetached, cdp.EventPageFrameStartedLoading, cdp.EventPageFrameStoppedLoading, cdp.EventPageFrameScheduledNavigation, cdp.EventPageFrameClearedScheduledNavigation, cdp.EventPageFrameResized, cdp.EventPageJavascriptDialogOpening, cdp.EventPageJavascriptDialogClosed, cdp.EventPageScreencastFrame, cdp.EventPageScreencastVisibilityChanged, cdp.EventPageInterstitialShown, cdp.EventPageInterstitialHidden, cdp.EventPageNavigationRequested, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type AddScriptToEvaluateOnLoadParams ¶
type AddScriptToEvaluateOnLoadParams struct {
ScriptSource string `json:"scriptSource"`
}
AddScriptToEvaluateOnLoadParams [no description].
func AddScriptToEvaluateOnLoad ¶
func AddScriptToEvaluateOnLoad(scriptSource string) *AddScriptToEvaluateOnLoadParams
AddScriptToEvaluateOnLoad [no description].
parameters:
scriptSource
func (*AddScriptToEvaluateOnLoadParams) Do ¶
func (p *AddScriptToEvaluateOnLoadParams) Do(ctxt context.Context, h cdp.Handler) (identifier ScriptIdentifier, err error)
Do executes Page.addScriptToEvaluateOnLoad against the provided context and target handler.
returns:
identifier - Identifier of the added script.
func (AddScriptToEvaluateOnLoadParams) MarshalEasyJSON ¶
func (v AddScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddScriptToEvaluateOnLoadParams) MarshalJSON ¶
func (v AddScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON ¶
func (v *AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddScriptToEvaluateOnLoadParams) UnmarshalJSON ¶
func (v *AddScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AddScriptToEvaluateOnLoadReturns ¶
type AddScriptToEvaluateOnLoadReturns struct {
Identifier ScriptIdentifier `json:"identifier,omitempty"` // Identifier of the added script.
}
AddScriptToEvaluateOnLoadReturns return values.
func (AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON ¶
func (v AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddScriptToEvaluateOnLoadReturns) MarshalJSON ¶
func (v AddScriptToEvaluateOnLoadReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON ¶
func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddScriptToEvaluateOnLoadReturns) UnmarshalJSON ¶
func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AppManifestError ¶
type AppManifestError struct { Message string `json:"message,omitempty"` // Error message. Critical int64 `json:"critical,omitempty"` // If criticial, this is a non-recoverable parse error. Line int64 `json:"line,omitempty"` // Error line. Column int64 `json:"column,omitempty"` // Error column. }
AppManifestError error while paring app manifest.
func (AppManifestError) MarshalEasyJSON ¶
func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AppManifestError) MarshalJSON ¶
func (v AppManifestError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AppManifestError) UnmarshalEasyJSON ¶
func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AppManifestError) UnmarshalJSON ¶
func (v *AppManifestError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CaptureScreenshotFormat ¶
type CaptureScreenshotFormat string
CaptureScreenshotFormat image compression format (defaults to png).
const ( CaptureScreenshotFormatJpeg CaptureScreenshotFormat = "jpeg" CaptureScreenshotFormatPng CaptureScreenshotFormat = "png" )
CaptureScreenshotFormat values.
func (CaptureScreenshotFormat) MarshalEasyJSON ¶
func (t CaptureScreenshotFormat) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CaptureScreenshotFormat) MarshalJSON ¶
func (t CaptureScreenshotFormat) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CaptureScreenshotFormat) String ¶
func (t CaptureScreenshotFormat) String() string
String returns the CaptureScreenshotFormat as string value.
func (*CaptureScreenshotFormat) UnmarshalEasyJSON ¶
func (t *CaptureScreenshotFormat) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*CaptureScreenshotFormat) UnmarshalJSON ¶
func (t *CaptureScreenshotFormat) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type CaptureScreenshotParams ¶
type CaptureScreenshotParams struct { Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png). Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only). FromSurface bool `json:"fromSurface,omitempty"` // Capture the screenshot from the surface, rather than the view. Defaults to true. }
CaptureScreenshotParams capture page screenshot.
func CaptureScreenshot ¶
func CaptureScreenshot() *CaptureScreenshotParams
CaptureScreenshot capture page screenshot.
parameters:
func (*CaptureScreenshotParams) Do ¶
Do executes Page.captureScreenshot against the provided context and target handler.
returns:
data - Base64-encoded image data.
func (CaptureScreenshotParams) MarshalEasyJSON ¶
func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CaptureScreenshotParams) MarshalJSON ¶
func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CaptureScreenshotParams) UnmarshalEasyJSON ¶
func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CaptureScreenshotParams) UnmarshalJSON ¶
func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (CaptureScreenshotParams) WithFormat ¶
func (p CaptureScreenshotParams) WithFormat(format CaptureScreenshotFormat) *CaptureScreenshotParams
WithFormat image compression format (defaults to png).
func (CaptureScreenshotParams) WithFromSurface ¶
func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams
WithFromSurface capture the screenshot from the surface, rather than the view. Defaults to true.
func (CaptureScreenshotParams) WithQuality ¶
func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotParams
WithQuality compression quality from range [0..100] (jpeg only).
type CaptureScreenshotReturns ¶
type CaptureScreenshotReturns struct {
Data string `json:"data,omitempty"` // Base64-encoded image data.
}
CaptureScreenshotReturns return values.
func (CaptureScreenshotReturns) MarshalEasyJSON ¶
func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CaptureScreenshotReturns) MarshalJSON ¶
func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CaptureScreenshotReturns) UnmarshalEasyJSON ¶
func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CaptureScreenshotReturns) UnmarshalJSON ¶
func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateIsolatedWorldParams ¶
type CreateIsolatedWorldParams struct { FrameID cdp.FrameID `json:"frameId"` // Id of the frame in which the isolated world should be created. WorldName string `json:"worldName,omitempty"` // An optional name which is reported in the Execution Context. GrantUniveralAccess bool `json:"grantUniveralAccess,omitempty"` // Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution. }
CreateIsolatedWorldParams creates an isolated world for the given frame.
func CreateIsolatedWorld ¶
func CreateIsolatedWorld(frameID cdp.FrameID) *CreateIsolatedWorldParams
CreateIsolatedWorld creates an isolated world for the given frame.
parameters:
frameID - Id of the frame in which the isolated world should be created.
func (*CreateIsolatedWorldParams) Do ¶
Do executes Page.createIsolatedWorld against the provided context and target handler.
func (CreateIsolatedWorldParams) MarshalEasyJSON ¶
func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateIsolatedWorldParams) MarshalJSON ¶
func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateIsolatedWorldParams) UnmarshalEasyJSON ¶
func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateIsolatedWorldParams) UnmarshalJSON ¶
func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (CreateIsolatedWorldParams) WithGrantUniveralAccess ¶
func (p CreateIsolatedWorldParams) WithGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldParams
WithGrantUniveralAccess whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
func (CreateIsolatedWorldParams) WithWorldName ¶
func (p CreateIsolatedWorldParams) WithWorldName(worldName string) *CreateIsolatedWorldParams
WithWorldName an optional name which is reported in the Execution Context.
type DialogType ¶
type DialogType string
DialogType javascript dialog type.
const ( DialogTypeAlert DialogType = "alert" DialogTypeConfirm DialogType = "confirm" DialogTypePrompt DialogType = "prompt" DialogTypeBeforeunload DialogType = "beforeunload" )
DialogType values.
func (DialogType) MarshalEasyJSON ¶
func (t DialogType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (DialogType) MarshalJSON ¶
func (t DialogType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (DialogType) String ¶
func (t DialogType) String() string
String returns the DialogType as string value.
func (*DialogType) UnmarshalEasyJSON ¶
func (t *DialogType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*DialogType) UnmarshalJSON ¶
func (t *DialogType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type DisableParams ¶
type DisableParams struct{}
DisableParams disables page domain notifications.
func (*DisableParams) Do ¶
Do executes Page.disable against the provided context and target handler.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables page domain notifications.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDomContentEventFired ¶
EventDomContentEventFired [no description].
func (EventDomContentEventFired) MarshalEasyJSON ¶
func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDomContentEventFired) MarshalJSON ¶
func (v EventDomContentEventFired) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDomContentEventFired) UnmarshalEasyJSON ¶
func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDomContentEventFired) UnmarshalJSON ¶
func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameAttached ¶
type EventFrameAttached struct { FrameID cdp.FrameID `json:"frameId,omitempty"` // Id of the frame that has been attached. ParentFrameID cdp.FrameID `json:"parentFrameId,omitempty"` // Parent frame identifier. Stack *runtime.StackTrace `json:"stack,omitempty"` // JavaScript stack trace of when frame was attached, only set if frame initiated from script. }
EventFrameAttached fired when frame has been attached to its parent.
func (EventFrameAttached) MarshalEasyJSON ¶
func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameAttached) MarshalJSON ¶
func (v EventFrameAttached) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameAttached) UnmarshalEasyJSON ¶
func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameAttached) UnmarshalJSON ¶
func (v *EventFrameAttached) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameClearedScheduledNavigation ¶
type EventFrameClearedScheduledNavigation struct {
}EventFrameClearedScheduledNavigation fired when frame no longer has a scheduled navigation.
func (EventFrameClearedScheduledNavigation) MarshalEasyJSON ¶
func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameClearedScheduledNavigation) MarshalJSON ¶
func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameClearedScheduledNavigation) UnmarshalEasyJSON ¶
func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameClearedScheduledNavigation) UnmarshalJSON ¶
func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameDetached ¶
type EventFrameDetached struct {
FrameID cdp.FrameID `json:"frameId,omitempty"` // Id of the frame that has been detached.
}
EventFrameDetached fired when frame has been detached from its parent.
func (EventFrameDetached) MarshalEasyJSON ¶
func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameDetached) MarshalJSON ¶
func (v EventFrameDetached) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameDetached) UnmarshalEasyJSON ¶
func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameDetached) UnmarshalJSON ¶
func (v *EventFrameDetached) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameNavigated ¶
type EventFrameNavigated struct {
}EventFrameNavigated fired once navigation of the frame has completed. Frame is now associated with the new loader.
func (EventFrameNavigated) MarshalEasyJSON ¶
func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameNavigated) MarshalJSON ¶
func (v EventFrameNavigated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameNavigated) UnmarshalEasyJSON ¶
func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameNavigated) UnmarshalJSON ¶
func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameResized ¶
type EventFrameResized struct{}
EventFrameResized [no description].
func (EventFrameResized) MarshalEasyJSON ¶
func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameResized) MarshalJSON ¶
func (v EventFrameResized) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameResized) UnmarshalEasyJSON ¶
func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameResized) UnmarshalJSON ¶
func (v *EventFrameResized) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameScheduledNavigation ¶
type EventFrameScheduledNavigation struct {}
EventFrameScheduledNavigation fired when frame schedules a potential navigation.
func (EventFrameScheduledNavigation) MarshalEasyJSON ¶
func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameScheduledNavigation) MarshalJSON ¶
func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameScheduledNavigation) UnmarshalEasyJSON ¶
func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameScheduledNavigation) UnmarshalJSON ¶
func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameStartedLoading ¶
type EventFrameStartedLoading struct {
FrameID cdp.FrameID `json:"frameId,omitempty"` // Id of the frame that has started loading.
}
EventFrameStartedLoading fired when frame has started loading.
func (EventFrameStartedLoading) MarshalEasyJSON ¶
func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameStartedLoading) MarshalJSON ¶
func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameStartedLoading) UnmarshalEasyJSON ¶
func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameStartedLoading) UnmarshalJSON ¶
func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFrameStoppedLoading ¶
type EventFrameStoppedLoading struct {
FrameID cdp.FrameID `json:"frameId,omitempty"` // Id of the frame that has stopped loading.
}
EventFrameStoppedLoading fired when frame has stopped loading.
func (EventFrameStoppedLoading) MarshalEasyJSON ¶
func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFrameStoppedLoading) MarshalJSON ¶
func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFrameStoppedLoading) UnmarshalEasyJSON ¶
func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFrameStoppedLoading) UnmarshalJSON ¶
func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventInterstitialHidden ¶
type EventInterstitialHidden struct{}
EventInterstitialHidden fired when interstitial page was hidden.
func (EventInterstitialHidden) MarshalEasyJSON ¶
func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventInterstitialHidden) MarshalJSON ¶
func (v EventInterstitialHidden) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventInterstitialHidden) UnmarshalEasyJSON ¶
func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventInterstitialHidden) UnmarshalJSON ¶
func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventInterstitialShown ¶
type EventInterstitialShown struct{}
EventInterstitialShown fired when interstitial page was shown.
func (EventInterstitialShown) MarshalEasyJSON ¶
func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventInterstitialShown) MarshalJSON ¶
func (v EventInterstitialShown) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventInterstitialShown) UnmarshalEasyJSON ¶
func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventInterstitialShown) UnmarshalJSON ¶
func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventJavascriptDialogClosed ¶
type EventJavascriptDialogClosed struct {
Result bool `json:"result,omitempty"` // Whether dialog was confirmed.
}
EventJavascriptDialogClosed fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
func (EventJavascriptDialogClosed) MarshalEasyJSON ¶
func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventJavascriptDialogClosed) MarshalJSON ¶
func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventJavascriptDialogClosed) UnmarshalEasyJSON ¶
func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventJavascriptDialogClosed) UnmarshalJSON ¶
func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventJavascriptDialogOpening ¶
type EventJavascriptDialogOpening struct { Message string `json:"message,omitempty"` // Message that will be displayed by the dialog. Type DialogType `json:"type,omitempty"` // Dialog type. }
EventJavascriptDialogOpening fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
func (EventJavascriptDialogOpening) MarshalEasyJSON ¶
func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventJavascriptDialogOpening) MarshalJSON ¶
func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventJavascriptDialogOpening) UnmarshalEasyJSON ¶
func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventJavascriptDialogOpening) UnmarshalJSON ¶
func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventLoadEventFired ¶
EventLoadEventFired [no description].
func (EventLoadEventFired) MarshalEasyJSON ¶
func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventLoadEventFired) MarshalJSON ¶
func (v EventLoadEventFired) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventLoadEventFired) UnmarshalEasyJSON ¶
func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventLoadEventFired) UnmarshalJSON ¶
func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventNavigationRequested ¶
type EventNavigationRequested struct {}
EventNavigationRequested fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.
func (EventNavigationRequested) MarshalEasyJSON ¶
func (v EventNavigationRequested) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventNavigationRequested) MarshalJSON ¶
func (v EventNavigationRequested) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventNavigationRequested) UnmarshalEasyJSON ¶
func (v *EventNavigationRequested) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventNavigationRequested) UnmarshalJSON ¶
func (v *EventNavigationRequested) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventScreencastFrame ¶
type EventScreencastFrame struct { Data string `json:"data,omitempty"` // Base64-encoded compressed image. Metadata *ScreencastFrameMetadata `json:"metadata,omitempty"` // Screencast frame metadata. SessionID int64 `json:"sessionId,omitempty"` // Frame number. }
EventScreencastFrame compressed image data requested by the startScreencast.
func (EventScreencastFrame) MarshalEasyJSON ¶
func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventScreencastFrame) MarshalJSON ¶
func (v EventScreencastFrame) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventScreencastFrame) UnmarshalEasyJSON ¶
func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventScreencastFrame) UnmarshalJSON ¶
func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventScreencastVisibilityChanged ¶
type EventScreencastVisibilityChanged struct {
Visible bool `json:"visible,omitempty"` // True if the page is visible.
}
EventScreencastVisibilityChanged fired when the page with currently enabled screencast was shown or hidden .
func (EventScreencastVisibilityChanged) MarshalEasyJSON ¶
func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventScreencastVisibilityChanged) MarshalJSON ¶
func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventScreencastVisibilityChanged) UnmarshalEasyJSON ¶
func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventScreencastVisibilityChanged) UnmarshalJSON ¶
func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FrameResource ¶
type FrameResource struct { URL string `json:"url,omitempty"` // Resource URL. Type ResourceType `json:"type,omitempty"` // Type of this resource. MimeType string `json:"mimeType,omitempty"` // Resource mimeType as determined by the browser. LastModified cdp.Timestamp `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.
func (FrameResource) MarshalEasyJSON ¶
func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FrameResource) MarshalJSON ¶
func (v FrameResource) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FrameResource) UnmarshalEasyJSON ¶
func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FrameResource) UnmarshalJSON ¶
func (v *FrameResource) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FrameResourceTree ¶
type FrameResourceTree struct { Frame *cdp.Frame `json:"frame,omitempty"` // Frame information for this tree item. ChildFrames []*FrameResourceTree `json:"childFrames,omitempty"` // Child frames. Resources []*FrameResource `json:"resources,omitempty"` // Information about frame resources. }
FrameResourceTree information about the Frame hierarchy along with their cached resources.
func (FrameResourceTree) MarshalEasyJSON ¶
func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FrameResourceTree) MarshalJSON ¶
func (v FrameResourceTree) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FrameResourceTree) UnmarshalEasyJSON ¶
func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FrameResourceTree) UnmarshalJSON ¶
func (v *FrameResourceTree) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAppManifestParams ¶
type GetAppManifestParams struct{}
GetAppManifestParams [no description].
func (*GetAppManifestParams) Do ¶
func (p *GetAppManifestParams) Do(ctxt context.Context, h cdp.Handler) (url string, errors []*AppManifestError, data string, err error)
Do executes Page.getAppManifest against the provided context and target handler.
returns:
url - Manifest location. errors data - Manifest content.
func (GetAppManifestParams) MarshalEasyJSON ¶
func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAppManifestParams) MarshalJSON ¶
func (v GetAppManifestParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAppManifestParams) UnmarshalEasyJSON ¶
func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAppManifestParams) UnmarshalJSON ¶
func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAppManifestReturns ¶
type GetAppManifestReturns struct { URL string `json:"url,omitempty"` // Manifest location. Errors []*AppManifestError `json:"errors,omitempty"` Data string `json:"data,omitempty"` // Manifest content. }
GetAppManifestReturns return values.
func (GetAppManifestReturns) MarshalEasyJSON ¶
func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAppManifestReturns) MarshalJSON ¶
func (v GetAppManifestReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAppManifestReturns) UnmarshalEasyJSON ¶
func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAppManifestReturns) UnmarshalJSON ¶
func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetLayoutMetricsParams ¶
type GetLayoutMetricsParams struct{}
GetLayoutMetricsParams returns metrics relating to the layouting of the page, such as viewport bounds/scale.
func GetLayoutMetrics ¶
func GetLayoutMetrics() *GetLayoutMetricsParams
GetLayoutMetrics returns metrics relating to the layouting of the page, such as viewport bounds/scale.
func (*GetLayoutMetricsParams) Do ¶
func (p *GetLayoutMetricsParams) Do(ctxt context.Context, h cdp.Handler) (layoutViewport *LayoutViewport, visualViewport *VisualViewport, contentSize *dom.Rect, err error)
Do executes Page.getLayoutMetrics against the provided context and target handler.
returns:
layoutViewport - Metrics relating to the layout viewport. visualViewport - Metrics relating to the visual viewport. contentSize - Size of scrollable area.
func (GetLayoutMetricsParams) MarshalEasyJSON ¶
func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetLayoutMetricsParams) MarshalJSON ¶
func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetLayoutMetricsParams) UnmarshalEasyJSON ¶
func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetLayoutMetricsParams) UnmarshalJSON ¶
func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetLayoutMetricsReturns ¶
type GetLayoutMetricsReturns struct { LayoutViewport *LayoutViewport `json:"layoutViewport,omitempty"` // Metrics relating to the layout viewport. VisualViewport *VisualViewport `json:"visualViewport,omitempty"` // Metrics relating to the visual viewport. ContentSize *dom.Rect `json:"contentSize,omitempty"` // Size of scrollable area. }
GetLayoutMetricsReturns return values.
func (GetLayoutMetricsReturns) MarshalEasyJSON ¶
func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetLayoutMetricsReturns) MarshalJSON ¶
func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetLayoutMetricsReturns) UnmarshalEasyJSON ¶
func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetLayoutMetricsReturns) UnmarshalJSON ¶
func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNavigationHistoryParams ¶
type GetNavigationHistoryParams struct{}
GetNavigationHistoryParams returns navigation history for the current page.
func GetNavigationHistory ¶
func GetNavigationHistory() *GetNavigationHistoryParams
GetNavigationHistory returns navigation history for the current page.
func (*GetNavigationHistoryParams) Do ¶
func (p *GetNavigationHistoryParams) Do(ctxt context.Context, h cdp.Handler) (currentIndex int64, entries []*NavigationEntry, err error)
Do executes Page.getNavigationHistory against the provided context and target handler.
returns:
currentIndex - Index of the current navigation history entry. entries - Array of navigation history entries.
func (GetNavigationHistoryParams) MarshalEasyJSON ¶
func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetNavigationHistoryParams) MarshalJSON ¶
func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetNavigationHistoryParams) UnmarshalEasyJSON ¶
func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetNavigationHistoryParams) UnmarshalJSON ¶
func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetNavigationHistoryReturns ¶
type GetNavigationHistoryReturns struct {}
GetNavigationHistoryReturns return values.
func (GetNavigationHistoryReturns) MarshalEasyJSON ¶
func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetNavigationHistoryReturns) MarshalJSON ¶
func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetNavigationHistoryReturns) UnmarshalEasyJSON ¶
func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetNavigationHistoryReturns) UnmarshalJSON ¶
func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResourceContentParams ¶
type GetResourceContentParams struct { FrameID cdp.FrameID `json:"frameId"` // Frame id to get resource for. URL string `json:"url"` // URL of the resource to get content for. }
GetResourceContentParams returns content of the given resource.
func GetResourceContent ¶
func GetResourceContent(frameID cdp.FrameID, url string) *GetResourceContentParams
GetResourceContent returns content of the given resource.
parameters:
frameID - Frame id to get resource for. url - URL of the resource to get content for.
func (*GetResourceContentParams) Do ¶
func (p *GetResourceContentParams) Do(ctxt context.Context, h cdp.Handler) (content []byte, err error)
Do executes Page.getResourceContent against the provided context and target handler.
returns:
content - Resource content.
func (GetResourceContentParams) MarshalEasyJSON ¶
func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResourceContentParams) MarshalJSON ¶
func (v GetResourceContentParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResourceContentParams) UnmarshalEasyJSON ¶
func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResourceContentParams) UnmarshalJSON ¶
func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResourceContentReturns ¶
type GetResourceContentReturns struct { Content string `json:"content,omitempty"` // Resource content. Base64encoded bool `json:"base64Encoded,omitempty"` // True, if content was served as base64. }
GetResourceContentReturns return values.
func (GetResourceContentReturns) MarshalEasyJSON ¶
func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResourceContentReturns) MarshalJSON ¶
func (v GetResourceContentReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResourceContentReturns) UnmarshalEasyJSON ¶
func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResourceContentReturns) UnmarshalJSON ¶
func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResourceTreeParams ¶
type GetResourceTreeParams struct{}
GetResourceTreeParams returns present frame / resource tree structure.
func GetResourceTree ¶
func GetResourceTree() *GetResourceTreeParams
GetResourceTree returns present frame / resource tree structure.
func (*GetResourceTreeParams) Do ¶
func (p *GetResourceTreeParams) Do(ctxt context.Context, h cdp.Handler) (frameTree *FrameResourceTree, err error)
Do executes Page.getResourceTree against the provided context and target handler.
returns:
frameTree - Present frame / resource tree structure.
func (GetResourceTreeParams) MarshalEasyJSON ¶
func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResourceTreeParams) MarshalJSON ¶
func (v GetResourceTreeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResourceTreeParams) UnmarshalEasyJSON ¶
func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResourceTreeParams) UnmarshalJSON ¶
func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResourceTreeReturns ¶
type GetResourceTreeReturns struct {
FrameTree *FrameResourceTree `json:"frameTree,omitempty"` // Present frame / resource tree structure.
}
GetResourceTreeReturns return values.
func (GetResourceTreeReturns) MarshalEasyJSON ¶
func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResourceTreeReturns) MarshalJSON ¶
func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResourceTreeReturns) UnmarshalEasyJSON ¶
func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResourceTreeReturns) UnmarshalJSON ¶
func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HandleJavaScriptDialogParams ¶
type HandleJavaScriptDialogParams struct { Accept bool `json:"accept"` // Whether to accept or dismiss the dialog. PromptText string `json:"promptText,omitempty"` // The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog. }
HandleJavaScriptDialogParams accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
func HandleJavaScriptDialog ¶
func HandleJavaScriptDialog(accept bool) *HandleJavaScriptDialogParams
HandleJavaScriptDialog accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
parameters:
accept - Whether to accept or dismiss the dialog.
func (*HandleJavaScriptDialogParams) Do ¶
Do executes Page.handleJavaScriptDialog against the provided context and target handler.
func (HandleJavaScriptDialogParams) MarshalEasyJSON ¶
func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HandleJavaScriptDialogParams) MarshalJSON ¶
func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HandleJavaScriptDialogParams) UnmarshalEasyJSON ¶
func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HandleJavaScriptDialogParams) UnmarshalJSON ¶
func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HandleJavaScriptDialogParams) WithPromptText ¶
func (p HandleJavaScriptDialogParams) WithPromptText(promptText string) *HandleJavaScriptDialogParams
WithPromptText the text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.
type LayoutViewport ¶
type LayoutViewport struct { PageX int64 `json:"pageX,omitempty"` // Horizontal offset relative to the document (CSS pixels). PageY int64 `json:"pageY,omitempty"` // Vertical offset relative to the document (CSS pixels). ClientWidth int64 `json:"clientWidth,omitempty"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight int64 `json:"clientHeight,omitempty"` // Height (CSS pixels), excludes scrollbar if present. }
LayoutViewport layout viewport position and dimensions.
func (LayoutViewport) MarshalEasyJSON ¶
func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (LayoutViewport) MarshalJSON ¶
func (v LayoutViewport) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*LayoutViewport) UnmarshalEasyJSON ¶
func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LayoutViewport) UnmarshalJSON ¶
func (v *LayoutViewport) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NavigateParams ¶
type NavigateParams struct {}
NavigateParams navigates current page to the given URL.
func Navigate ¶
func Navigate(url string) *NavigateParams
Navigate navigates current page to the given URL.
parameters:
url - URL to navigate the page to.
func (*NavigateParams) Do ¶
Do executes Page.navigate against the provided context and target handler.
returns:
frameID - Frame id that will be navigated.
func (NavigateParams) MarshalEasyJSON ¶
func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NavigateParams) MarshalJSON ¶
func (v NavigateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NavigateParams) UnmarshalEasyJSON ¶
func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NavigateParams) UnmarshalJSON ¶
func (v *NavigateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (NavigateParams) WithReferrer ¶
func (p NavigateParams) WithReferrer(referrer string) *NavigateParams
WithReferrer referrer URL.
func (NavigateParams) WithTransitionType ¶
func (p NavigateParams) WithTransitionType(transitionType TransitionType) *NavigateParams
WithTransitionType intended transition type.
type NavigateReturns ¶
type NavigateReturns struct {
}NavigateReturns return values.
func (NavigateReturns) MarshalEasyJSON ¶
func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NavigateReturns) MarshalJSON ¶
func (v NavigateReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NavigateReturns) UnmarshalEasyJSON ¶
func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NavigateReturns) UnmarshalJSON ¶
func (v *NavigateReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NavigateToHistoryEntryParams ¶
type NavigateToHistoryEntryParams struct {
}NavigateToHistoryEntryParams navigates current page to the given history entry.
func NavigateToHistoryEntry ¶
func NavigateToHistoryEntry(entryID int64) *NavigateToHistoryEntryParams
NavigateToHistoryEntry navigates current page to the given history entry.
parameters:
entryID - Unique id of the entry to navigate to.
func (*NavigateToHistoryEntryParams) Do ¶
Do executes Page.navigateToHistoryEntry against the provided context and target handler.
func (NavigateToHistoryEntryParams) MarshalEasyJSON ¶
func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NavigateToHistoryEntryParams) MarshalJSON ¶
func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NavigateToHistoryEntryParams) UnmarshalEasyJSON ¶
func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NavigateToHistoryEntryParams) UnmarshalJSON ¶
func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NavigationEntry ¶
type NavigationEntry struct {}
NavigationEntry navigation history entry.
func (NavigationEntry) MarshalEasyJSON ¶
func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NavigationEntry) MarshalJSON ¶
func (v NavigationEntry) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NavigationEntry) UnmarshalEasyJSON ¶
func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NavigationEntry) UnmarshalJSON ¶
func (v *NavigationEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NavigationResponse ¶
type NavigationResponse string
NavigationResponse proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.
const ()
NavigationResponse values.
func (NavigationResponse) MarshalEasyJSON ¶
func (t NavigationResponse) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (NavigationResponse) MarshalJSON ¶
func (t NavigationResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (NavigationResponse) String ¶
func (t NavigationResponse) String() string
String returns the NavigationResponse as string value.
func (*NavigationResponse) UnmarshalEasyJSON ¶
func (t *NavigationResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*NavigationResponse) UnmarshalJSON ¶
func (t *NavigationResponse) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type PrintToPDFParams ¶
type PrintToPDFParams 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. }
PrintToPDFParams print page as PDF.
func (*PrintToPDFParams) Do ¶
Do executes Page.printToPDF against the provided context and target handler.
returns:
data - Base64-encoded pdf data.
func (PrintToPDFParams) MarshalEasyJSON ¶
func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PrintToPDFParams) MarshalJSON ¶
func (v PrintToPDFParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PrintToPDFParams) UnmarshalEasyJSON ¶
func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PrintToPDFParams) UnmarshalJSON ¶
func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (PrintToPDFParams) WithDisplayHeaderFooter ¶
func (p PrintToPDFParams) WithDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFParams
WithDisplayHeaderFooter display header and footer. Defaults to false.
func (PrintToPDFParams) WithLandscape ¶
func (p PrintToPDFParams) WithLandscape(landscape bool) *PrintToPDFParams
WithLandscape paper orientation. Defaults to false.
func (PrintToPDFParams) WithMarginBottom ¶
func (p PrintToPDFParams) WithMarginBottom(marginBottom float64) *PrintToPDFParams
WithMarginBottom bottom margin in inches. Defaults to 1cm (~0.4 inches).
func (PrintToPDFParams) WithMarginLeft ¶
func (p PrintToPDFParams) WithMarginLeft(marginLeft float64) *PrintToPDFParams
WithMarginLeft left margin in inches. Defaults to 1cm (~0.4 inches).
func (PrintToPDFParams) WithMarginRight ¶
func (p PrintToPDFParams) WithMarginRight(marginRight float64) *PrintToPDFParams
WithMarginRight right margin in inches. Defaults to 1cm (~0.4 inches).
func (PrintToPDFParams) WithMarginTop ¶
func (p PrintToPDFParams) WithMarginTop(marginTop float64) *PrintToPDFParams
WithMarginTop top margin in inches. Defaults to 1cm (~0.4 inches).
func (PrintToPDFParams) WithPageRanges ¶
func (p PrintToPDFParams) WithPageRanges(pageRanges string) *PrintToPDFParams
WithPageRanges paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
func (PrintToPDFParams) WithPaperHeight ¶
func (p PrintToPDFParams) WithPaperHeight(paperHeight float64) *PrintToPDFParams
WithPaperHeight paper height in inches. Defaults to 11 inches.
func (PrintToPDFParams) WithPaperWidth ¶
func (p PrintToPDFParams) WithPaperWidth(paperWidth float64) *PrintToPDFParams
WithPaperWidth paper width in inches. Defaults to 8.5 inches.
func (PrintToPDFParams) WithPrintBackground ¶
func (p PrintToPDFParams) WithPrintBackground(printBackground bool) *PrintToPDFParams
WithPrintBackground print background graphics. Defaults to false.
func (PrintToPDFParams) WithScale ¶
func (p PrintToPDFParams) WithScale(scale float64) *PrintToPDFParams
WithScale scale of the webpage rendering. Defaults to 1.
type PrintToPDFReturns ¶
type PrintToPDFReturns struct {
Data string `json:"data,omitempty"` // Base64-encoded pdf data.
}
PrintToPDFReturns return values.
func (PrintToPDFReturns) MarshalEasyJSON ¶
func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PrintToPDFReturns) MarshalJSON ¶
func (v PrintToPDFReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PrintToPDFReturns) UnmarshalEasyJSON ¶
func (v *PrintToPDFReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PrintToPDFReturns) UnmarshalJSON ¶
func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ProcessNavigationParams ¶
type ProcessNavigationParams struct {}
ProcessNavigationParams should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation.
func ProcessNavigation ¶
func ProcessNavigation(response NavigationResponse, navigationID int64) *ProcessNavigationParams
ProcessNavigation should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation.
parameters:
response navigationID
func (*ProcessNavigationParams) Do ¶
Do executes Page.processNavigation against the provided context and target handler.
func (ProcessNavigationParams) MarshalEasyJSON ¶
func (v ProcessNavigationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ProcessNavigationParams) MarshalJSON ¶
func (v ProcessNavigationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ProcessNavigationParams) UnmarshalEasyJSON ¶
func (v *ProcessNavigationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ProcessNavigationParams) UnmarshalJSON ¶
func (v *ProcessNavigationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ReloadParams ¶
type ReloadParams struct { IgnoreCache bool `json:"ignoreCache,omitempty"` // If true, browser cache is ignored (as if the user pressed Shift+refresh). ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"` // If set, the script will be injected into all frames of the inspected page after reload. }
ReloadParams reloads given page optionally ignoring the cache.
func Reload ¶
func Reload() *ReloadParams
Reload reloads given page optionally ignoring the cache.
parameters:
func (ReloadParams) MarshalEasyJSON ¶
func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ReloadParams) MarshalJSON ¶
func (v ReloadParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ReloadParams) UnmarshalEasyJSON ¶
func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ReloadParams) UnmarshalJSON ¶
func (v *ReloadParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (ReloadParams) WithIgnoreCache ¶
func (p ReloadParams) WithIgnoreCache(ignoreCache bool) *ReloadParams
WithIgnoreCache if true, browser cache is ignored (as if the user pressed Shift+refresh).
func (ReloadParams) WithScriptToEvaluateOnLoad ¶
func (p ReloadParams) WithScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadParams
WithScriptToEvaluateOnLoad if set, the script will be injected into all frames of the inspected page after reload.
type RemoveScriptToEvaluateOnLoadParams ¶
type RemoveScriptToEvaluateOnLoadParams struct {
Identifier ScriptIdentifier `json:"identifier"`
}
RemoveScriptToEvaluateOnLoadParams [no description].
func RemoveScriptToEvaluateOnLoad ¶
func RemoveScriptToEvaluateOnLoad(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnLoadParams
RemoveScriptToEvaluateOnLoad [no description].
parameters:
identifier
func (*RemoveScriptToEvaluateOnLoadParams) Do ¶
Do executes Page.removeScriptToEvaluateOnLoad against the provided context and target handler.
func (RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON ¶
func (v RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoveScriptToEvaluateOnLoadParams) MarshalJSON ¶
func (v RemoveScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON ¶
func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON ¶
func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestAppBannerParams ¶
type RequestAppBannerParams struct{}
RequestAppBannerParams [no description].
func RequestAppBanner ¶
func RequestAppBanner() *RequestAppBannerParams
RequestAppBanner [no description].
func (*RequestAppBannerParams) Do ¶
Do executes Page.requestAppBanner against the provided context and target handler.
func (RequestAppBannerParams) MarshalEasyJSON ¶
func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestAppBannerParams) MarshalJSON ¶
func (v RequestAppBannerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestAppBannerParams) UnmarshalEasyJSON ¶
func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestAppBannerParams) UnmarshalJSON ¶
func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResourceType ¶
type ResourceType string
ResourceType resource type as it was perceived by the rendering engine.
const ( ResourceTypeDocument ResourceType = "Document" ResourceTypeStylesheet ResourceType = "Stylesheet" ResourceTypeImage ResourceType = "Image" ResourceTypeMedia ResourceType = "Media" ResourceTypeFont ResourceType = "Font" ResourceTypeScript ResourceType = "Script" ResourceTypeTextTrack ResourceType = "TextTrack" ResourceTypeXHR ResourceType = "XHR" ResourceTypeFetch ResourceType = "Fetch" ResourceTypeEventSource ResourceType = "EventSource" ResourceTypeWebSocket ResourceType = "WebSocket" ResourceTypeManifest ResourceType = "Manifest" ResourceTypeOther ResourceType = "Other" )
ResourceType values.
func (ResourceType) MarshalEasyJSON ¶
func (t ResourceType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ResourceType) MarshalJSON ¶
func (t ResourceType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ResourceType) String ¶
func (t ResourceType) String() string
String returns the ResourceType as string value.
func (*ResourceType) UnmarshalEasyJSON ¶
func (t *ResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ResourceType) UnmarshalJSON ¶
func (t *ResourceType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ScreencastFormat ¶
type ScreencastFormat string
ScreencastFormat image compression format.
const ( ScreencastFormatJpeg ScreencastFormat = "jpeg" ScreencastFormatPng ScreencastFormat = "png" )
ScreencastFormat values.
func (ScreencastFormat) MarshalEasyJSON ¶
func (t ScreencastFormat) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ScreencastFormat) MarshalJSON ¶
func (t ScreencastFormat) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ScreencastFormat) String ¶
func (t ScreencastFormat) String() string
String returns the ScreencastFormat as string value.
func (*ScreencastFormat) UnmarshalEasyJSON ¶
func (t *ScreencastFormat) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ScreencastFormat) UnmarshalJSON ¶
func (t *ScreencastFormat) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ScreencastFrameAckParams ¶
type ScreencastFrameAckParams struct {
SessionID int64 `json:"sessionId"` // Frame number.
}
ScreencastFrameAckParams acknowledges that a screencast frame has been received by the frontend.
func ScreencastFrameAck ¶
func ScreencastFrameAck(sessionID int64) *ScreencastFrameAckParams
ScreencastFrameAck acknowledges that a screencast frame has been received by the frontend.
parameters:
sessionID - Frame number.
func (*ScreencastFrameAckParams) Do ¶
Do executes Page.screencastFrameAck against the provided context and target handler.
func (ScreencastFrameAckParams) MarshalEasyJSON ¶
func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ScreencastFrameAckParams) MarshalJSON ¶
func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ScreencastFrameAckParams) UnmarshalEasyJSON ¶
func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ScreencastFrameAckParams) UnmarshalJSON ¶
func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ScreencastFrameMetadata ¶
type ScreencastFrameMetadata struct { OffsetTop float64 `json:"offsetTop,omitempty"` // Top offset in DIP. PageScaleFactor float64 `json:"pageScaleFactor,omitempty"` // Page scale factor. DeviceWidth float64 `json:"deviceWidth,omitempty"` // Device screen width in DIP. DeviceHeight float64 `json:"deviceHeight,omitempty"` // Device screen height in DIP. ScrollOffsetX float64 `json:"scrollOffsetX,omitempty"` // Position of horizontal scroll in CSS pixels. ScrollOffsetY float64 `json:"scrollOffsetY,omitempty"` // Position of vertical scroll in CSS pixels. Timestamp cdp.Timestamp `json:"timestamp,omitempty"` // Frame swap timestamp. }
ScreencastFrameMetadata screencast frame metadata.
func (ScreencastFrameMetadata) MarshalEasyJSON ¶
func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ScreencastFrameMetadata) MarshalJSON ¶
func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ScreencastFrameMetadata) UnmarshalEasyJSON ¶
func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ScreencastFrameMetadata) UnmarshalJSON ¶
func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ScriptIdentifier ¶
type ScriptIdentifier string
ScriptIdentifier unique script identifier.
func (ScriptIdentifier) String ¶
func (t ScriptIdentifier) String() string
String returns the ScriptIdentifier as string value.
type SearchInResourceParams ¶
type SearchInResourceParams struct { FrameID cdp.FrameID `json:"frameId"` // Frame id for resource to search in. URL string `json:"url"` // URL of the resource to search in. Query string `json:"query"` // String to search for. CaseSensitive bool `json:"caseSensitive,omitempty"` // If true, search is case sensitive. IsRegex bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex. }
SearchInResourceParams searches for given string in resource content.
func SearchInResource ¶
func SearchInResource(frameID cdp.FrameID, url string, query string) *SearchInResourceParams
SearchInResource searches for given string in resource content.
parameters:
frameID - Frame id for resource to search in. url - URL of the resource to search in. query - String to search for.
func (*SearchInResourceParams) Do ¶
func (p *SearchInResourceParams) Do(ctxt context.Context, h cdp.Handler) (result []*debugger.SearchMatch, err error)
Do executes Page.searchInResource against the provided context and target handler.
returns:
result - List of search matches.
func (SearchInResourceParams) MarshalEasyJSON ¶
func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchInResourceParams) MarshalJSON ¶
func (v SearchInResourceParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchInResourceParams) UnmarshalEasyJSON ¶
func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchInResourceParams) UnmarshalJSON ¶
func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SearchInResourceParams) WithCaseSensitive ¶
func (p SearchInResourceParams) WithCaseSensitive(caseSensitive bool) *SearchInResourceParams
WithCaseSensitive if true, search is case sensitive.
func (SearchInResourceParams) WithIsRegex ¶
func (p SearchInResourceParams) WithIsRegex(isRegex bool) *SearchInResourceParams
WithIsRegex if true, treats string parameter as regex.
type SearchInResourceReturns ¶
type SearchInResourceReturns struct {
Result []*debugger.SearchMatch `json:"result,omitempty"` // List of search matches.
}
SearchInResourceReturns return values.
func (SearchInResourceReturns) MarshalEasyJSON ¶
func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchInResourceReturns) MarshalJSON ¶
func (v SearchInResourceReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchInResourceReturns) UnmarshalEasyJSON ¶
func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchInResourceReturns) UnmarshalJSON ¶
func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetAutoAttachToCreatedPagesParams ¶
type SetAutoAttachToCreatedPagesParams struct {
AutoAttach bool `json:"autoAttach"` // If true, browser will open a new inspector window for every page created from this one.
}
SetAutoAttachToCreatedPagesParams controls whether browser will open a new inspector window for connected pages.
func SetAutoAttachToCreatedPages ¶
func SetAutoAttachToCreatedPages(autoAttach bool) *SetAutoAttachToCreatedPagesParams
SetAutoAttachToCreatedPages controls whether browser will open a new inspector window for connected pages.
parameters:
autoAttach - If true, browser will open a new inspector window for every page created from this one.
func (*SetAutoAttachToCreatedPagesParams) Do ¶
Do executes Page.setAutoAttachToCreatedPages against the provided context and target handler.
func (SetAutoAttachToCreatedPagesParams) MarshalEasyJSON ¶
func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetAutoAttachToCreatedPagesParams) MarshalJSON ¶
func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON ¶
func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetAutoAttachToCreatedPagesParams) UnmarshalJSON ¶
func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetControlNavigationsParams ¶
type SetControlNavigationsParams struct {
}SetControlNavigationsParams toggles navigation throttling which allows programatic control over navigation and redirect response.
func SetControlNavigations ¶
func SetControlNavigations(enabled bool) *SetControlNavigationsParams
SetControlNavigations toggles navigation throttling which allows programatic control over navigation and redirect response.
parameters:
enabled
func (*SetControlNavigationsParams) Do ¶
Do executes Page.setControlNavigations against the provided context and target handler.
func (SetControlNavigationsParams) MarshalEasyJSON ¶
func (v SetControlNavigationsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetControlNavigationsParams) MarshalJSON ¶
func (v SetControlNavigationsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetControlNavigationsParams) UnmarshalEasyJSON ¶
func (v *SetControlNavigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetControlNavigationsParams) UnmarshalJSON ¶
func (v *SetControlNavigationsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetDocumentContentParams ¶
type SetDocumentContentParams struct { FrameID cdp.FrameID `json:"frameId"` // Frame id to set HTML for. HTML string `json:"html"` // HTML content to set. }
SetDocumentContentParams sets given markup as the document's HTML.
func SetDocumentContent ¶
func SetDocumentContent(frameID cdp.FrameID, html string) *SetDocumentContentParams
SetDocumentContent sets given markup as the document's HTML.
parameters:
frameID - Frame id to set HTML for. html - HTML content to set.
func (*SetDocumentContentParams) Do ¶
Do executes Page.setDocumentContent against the provided context and target handler.
func (SetDocumentContentParams) MarshalEasyJSON ¶
func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetDocumentContentParams) MarshalJSON ¶
func (v SetDocumentContentParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetDocumentContentParams) UnmarshalEasyJSON ¶
func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetDocumentContentParams) UnmarshalJSON ¶
func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StartScreencastParams ¶
type StartScreencastParams struct { Format ScreencastFormat `json:"format,omitempty"` // Image compression format. Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100]. MaxWidth int64 `json:"maxWidth,omitempty"` // Maximum screenshot width. MaxHeight int64 `json:"maxHeight,omitempty"` // Maximum screenshot height. EveryNthFrame int64 `json:"everyNthFrame,omitempty"` // Send every n-th frame. }
StartScreencastParams starts sending each frame using the screencastFrame event.
func StartScreencast ¶
func StartScreencast() *StartScreencastParams
StartScreencast starts sending each frame using the screencastFrame event.
parameters:
func (*StartScreencastParams) Do ¶
Do executes Page.startScreencast against the provided context and target handler.
func (StartScreencastParams) MarshalEasyJSON ¶
func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StartScreencastParams) MarshalJSON ¶
func (v StartScreencastParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StartScreencastParams) UnmarshalEasyJSON ¶
func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StartScreencastParams) UnmarshalJSON ¶
func (v *StartScreencastParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (StartScreencastParams) WithEveryNthFrame ¶
func (p StartScreencastParams) WithEveryNthFrame(everyNthFrame int64) *StartScreencastParams
WithEveryNthFrame send every n-th frame.
func (StartScreencastParams) WithFormat ¶
func (p StartScreencastParams) WithFormat(format ScreencastFormat) *StartScreencastParams
WithFormat image compression format.
func (StartScreencastParams) WithMaxHeight ¶
func (p StartScreencastParams) WithMaxHeight(maxHeight int64) *StartScreencastParams
WithMaxHeight maximum screenshot height.
func (StartScreencastParams) WithMaxWidth ¶
func (p StartScreencastParams) WithMaxWidth(maxWidth int64) *StartScreencastParams
WithMaxWidth maximum screenshot width.
func (StartScreencastParams) WithQuality ¶
func (p StartScreencastParams) WithQuality(quality int64) *StartScreencastParams
WithQuality compression quality from range [0..100].
type StopLoadingParams ¶
type StopLoadingParams struct{}
StopLoadingParams force the page stop all navigations and pending resource fetches.
func StopLoading ¶
func StopLoading() *StopLoadingParams
StopLoading force the page stop all navigations and pending resource fetches.
func (*StopLoadingParams) Do ¶
Do executes Page.stopLoading against the provided context and target handler.
func (StopLoadingParams) MarshalEasyJSON ¶
func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopLoadingParams) MarshalJSON ¶
func (v StopLoadingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopLoadingParams) UnmarshalEasyJSON ¶
func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopLoadingParams) UnmarshalJSON ¶
func (v *StopLoadingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopScreencastParams ¶
type StopScreencastParams struct{}
StopScreencastParams stops sending each frame in the screencastFrame.
func StopScreencast ¶
func StopScreencast() *StopScreencastParams
StopScreencast stops sending each frame in the screencastFrame.
func (*StopScreencastParams) Do ¶
Do executes Page.stopScreencast against the provided context and target handler.
func (StopScreencastParams) MarshalEasyJSON ¶
func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopScreencastParams) MarshalJSON ¶
func (v StopScreencastParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopScreencastParams) UnmarshalEasyJSON ¶
func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopScreencastParams) UnmarshalJSON ¶
func (v *StopScreencastParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TransitionType ¶
type TransitionType string
TransitionType transition type.
const ( TransitionTypeLink TransitionType = "link" TransitionTypeTyped TransitionType = "typed" TransitionTypeAutoBookmark TransitionType = "auto_bookmark" TransitionTypeAutoSubframe TransitionType = "auto_subframe" TransitionTypeManualSubframe TransitionType = "manual_subframe" TransitionTypeGenerated TransitionType = "generated" TransitionTypeAutoToplevel TransitionType = "auto_toplevel" TransitionTypeFormSubmit TransitionType = "form_submit" TransitionTypeReload TransitionType = "reload" TransitionTypeKeyword TransitionType = "keyword" TransitionTypeKeywordGenerated TransitionType = "keyword_generated" TransitionTypeOther TransitionType = "other" )
TransitionType values.
func (TransitionType) MarshalEasyJSON ¶
func (t TransitionType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (TransitionType) MarshalJSON ¶
func (t TransitionType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (TransitionType) String ¶
func (t TransitionType) String() string
String returns the TransitionType as string value.
func (*TransitionType) UnmarshalEasyJSON ¶
func (t *TransitionType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*TransitionType) UnmarshalJSON ¶
func (t *TransitionType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type VisualViewport ¶
type VisualViewport struct { OffsetX float64 `json:"offsetX,omitempty"` // Horizontal offset relative to the layout viewport (CSS pixels). OffsetY float64 `json:"offsetY,omitempty"` // Vertical offset relative to the layout viewport (CSS pixels). PageX float64 `json:"pageX,omitempty"` // Horizontal offset relative to the document (CSS pixels). PageY float64 `json:"pageY,omitempty"` // Vertical offset relative to the document (CSS pixels). ClientWidth float64 `json:"clientWidth,omitempty"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight float64 `json:"clientHeight,omitempty"` // Height (CSS pixels), excludes scrollbar if present. Scale float64 `json:"scale,omitempty"` // Scale relative to the ideal viewport (size at width=device-width). }
VisualViewport visual viewport position, dimensions, and scale.
func (VisualViewport) MarshalEasyJSON ¶
func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (VisualViewport) MarshalJSON ¶
func (v VisualViewport) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*VisualViewport) UnmarshalEasyJSON ¶
func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*VisualViewport) UnmarshalJSON ¶
func (v *VisualViewport) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface