cdproto: github.com/chromedp/cdproto/page Index | Files

package page

import "github.com/chromedp/cdproto/page"

Package page provides the Chrome DevTools Protocol commands, types, and events for the Page domain.

Actions and events related to the inspected page belong to the page domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go page.go types.go

Constants

const (
    CommandAddScriptToEvaluateOnNewDocument    = "Page.addScriptToEvaluateOnNewDocument"
    CommandBringToFront                        = "Page.bringToFront"
    CommandCaptureScreenshot                   = "Page.captureScreenshot"
    CommandCaptureSnapshot                     = "Page.captureSnapshot"
    CommandCreateIsolatedWorld                 = "Page.createIsolatedWorld"
    CommandDisable                             = "Page.disable"
    CommandEnable                              = "Page.enable"
    CommandGetAppManifest                      = "Page.getAppManifest"
    CommandGetInstallabilityErrors             = "Page.getInstallabilityErrors"
    CommandGetManifestIcons                    = "Page.getManifestIcons"
    CommandGetFrameTree                        = "Page.getFrameTree"
    CommandGetLayoutMetrics                    = "Page.getLayoutMetrics"
    CommandGetNavigationHistory                = "Page.getNavigationHistory"
    CommandResetNavigationHistory              = "Page.resetNavigationHistory"
    CommandGetResourceContent                  = "Page.getResourceContent"
    CommandGetResourceTree                     = "Page.getResourceTree"
    CommandHandleJavaScriptDialog              = "Page.handleJavaScriptDialog"
    CommandNavigate                            = "Page.navigate"
    CommandNavigateToHistoryEntry              = "Page.navigateToHistoryEntry"
    CommandPrintToPDF                          = "Page.printToPDF"
    CommandReload                              = "Page.reload"
    CommandRemoveScriptToEvaluateOnNewDocument = "Page.removeScriptToEvaluateOnNewDocument"
    CommandScreencastFrameAck                  = "Page.screencastFrameAck"
    CommandSearchInResource                    = "Page.searchInResource"
    CommandSetAdBlockingEnabled                = "Page.setAdBlockingEnabled"
    CommandSetBypassCSP                        = "Page.setBypassCSP"
    CommandSetFontFamilies                     = "Page.setFontFamilies"
    CommandSetFontSizes                        = "Page.setFontSizes"
    CommandSetDocumentContent                  = "Page.setDocumentContent"
    CommandSetDownloadBehavior                 = "Page.setDownloadBehavior"
    CommandSetLifecycleEventsEnabled           = "Page.setLifecycleEventsEnabled"
    CommandStartScreencast                     = "Page.startScreencast"
    CommandStopLoading                         = "Page.stopLoading"
    CommandCrash                               = "Page.crash"
    CommandClose                               = "Page.close"
    CommandSetWebLifecycleState                = "Page.setWebLifecycleState"
    CommandStopScreencast                      = "Page.stopScreencast"
    CommandSetProduceCompilationCache          = "Page.setProduceCompilationCache"
    CommandAddCompilationCache                 = "Page.addCompilationCache"
    CommandClearCompilationCache               = "Page.clearCompilationCache"
    CommandGenerateTestReport                  = "Page.generateTestReport"
    CommandWaitForDebugger                     = "Page.waitForDebugger"
    CommandSetInterceptFileChooserDialog       = "Page.setInterceptFileChooserDialog"
)

Command names.

type AddCompilationCacheParams Uses

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

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

func AddCompilationCache Uses

func AddCompilationCache(url string, data string) *AddCompilationCacheParams

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

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

parameters:

url
data - Base64-encoded data

func (*AddCompilationCacheParams) Do Uses

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

Do executes Page.addCompilationCache against the provided context.

func (AddCompilationCacheParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddCompilationCacheParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*AddCompilationCacheParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddCompilationCacheParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type AddScriptToEvaluateOnNewDocumentParams Uses

type AddScriptToEvaluateOnNewDocumentParams struct {
    Source    string `json:"source"`
    WorldName string `json:"worldName,omitempty"` // If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.
}

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

func AddScriptToEvaluateOnNewDocument Uses

func AddScriptToEvaluateOnNewDocument(source string) *AddScriptToEvaluateOnNewDocumentParams

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

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

parameters:

source

func (*AddScriptToEvaluateOnNewDocumentParams) Do Uses

func (p *AddScriptToEvaluateOnNewDocumentParams) Do(ctx context.Context) (identifier ScriptIdentifier, err error)

Do executes Page.addScriptToEvaluateOnNewDocument against the provided context.

returns:

identifier - Identifier of the added script.

func (AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddScriptToEvaluateOnNewDocumentParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (AddScriptToEvaluateOnNewDocumentParams) WithWorldName Uses

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

WithWorldName if specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.

type AddScriptToEvaluateOnNewDocumentReturns Uses

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

AddScriptToEvaluateOnNewDocumentReturns return values.

func (AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type AppManifestError Uses

type AppManifestError struct {
    Message  string `json:"message"`  // Error message.
    Critical int64  `json:"critical"` // If criticial, this is a non-recoverable parse error.
    Line     int64  `json:"line"`     // Error line.
    Column   int64  `json:"column"`   // Error column.
}

AppManifestError error while paring app manifest.

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

func (AppManifestError) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AppManifestError) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*AppManifestError) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AppManifestError) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type AppManifestParsedProperties Uses

type AppManifestParsedProperties struct {
    Scope string `json:"scope"` // Computed scope value
}

AppManifestParsedProperties parsed app manifest properties.

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

func (AppManifestParsedProperties) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AppManifestParsedProperties) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*AppManifestParsedProperties) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AppManifestParsedProperties) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type BringToFrontParams Uses

type BringToFrontParams struct{}

BringToFrontParams brings page to front (activates tab).

func BringToFront Uses

func BringToFront() *BringToFrontParams

BringToFront brings page to front (activates tab).

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

func (*BringToFrontParams) Do Uses

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

Do executes Page.bringToFront against the provided context.

func (BringToFrontParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (BringToFrontParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*BringToFrontParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BringToFrontParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type CaptureScreenshotFormat Uses

type CaptureScreenshotFormat string

CaptureScreenshotFormat image compression format (defaults to png).

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

const (
    CaptureScreenshotFormatJpeg CaptureScreenshotFormat = "jpeg"
    CaptureScreenshotFormatPng  CaptureScreenshotFormat = "png"
)

CaptureScreenshotFormat values.

func (CaptureScreenshotFormat) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CaptureScreenshotFormat) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (CaptureScreenshotFormat) String Uses

func (t CaptureScreenshotFormat) String() string

String returns the CaptureScreenshotFormat as string value.

func (*CaptureScreenshotFormat) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CaptureScreenshotFormat) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CaptureScreenshotParams Uses

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

CaptureScreenshotParams capture page screenshot.

func CaptureScreenshot Uses

func CaptureScreenshot() *CaptureScreenshotParams

CaptureScreenshot capture page screenshot.

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

parameters:

func (*CaptureScreenshotParams) Do Uses

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

Do executes Page.captureScreenshot against the provided context.

returns:

data - Base64-encoded image data.

func (CaptureScreenshotParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureScreenshotParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CaptureScreenshotParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureScreenshotParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (CaptureScreenshotParams) WithClip Uses

func (p CaptureScreenshotParams) WithClip(clip *Viewport) *CaptureScreenshotParams

WithClip capture the screenshot of a given region only.

func (CaptureScreenshotParams) WithFormat Uses

func (p CaptureScreenshotParams) WithFormat(format CaptureScreenshotFormat) *CaptureScreenshotParams

WithFormat image compression format (defaults to png).

func (CaptureScreenshotParams) WithFromSurface Uses

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

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

func (CaptureScreenshotParams) WithQuality Uses

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

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

type CaptureScreenshotReturns Uses

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

CaptureScreenshotReturns return values.

func (CaptureScreenshotReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureScreenshotReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CaptureScreenshotReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureScreenshotReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type CaptureSnapshotFormat Uses

type CaptureSnapshotFormat string

CaptureSnapshotFormat format (defaults to mhtml).

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

const (
    CaptureSnapshotFormatMhtml CaptureSnapshotFormat = "mhtml"
)

CaptureSnapshotFormat values.

func (CaptureSnapshotFormat) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CaptureSnapshotFormat) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (CaptureSnapshotFormat) String Uses

func (t CaptureSnapshotFormat) String() string

String returns the CaptureSnapshotFormat as string value.

func (*CaptureSnapshotFormat) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CaptureSnapshotFormat) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CaptureSnapshotParams Uses

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

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

func CaptureSnapshot Uses

func CaptureSnapshot() *CaptureSnapshotParams

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

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

parameters:

func (*CaptureSnapshotParams) Do Uses

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

Do executes Page.captureSnapshot against the provided context.

returns:

data - Serialized page data.

func (CaptureSnapshotParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureSnapshotParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CaptureSnapshotParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureSnapshotParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (CaptureSnapshotParams) WithFormat Uses

func (p CaptureSnapshotParams) WithFormat(format CaptureSnapshotFormat) *CaptureSnapshotParams

WithFormat format (defaults to mhtml).

type CaptureSnapshotReturns Uses

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

CaptureSnapshotReturns return values.

func (CaptureSnapshotReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CaptureSnapshotReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CaptureSnapshotReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CaptureSnapshotReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearCompilationCacheParams Uses

type ClearCompilationCacheParams struct{}

ClearCompilationCacheParams clears seeded compilation cache.

func ClearCompilationCache Uses

func ClearCompilationCache() *ClearCompilationCacheParams

ClearCompilationCache clears seeded compilation cache.

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

func (*ClearCompilationCacheParams) Do Uses

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

Do executes Page.clearCompilationCache against the provided context.

func (ClearCompilationCacheParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearCompilationCacheParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ClearCompilationCacheParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearCompilationCacheParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ClientNavigationDisposition Uses

type ClientNavigationDisposition string

ClientNavigationDisposition [no description].

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

const (
    ClientNavigationDispositionCurrentTab ClientNavigationDisposition = "currentTab"
    ClientNavigationDispositionNewTab     ClientNavigationDisposition = "newTab"
    ClientNavigationDispositionNewWindow  ClientNavigationDisposition = "newWindow"
    ClientNavigationDispositionDownload   ClientNavigationDisposition = "download"
)

ClientNavigationDisposition values.

func (ClientNavigationDisposition) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ClientNavigationDisposition) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ClientNavigationDisposition) String Uses

func (t ClientNavigationDisposition) String() string

String returns the ClientNavigationDisposition as string value.

func (*ClientNavigationDisposition) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ClientNavigationDisposition) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ClientNavigationReason Uses

type ClientNavigationReason string

ClientNavigationReason [no description].

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

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

ClientNavigationReason values.

func (ClientNavigationReason) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ClientNavigationReason) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ClientNavigationReason) String Uses

func (t ClientNavigationReason) String() string

String returns the ClientNavigationReason as string value.

func (*ClientNavigationReason) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ClientNavigationReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CloseParams Uses

type CloseParams struct{}

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

func Close Uses

func Close() *CloseParams

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

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

func (*CloseParams) Do Uses

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

Do executes Page.close against the provided context.

func (CloseParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CloseParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CloseParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CloseParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type CrashParams Uses

type CrashParams struct{}

CrashParams crashes renderer on the IO thread, generates minidumps.

func Crash Uses

func Crash() *CrashParams

Crash crashes renderer on the IO thread, generates minidumps.

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

func (*CrashParams) Do Uses

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

Do executes Page.crash against the provided context.

func (CrashParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrashParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CrashParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrashParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type CreateIsolatedWorldParams Uses

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 Uses

func CreateIsolatedWorld(frameID cdp.FrameID) *CreateIsolatedWorldParams

CreateIsolatedWorld creates an isolated world for the given frame.

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

parameters:

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

func (*CreateIsolatedWorldParams) Do Uses

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

Do executes Page.createIsolatedWorld against the provided context.

returns:

executionContextID - Execution context of the isolated world.

func (CreateIsolatedWorldParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateIsolatedWorldParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CreateIsolatedWorldParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateIsolatedWorldParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (CreateIsolatedWorldParams) WithGrantUniveralAccess Uses

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 Uses

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

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

type CreateIsolatedWorldReturns Uses

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

CreateIsolatedWorldReturns return values.

func (CreateIsolatedWorldReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateIsolatedWorldReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CreateIsolatedWorldReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateIsolatedWorldReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type DialogType Uses

type DialogType string

DialogType javascript dialog type.

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

const (
    DialogTypeAlert        DialogType = "alert"
    DialogTypeConfirm      DialogType = "confirm"
    DialogTypePrompt       DialogType = "prompt"
    DialogTypeBeforeunload DialogType = "beforeunload"
)

DialogType values.

func (DialogType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DialogType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (DialogType) String Uses

func (t DialogType) String() string

String returns the DialogType as string value.

func (*DialogType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DialogType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams Uses

type DisableParams struct{}

DisableParams disables page domain notifications.

func Disable Uses

func Disable() *DisableParams

Disable disables page domain notifications.

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

func (*DisableParams) Do Uses

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

Do executes Page.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type DownloadProgressState Uses

type DownloadProgressState string

DownloadProgressState download status.

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

const (
    DownloadProgressStateInProgress DownloadProgressState = "inProgress"
    DownloadProgressStateCompleted  DownloadProgressState = "completed"
    DownloadProgressStateCanceled   DownloadProgressState = "canceled"
)

DownloadProgressState values.

func (DownloadProgressState) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DownloadProgressState) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (DownloadProgressState) String Uses

func (t DownloadProgressState) String() string

String returns the DownloadProgressState as string value.

func (*DownloadProgressState) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DownloadProgressState) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type EnableParams Uses

type EnableParams struct{}

EnableParams enables page domain notifications.

func Enable Uses

func Enable() *EnableParams

Enable enables page domain notifications.

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

func (*EnableParams) Do Uses

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

Do executes Page.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventCompilationCacheProduced Uses

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

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

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

func (EventCompilationCacheProduced) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventCompilationCacheProduced) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventCompilationCacheProduced) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventCompilationCacheProduced) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventDomContentEventFired Uses

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

EventDomContentEventFired [no description].

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

func (EventDomContentEventFired) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomContentEventFired) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventDomContentEventFired) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomContentEventFired) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventDownloadProgress Uses

type EventDownloadProgress struct {
    GUID          string                `json:"guid"`          // Global unique identifier of the download.
    TotalBytes    float64               `json:"totalBytes"`    // Total expected bytes to download.
    ReceivedBytes float64               `json:"receivedBytes"` // Total bytes received.
    State         DownloadProgressState `json:"state"`         // Download status.
}

EventDownloadProgress fired when download makes progress. Last call has |done| == true.

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

func (EventDownloadProgress) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDownloadProgress) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventDownloadProgress) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDownloadProgress) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventDownloadWillBegin Uses

type EventDownloadWillBegin struct {
    FrameID           cdp.FrameID `json:"frameId"`           // Id of the frame that caused download to begin.
    GUID              string      `json:"guid"`              // Global unique identifier of the download.
    URL               string      `json:"url"`               // URL of the resource being downloaded.
    SuggestedFilename string      `json:"suggestedFilename"` // Suggested file name of the resource (the actual name of the file saved on disk may differ).
}

EventDownloadWillBegin fired when page is about to start a download.

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

func (EventDownloadWillBegin) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDownloadWillBegin) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventDownloadWillBegin) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDownloadWillBegin) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFileChooserOpened Uses

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

EventFileChooserOpened emitted only when page.interceptFileChooser is enabled.

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

func (EventFileChooserOpened) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFileChooserOpened) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFileChooserOpened) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFileChooserOpened) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameAttached Uses

type EventFrameAttached struct {
    FrameID       cdp.FrameID         `json:"frameId"`         // Id of the frame that has been attached.
    ParentFrameID cdp.FrameID         `json:"parentFrameId"`   // Parent frame identifier.
    Stack         *runtime.StackTrace `json:"stack,omitempty"` // JavaScript stack trace of when frame was attached, only set if frame initiated from script.
}

EventFrameAttached fired when frame has been attached to its parent.

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

func (EventFrameAttached) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameAttached) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameAttached) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameAttached) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameDetached Uses

type EventFrameDetached struct {
    FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has been detached.
}

EventFrameDetached fired when frame has been detached from its parent.

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

func (EventFrameDetached) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameDetached) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameDetached) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameDetached) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameNavigated Uses

type EventFrameNavigated struct {
    Frame *cdp.Frame `json:"frame"` // Frame object.
}

EventFrameNavigated fired once navigation of the frame has completed. Frame is now associated with the new loader.

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

func (EventFrameNavigated) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameNavigated) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameNavigated) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameNavigated) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameRequestedNavigation Uses

type EventFrameRequestedNavigation struct {
    FrameID     cdp.FrameID                 `json:"frameId"`     // Id of the frame that is being navigated.
    Reason      ClientNavigationReason      `json:"reason"`      // The reason for the navigation.
    URL         string                      `json:"url"`         // The destination URL for the requested navigation.
    Disposition ClientNavigationDisposition `json:"disposition"` // The disposition for the navigation.
}

EventFrameRequestedNavigation fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

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

func (EventFrameRequestedNavigation) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameRequestedNavigation) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameRequestedNavigation) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameRequestedNavigation) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameResized Uses

type EventFrameResized struct{}

EventFrameResized [no description].

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

func (EventFrameResized) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameResized) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameResized) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameResized) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameStartedLoading Uses

type EventFrameStartedLoading struct {
    FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has started loading.
}

EventFrameStartedLoading fired when frame has started loading.

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

func (EventFrameStartedLoading) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameStartedLoading) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameStartedLoading) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameStartedLoading) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventFrameStoppedLoading Uses

type EventFrameStoppedLoading struct {
    FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has stopped loading.
}

EventFrameStoppedLoading fired when frame has stopped loading.

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

func (EventFrameStoppedLoading) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFrameStoppedLoading) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventFrameStoppedLoading) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFrameStoppedLoading) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventInterstitialHidden Uses

type EventInterstitialHidden struct{}

EventInterstitialHidden fired when interstitial page was hidden.

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

func (EventInterstitialHidden) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInterstitialHidden) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventInterstitialHidden) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInterstitialHidden) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventInterstitialShown Uses

type EventInterstitialShown struct{}

EventInterstitialShown fired when interstitial page was shown.

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

func (EventInterstitialShown) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInterstitialShown) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventInterstitialShown) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInterstitialShown) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventJavascriptDialogClosed Uses

type EventJavascriptDialogClosed struct {
    Result    bool   `json:"result"`    // Whether dialog was confirmed.
    UserInput string `json:"userInput"` // User input in case of prompt.
}

EventJavascriptDialogClosed fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

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

func (EventJavascriptDialogClosed) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventJavascriptDialogClosed) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventJavascriptDialogClosed) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventJavascriptDialogClosed) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventJavascriptDialogOpening Uses

type EventJavascriptDialogOpening struct {
    URL               string     `json:"url"`                     // Frame url.
    Message           string     `json:"message"`                 // Message that will be displayed by the dialog.
    Type              DialogType `json:"type"`                    // Dialog type.
    HasBrowserHandler bool       `json:"hasBrowserHandler"`       // True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
    DefaultPrompt     string     `json:"defaultPrompt,omitempty"` // Default dialog prompt.
}

EventJavascriptDialogOpening fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

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

func (EventJavascriptDialogOpening) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventJavascriptDialogOpening) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventJavascriptDialogOpening) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventJavascriptDialogOpening) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLifecycleEvent Uses

type EventLifecycleEvent struct {
    FrameID   cdp.FrameID        `json:"frameId"`  // Id of the frame.
    LoaderID  cdp.LoaderID       `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker.
    Name      string             `json:"name"`
    Timestamp *cdp.MonotonicTime `json:"timestamp"`
}

EventLifecycleEvent fired for top level page lifecycle events such as navigation, load, paint, etc.

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

func (EventLifecycleEvent) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLifecycleEvent) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventLifecycleEvent) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLifecycleEvent) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadEventFired Uses

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

EventLoadEventFired [no description].

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

func (EventLoadEventFired) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadEventFired) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventLoadEventFired) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadEventFired) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNavigatedWithinDocument Uses

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

EventNavigatedWithinDocument fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

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

func (EventNavigatedWithinDocument) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNavigatedWithinDocument) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventNavigatedWithinDocument) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNavigatedWithinDocument) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventScreencastFrame Uses

type EventScreencastFrame struct {
    Data      string                   `json:"data"`      // Base64-encoded compressed image.
    Metadata  *ScreencastFrameMetadata `json:"metadata"`  // Screencast frame metadata.
    SessionID int64                    `json:"sessionId"` // Frame number.
}

EventScreencastFrame compressed image data requested by the startScreencast.

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

func (EventScreencastFrame) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreencastFrame) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventScreencastFrame) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreencastFrame) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventScreencastVisibilityChanged Uses

type EventScreencastVisibilityChanged struct {
    Visible bool `json:"visible"` // True if the page is visible.
}

EventScreencastVisibilityChanged fired when the page with currently enabled screencast was shown or hidden .

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

func (EventScreencastVisibilityChanged) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreencastVisibilityChanged) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventScreencastVisibilityChanged) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreencastVisibilityChanged) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWindowOpen Uses

type EventWindowOpen struct {
    URL            string   `json:"url"`            // The URL for the new window.
    WindowName     string   `json:"windowName"`     // Window name.
    WindowFeatures []string `json:"windowFeatures"` // An array of enabled window features.
    UserGesture    bool     `json:"userGesture"`    // Whether or not it was triggered by user gesture.
}

EventWindowOpen fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

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

func (EventWindowOpen) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWindowOpen) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventWindowOpen) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWindowOpen) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FileChooserOpenedMode Uses

type FileChooserOpenedMode string

FileChooserOpenedMode input mode.

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

const (
    FileChooserOpenedModeSelectSingle   FileChooserOpenedMode = "selectSingle"
    FileChooserOpenedModeSelectMultiple FileChooserOpenedMode = "selectMultiple"
)

FileChooserOpenedMode values.

func (FileChooserOpenedMode) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (FileChooserOpenedMode) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (FileChooserOpenedMode) String Uses

func (t FileChooserOpenedMode) String() string

String returns the FileChooserOpenedMode as string value.

func (*FileChooserOpenedMode) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*FileChooserOpenedMode) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type FontFamilies Uses

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

FontFamilies generic font families collection.

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

func (FontFamilies) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontFamilies) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FontFamilies) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontFamilies) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FontSizes Uses

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

FontSizes default font sizes.

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

func (FontSizes) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontSizes) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FontSizes) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontSizes) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FrameResource Uses

type FrameResource struct {
    URL          string               `json:"url"`                    // Resource URL.
    Type         network.ResourceType `json:"type"`                   // Type of this resource.
    MimeType     string               `json:"mimeType"`               // Resource mimeType as determined by the browser.
    LastModified *cdp.TimeSinceEpoch  `json:"lastModified,omitempty"` // last-modified timestamp as reported by server.
    ContentSize  float64              `json:"contentSize,omitempty"`  // Resource content size.
    Failed       bool                 `json:"failed,omitempty"`       // True if the resource failed to load.
    Canceled     bool                 `json:"canceled,omitempty"`     // True if the resource was canceled during loading.
}

FrameResource information about the Resource on the page.

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

func (FrameResource) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameResource) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FrameResource) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameResource) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FrameResourceTree Uses

type FrameResourceTree struct {
    Frame       *cdp.Frame           `json:"frame"`                 // Frame information for this tree item.
    ChildFrames []*FrameResourceTree `json:"childFrames,omitempty"` // Child frames.
    Resources   []*FrameResource     `json:"resources"`             // Information about frame resources.
}

FrameResourceTree information about the Frame hierarchy along with their cached resources.

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

func (FrameResourceTree) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameResourceTree) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FrameResourceTree) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameResourceTree) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FrameTree Uses

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

FrameTree information about the Frame hierarchy.

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

func (FrameTree) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FrameTree) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FrameTree) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FrameTree) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GenerateTestReportParams Uses

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

GenerateTestReportParams generates a report for testing.

func GenerateTestReport Uses

func GenerateTestReport(message string) *GenerateTestReportParams

GenerateTestReport generates a report for testing.

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

parameters:

message - Message to be displayed in the report.

func (*GenerateTestReportParams) Do Uses

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

Do executes Page.generateTestReport against the provided context.

func (GenerateTestReportParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GenerateTestReportParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GenerateTestReportParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GenerateTestReportParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GenerateTestReportParams) WithGroup Uses

func (p GenerateTestReportParams) WithGroup(group string) *GenerateTestReportParams

WithGroup specifies the endpoint group to deliver the report to.

type GetAppManifestParams Uses

type GetAppManifestParams struct{}

GetAppManifestParams [no description].

func GetAppManifest Uses

func GetAppManifest() *GetAppManifestParams

GetAppManifest [no description].

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

func (*GetAppManifestParams) Do Uses

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

Do executes Page.getAppManifest against the provided context.

returns:

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

func (GetAppManifestParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppManifestParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetAppManifestParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppManifestParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAppManifestReturns Uses

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

GetAppManifestReturns return values.

func (GetAppManifestReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAppManifestReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetAppManifestReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAppManifestReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameTreeParams Uses

type GetFrameTreeParams struct{}

GetFrameTreeParams returns present frame tree structure.

func GetFrameTree Uses

func GetFrameTree() *GetFrameTreeParams

GetFrameTree returns present frame tree structure.

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

func (*GetFrameTreeParams) Do Uses

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

Do executes Page.getFrameTree against the provided context.

returns:

frameTree - Present frame tree structure.

func (GetFrameTreeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameTreeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetFrameTreeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameTreeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetFrameTreeReturns Uses

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

GetFrameTreeReturns return values.

func (GetFrameTreeReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFrameTreeReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetFrameTreeReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFrameTreeReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetInstallabilityErrorsParams Uses

type GetInstallabilityErrorsParams struct{}

GetInstallabilityErrorsParams [no description].

func GetInstallabilityErrors Uses

func GetInstallabilityErrors() *GetInstallabilityErrorsParams

GetInstallabilityErrors [no description].

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

func (*GetInstallabilityErrorsParams) Do Uses

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

Do executes Page.getInstallabilityErrors against the provided context.

returns:

installabilityErrors

func (GetInstallabilityErrorsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInstallabilityErrorsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetInstallabilityErrorsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInstallabilityErrorsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetInstallabilityErrorsReturns Uses

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

GetInstallabilityErrorsReturns return values.

func (GetInstallabilityErrorsReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInstallabilityErrorsReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetInstallabilityErrorsReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInstallabilityErrorsReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetLayoutMetricsParams Uses

type GetLayoutMetricsParams struct{}

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

func GetLayoutMetrics Uses

func GetLayoutMetrics() *GetLayoutMetricsParams

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

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

func (*GetLayoutMetricsParams) Do Uses

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

Do executes Page.getLayoutMetrics against the provided context.

returns:

layoutViewport - Metrics relating to the layout viewport.
visualViewport - Metrics relating to the visual viewport.
contentSize - Size of scrollable area.

func (GetLayoutMetricsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetLayoutMetricsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetLayoutMetricsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetLayoutMetricsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetLayoutMetricsReturns Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetLayoutMetricsReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetLayoutMetricsReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetLayoutMetricsReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetManifestIconsParams Uses

type GetManifestIconsParams struct{}

GetManifestIconsParams [no description].

func GetManifestIcons Uses

func GetManifestIcons() *GetManifestIconsParams

GetManifestIcons [no description].

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

func (*GetManifestIconsParams) Do Uses

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

Do executes Page.getManifestIcons against the provided context.

returns:

primaryIcon

func (GetManifestIconsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetManifestIconsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetManifestIconsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetManifestIconsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetManifestIconsReturns Uses

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

GetManifestIconsReturns return values.

func (GetManifestIconsReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetManifestIconsReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetManifestIconsReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetManifestIconsReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetNavigationHistoryParams Uses

type GetNavigationHistoryParams struct{}

GetNavigationHistoryParams returns navigation history for the current page.

func GetNavigationHistory Uses

func GetNavigationHistory() *GetNavigationHistoryParams

GetNavigationHistory returns navigation history for the current page.

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

func (*GetNavigationHistoryParams) Do Uses

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

Do executes Page.getNavigationHistory against the provided context.

returns:

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

func (GetNavigationHistoryParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNavigationHistoryParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetNavigationHistoryParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNavigationHistoryParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetNavigationHistoryReturns Uses

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

GetNavigationHistoryReturns return values.

func (GetNavigationHistoryReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetNavigationHistoryReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetNavigationHistoryReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetNavigationHistoryReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceContentParams Uses

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 Uses

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

GetResourceContent returns content of the given resource.

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

parameters:

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

func (*GetResourceContentParams) Do Uses

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

Do executes Page.getResourceContent against the provided context.

returns:

content - Resource content.

func (GetResourceContentParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceContentParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetResourceContentParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceContentParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceContentReturns Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceContentReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetResourceContentReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceContentReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceTreeParams Uses

type GetResourceTreeParams struct{}

GetResourceTreeParams returns present frame / resource tree structure.

func GetResourceTree Uses

func GetResourceTree() *GetResourceTreeParams

GetResourceTree returns present frame / resource tree structure.

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

func (*GetResourceTreeParams) Do Uses

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

Do executes Page.getResourceTree against the provided context.

returns:

frameTree - Present frame / resource tree structure.

func (GetResourceTreeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceTreeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetResourceTreeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceTreeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResourceTreeReturns Uses

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

GetResourceTreeReturns return values.

func (GetResourceTreeReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResourceTreeReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetResourceTreeReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResourceTreeReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type HandleJavaScriptDialogParams Uses

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 Uses

func HandleJavaScriptDialog(accept bool) *HandleJavaScriptDialogParams

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

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

parameters:

accept - Whether to accept or dismiss the dialog.

func (*HandleJavaScriptDialogParams) Do Uses

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

Do executes Page.handleJavaScriptDialog against the provided context.

func (HandleJavaScriptDialogParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HandleJavaScriptDialogParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HandleJavaScriptDialogParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HandleJavaScriptDialogParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HandleJavaScriptDialogParams) WithPromptText Uses

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 InstallabilityError Uses

type InstallabilityError struct {
    ErrorID        string                         `json:"errorId"`        // The error id (e.g. 'manifest-missing-suitable-icon').
    ErrorArguments []*InstallabilityErrorArgument `json:"errorArguments"` // The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).
}

InstallabilityError the installability error.

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

func (InstallabilityError) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (InstallabilityError) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*InstallabilityError) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InstallabilityError) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type InstallabilityErrorArgument Uses

type InstallabilityErrorArgument struct {
    Name  string `json:"name"`  // Argument name (e.g. name:'minimum-icon-size-in-pixels').
    Value string `json:"value"` // Argument value (e.g. value:'64').
}

InstallabilityErrorArgument [no description].

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

func (InstallabilityErrorArgument) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (InstallabilityErrorArgument) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*InstallabilityErrorArgument) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InstallabilityErrorArgument) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type LayoutViewport Uses

type LayoutViewport struct {
    PageX        int64 `json:"pageX"`        // Horizontal offset relative to the document (CSS pixels).
    PageY        int64 `json:"pageY"`        // Vertical offset relative to the document (CSS pixels).
    ClientWidth  int64 `json:"clientWidth"`  // Width (CSS pixels), excludes scrollbar if present.
    ClientHeight int64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present.
}

LayoutViewport layout viewport position and dimensions.

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

func (LayoutViewport) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (LayoutViewport) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*LayoutViewport) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LayoutViewport) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

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

NavigateParams navigates current page to the given URL.

func Navigate(url string) *NavigateParams

Navigate navigates current page to the given URL.

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

parameters:

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

Do executes Page.navigate against the provided context.

returns:

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

MarshalEasyJSON supports easyjson.Marshaler interface

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

MarshalJSON supports json.Marshaler interface

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

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

UnmarshalJSON supports json.Unmarshaler interface

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

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

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

WithReferrer referrer URL.

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

WithReferrerPolicy referrer-policy used for the navigation.

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

WithTransitionType intended transition type.

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

NavigateReturns return values.

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

MarshalEasyJSON supports easyjson.Marshaler interface

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

MarshalJSON supports json.Marshaler interface

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

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

UnmarshalJSON supports json.Unmarshaler interface

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

NavigateToHistoryEntryParams navigates current page to the given history entry.

func NavigateToHistoryEntry(entryID int64) *NavigateToHistoryEntryParams

NavigateToHistoryEntry navigates current page to the given history entry.

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

parameters:

entryID - Unique id of the entry to navigate to.
func (p *NavigateToHistoryEntryParams) Do(ctx context.Context) (err error)

Do executes Page.navigateToHistoryEntry against the provided context.

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

MarshalEasyJSON supports easyjson.Marshaler interface

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

MarshalJSON supports json.Marshaler interface

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

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

UnmarshalJSON supports json.Unmarshaler interface

type NavigationEntry struct {
    ID             int64          `json:"id"`             // Unique id of the navigation history entry.
    URL            string         `json:"url"`            // URL of the navigation history entry.
    UserTypedURL   string         `json:"userTypedURL"`   // URL that the user typed in the url bar.
    Title          string         `json:"title"`          // Title of the navigation history entry.
    TransitionType TransitionType `json:"transitionType"` // Transition type.
}

NavigationEntry navigation history entry.

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

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

MarshalJSON supports json.Marshaler interface

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

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

UnmarshalJSON supports json.Unmarshaler interface

type PrintToPDFParams Uses

type PrintToPDFParams struct {
    Landscape               bool                   `json:"landscape,omitempty"`               // Paper orientation. Defaults to false.
    DisplayHeaderFooter     bool                   `json:"displayHeaderFooter,omitempty"`     // Display header and footer. Defaults to false.
    PrintBackground         bool                   `json:"printBackground,omitempty"`         // Print background graphics. Defaults to false.
    Scale                   float64                `json:"scale,omitempty"`                   // Scale of the webpage rendering. Defaults to 1.
    PaperWidth              float64                `json:"paperWidth,omitempty"`              // Paper width in inches. Defaults to 8.5 inches.
    PaperHeight             float64                `json:"paperHeight,omitempty"`             // Paper height in inches. Defaults to 11 inches.
    MarginTop               float64                `json:"marginTop"`                         // Top margin in inches. Defaults to 1cm (~0.4 inches).
    MarginBottom            float64                `json:"marginBottom"`                      // Bottom margin in inches. Defaults to 1cm (~0.4 inches).
    MarginLeft              float64                `json:"marginLeft"`                        // Left margin in inches. Defaults to 1cm (~0.4 inches).
    MarginRight             float64                `json:"marginRight"`                       // Right margin in inches. Defaults to 1cm (~0.4 inches).
    PageRanges              string                 `json:"pageRanges,omitempty"`              // Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
    IgnoreInvalidPageRanges bool                   `json:"ignoreInvalidPageRanges,omitempty"` // Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.
    HeaderTemplate          string                 `json:"headerTemplate,omitempty"`          // HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document  For example, <span class=title></span> would generate span containing the title.
    FooterTemplate          string                 `json:"footerTemplate,omitempty"`          // HTML template for the print footer. Should use the same format as the headerTemplate.
    PreferCSSPageSize       bool                   `json:"preferCSSPageSize,omitempty"`       // Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.
    TransferMode            PrintToPDFTransferMode `json:"transferMode,omitempty"`            // return as stream
}

PrintToPDFParams print page as PDF.

func PrintToPDF Uses

func PrintToPDF() *PrintToPDFParams

PrintToPDF print page as PDF.

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

parameters:

func (*PrintToPDFParams) Do Uses

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

Do executes Page.printToPDF against the provided context.

returns:

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

func (PrintToPDFParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrintToPDFParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*PrintToPDFParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrintToPDFParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (PrintToPDFParams) WithDisplayHeaderFooter Uses

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

WithDisplayHeaderFooter display header and footer. Defaults to false.

func (PrintToPDFParams) WithFooterTemplate Uses

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

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

func (PrintToPDFParams) WithHeaderTemplate Uses

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

WithHeaderTemplate HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document For example, <span class=title></span> would generate span containing the title.

func (PrintToPDFParams) WithIgnoreInvalidPageRanges Uses

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

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

func (PrintToPDFParams) WithLandscape Uses

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

WithLandscape paper orientation. Defaults to false.

func (PrintToPDFParams) WithMarginBottom Uses

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

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

func (PrintToPDFParams) WithMarginLeft Uses

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

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

func (PrintToPDFParams) WithMarginRight Uses

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

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

func (PrintToPDFParams) WithMarginTop Uses

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

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

func (PrintToPDFParams) WithPageRanges Uses

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 Uses

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

WithPaperHeight paper height in inches. Defaults to 11 inches.

func (PrintToPDFParams) WithPaperWidth Uses

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

WithPaperWidth paper width in inches. Defaults to 8.5 inches.

func (PrintToPDFParams) WithPreferCSSPageSize Uses

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

WithPreferCSSPageSize whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.

func (PrintToPDFParams) WithPrintBackground Uses

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

WithPrintBackground print background graphics. Defaults to false.

func (PrintToPDFParams) WithScale Uses

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

WithScale scale of the webpage rendering. Defaults to 1.

func (PrintToPDFParams) WithTransferMode Uses

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

WithTransferMode return as stream.

type PrintToPDFReturns Uses

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

PrintToPDFReturns return values.

func (PrintToPDFReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrintToPDFReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*PrintToPDFReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrintToPDFReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PrintToPDFTransferMode Uses

type PrintToPDFTransferMode string

PrintToPDFTransferMode return as stream.

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

const (
    PrintToPDFTransferModeReturnAsBase64 PrintToPDFTransferMode = "ReturnAsBase64"
    PrintToPDFTransferModeReturnAsStream PrintToPDFTransferMode = "ReturnAsStream"
)

PrintToPDFTransferMode values.

func (PrintToPDFTransferMode) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PrintToPDFTransferMode) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (PrintToPDFTransferMode) String Uses

func (t PrintToPDFTransferMode) String() string

String returns the PrintToPDFTransferMode as string value.

func (*PrintToPDFTransferMode) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PrintToPDFTransferMode) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReferrerPolicy Uses

type ReferrerPolicy string

ReferrerPolicy the referring-policy used for the navigation.

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

const (
    ReferrerPolicyNoReferrer                  ReferrerPolicy = "noReferrer"
    ReferrerPolicyNoReferrerWhenDowngrade     ReferrerPolicy = "noReferrerWhenDowngrade"
    ReferrerPolicyOrigin                      ReferrerPolicy = "origin"
    ReferrerPolicyOriginWhenCrossOrigin       ReferrerPolicy = "originWhenCrossOrigin"
    ReferrerPolicySameOrigin                  ReferrerPolicy = "sameOrigin"
    ReferrerPolicyStrictOrigin                ReferrerPolicy = "strictOrigin"
    ReferrerPolicyStrictOriginWhenCrossOrigin ReferrerPolicy = "strictOriginWhenCrossOrigin"
    ReferrerPolicyUnsafeURL                   ReferrerPolicy = "unsafeUrl"
)

ReferrerPolicy values.

func (ReferrerPolicy) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ReferrerPolicy) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ReferrerPolicy) String Uses

func (t ReferrerPolicy) String() string

String returns the ReferrerPolicy as string value.

func (*ReferrerPolicy) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ReferrerPolicy) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReloadParams Uses

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

ReloadParams reloads given page optionally ignoring the cache.

func Reload Uses

func Reload() *ReloadParams

Reload reloads given page optionally ignoring the cache.

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

parameters:

func (*ReloadParams) Do Uses

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

Do executes Page.reload against the provided context.

func (ReloadParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReloadParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ReloadParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReloadParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (ReloadParams) WithIgnoreCache Uses

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

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

func (ReloadParams) WithScriptToEvaluateOnLoad Uses

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

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

type RemoveScriptToEvaluateOnNewDocumentParams Uses

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

RemoveScriptToEvaluateOnNewDocumentParams removes given script from the list.

func RemoveScriptToEvaluateOnNewDocument Uses

func RemoveScriptToEvaluateOnNewDocument(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnNewDocumentParams

RemoveScriptToEvaluateOnNewDocument removes given script from the list.

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

parameters:

identifier

func (*RemoveScriptToEvaluateOnNewDocumentParams) Do Uses

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

Do executes Page.removeScriptToEvaluateOnNewDocument against the provided context.

func (RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ResetNavigationHistoryParams Uses

type ResetNavigationHistoryParams struct{}

ResetNavigationHistoryParams resets navigation history for the current page.

func ResetNavigationHistory Uses

func ResetNavigationHistory() *ResetNavigationHistoryParams

ResetNavigationHistory resets navigation history for the current page.

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

func (*ResetNavigationHistoryParams) Do Uses

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

Do executes Page.resetNavigationHistory against the provided context.

func (ResetNavigationHistoryParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResetNavigationHistoryParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ResetNavigationHistoryParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResetNavigationHistoryParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ScreencastFormat Uses

type ScreencastFormat string

ScreencastFormat image compression format.

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

const (
    ScreencastFormatJpeg ScreencastFormat = "jpeg"
    ScreencastFormatPng  ScreencastFormat = "png"
)

ScreencastFormat values.

func (ScreencastFormat) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScreencastFormat) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ScreencastFormat) String Uses

func (t ScreencastFormat) String() string

String returns the ScreencastFormat as string value.

func (*ScreencastFormat) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScreencastFormat) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ScreencastFrameAckParams Uses

type ScreencastFrameAckParams struct {
    SessionID int64 `json:"sessionId"` // Frame number.
}

ScreencastFrameAckParams acknowledges that a screencast frame has been received by the frontend.

func ScreencastFrameAck Uses

func ScreencastFrameAck(sessionID int64) *ScreencastFrameAckParams

ScreencastFrameAck acknowledges that a screencast frame has been received by the frontend.

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

parameters:

sessionID - Frame number.

func (*ScreencastFrameAckParams) Do Uses

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

Do executes Page.screencastFrameAck against the provided context.

func (ScreencastFrameAckParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScreencastFrameAckParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ScreencastFrameAckParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScreencastFrameAckParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ScreencastFrameMetadata Uses

type ScreencastFrameMetadata struct {
    OffsetTop       float64             `json:"offsetTop"`           // Top offset in DIP.
    PageScaleFactor float64             `json:"pageScaleFactor"`     // Page scale factor.
    DeviceWidth     float64             `json:"deviceWidth"`         // Device screen width in DIP.
    DeviceHeight    float64             `json:"deviceHeight"`        // Device screen height in DIP.
    ScrollOffsetX   float64             `json:"scrollOffsetX"`       // Position of horizontal scroll in CSS pixels.
    ScrollOffsetY   float64             `json:"scrollOffsetY"`       // Position of vertical scroll in CSS pixels.
    Timestamp       *cdp.TimeSinceEpoch `json:"timestamp,omitempty"` // Frame swap timestamp.
}

ScreencastFrameMetadata screencast frame metadata.

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

func (ScreencastFrameMetadata) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScreencastFrameMetadata) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ScreencastFrameMetadata) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScreencastFrameMetadata) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ScriptIdentifier Uses

type ScriptIdentifier string

ScriptIdentifier unique script identifier.

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

func (ScriptIdentifier) String Uses

func (t ScriptIdentifier) String() string

String returns the ScriptIdentifier as string value.

type SearchInResourceParams Uses

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 Uses

func SearchInResource(frameID cdp.FrameID, url string, query string) *SearchInResourceParams

SearchInResource searches for given string in resource content.

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

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 Uses

func (p *SearchInResourceParams) Do(ctx context.Context) (result []*debugger.SearchMatch, err error)

Do executes Page.searchInResource against the provided context.

returns:

result - List of search matches.

func (SearchInResourceParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInResourceParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SearchInResourceParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInResourceParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SearchInResourceParams) WithCaseSensitive Uses

func (p SearchInResourceParams) WithCaseSensitive(caseSensitive bool) *SearchInResourceParams

WithCaseSensitive if true, search is case sensitive.

func (SearchInResourceParams) WithIsRegex Uses

func (p SearchInResourceParams) WithIsRegex(isRegex bool) *SearchInResourceParams

WithIsRegex if true, treats string parameter as regex.

type SearchInResourceReturns Uses

type SearchInResourceReturns struct {
    Result []*debugger.SearchMatch `json:"result,omitempty"` // List of search matches.
}

SearchInResourceReturns return values.

func (SearchInResourceReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInResourceReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SearchInResourceReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInResourceReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetAdBlockingEnabledParams Uses

type SetAdBlockingEnabledParams struct {
    Enabled bool `json:"enabled"` // Whether to block ads.
}

SetAdBlockingEnabledParams enable Chrome's experimental ad filter on all sites.

func SetAdBlockingEnabled Uses

func SetAdBlockingEnabled(enabled bool) *SetAdBlockingEnabledParams

SetAdBlockingEnabled enable Chrome's experimental ad filter on all sites.

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

parameters:

enabled - Whether to block ads.

func (*SetAdBlockingEnabledParams) Do Uses

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

Do executes Page.setAdBlockingEnabled against the provided context.

func (SetAdBlockingEnabledParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAdBlockingEnabledParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetAdBlockingEnabledParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAdBlockingEnabledParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBypassCSPParams Uses

type SetBypassCSPParams struct {
    Enabled bool `json:"enabled"` // Whether to bypass page CSP.
}

SetBypassCSPParams enable page Content Security Policy by-passing.

func SetBypassCSP Uses

func SetBypassCSP(enabled bool) *SetBypassCSPParams

SetBypassCSP enable page Content Security Policy by-passing.

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

parameters:

enabled - Whether to bypass page CSP.

func (*SetBypassCSPParams) Do Uses

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

Do executes Page.setBypassCSP against the provided context.

func (SetBypassCSPParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBypassCSPParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBypassCSPParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBypassCSPParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDocumentContentParams Uses

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 Uses

func SetDocumentContent(frameID cdp.FrameID, html string) *SetDocumentContentParams

SetDocumentContent sets given markup as the document's HTML.

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

parameters:

frameID - Frame id to set HTML for.
html - HTML content to set.

func (*SetDocumentContentParams) Do Uses

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

Do executes Page.setDocumentContent against the provided context.

func (SetDocumentContentParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDocumentContentParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetDocumentContentParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDocumentContentParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDownloadBehaviorBehavior Uses

type SetDownloadBehaviorBehavior string

SetDownloadBehaviorBehavior whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).

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

const (
    SetDownloadBehaviorBehaviorDeny    SetDownloadBehaviorBehavior = "deny"
    SetDownloadBehaviorBehaviorAllow   SetDownloadBehaviorBehavior = "allow"
    SetDownloadBehaviorBehaviorDefault SetDownloadBehaviorBehavior = "default"
)

SetDownloadBehaviorBehavior values.

func (SetDownloadBehaviorBehavior) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetDownloadBehaviorBehavior) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (SetDownloadBehaviorBehavior) String Uses

func (t SetDownloadBehaviorBehavior) String() string

String returns the SetDownloadBehaviorBehavior as string value.

func (*SetDownloadBehaviorBehavior) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetDownloadBehaviorBehavior) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SetDownloadBehaviorParams Uses

type SetDownloadBehaviorParams struct {
    Behavior     SetDownloadBehaviorBehavior `json:"behavior"`               // Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
    DownloadPath string                      `json:"downloadPath,omitempty"` // The default path to save downloaded files to. This is required if behavior is set to 'allow'
}

SetDownloadBehaviorParams set the behavior when downloading a file.

func SetDownloadBehavior Uses

func SetDownloadBehavior(behavior SetDownloadBehaviorBehavior) *SetDownloadBehaviorParams

SetDownloadBehavior set the behavior when downloading a file.

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

parameters:

behavior - Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).

func (*SetDownloadBehaviorParams) Do Uses

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

Do executes Page.setDownloadBehavior against the provided context.

func (SetDownloadBehaviorParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDownloadBehaviorParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetDownloadBehaviorParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDownloadBehaviorParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetDownloadBehaviorParams) WithDownloadPath Uses

func (p SetDownloadBehaviorParams) WithDownloadPath(downloadPath string) *SetDownloadBehaviorParams

WithDownloadPath the default path to save downloaded files to. This is required if behavior is set to 'allow'.

type SetFontFamiliesParams Uses

type SetFontFamiliesParams struct {
    FontFamilies *FontFamilies `json:"fontFamilies"` // Specifies font families to set. If a font family is not specified, it won't be changed.
}

SetFontFamiliesParams set generic font families.

func SetFontFamilies Uses

func SetFontFamilies(fontFamilies *FontFamilies) *SetFontFamiliesParams

SetFontFamilies set generic font families.

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

parameters:

fontFamilies - Specifies font families to set. If a font family is not specified, it won't be changed.

func (*SetFontFamiliesParams) Do Uses

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

Do executes Page.setFontFamilies against the provided context.

func (SetFontFamiliesParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetFontFamiliesParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetFontFamiliesParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetFontFamiliesParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetFontSizesParams Uses

type SetFontSizesParams struct {
    FontSizes *FontSizes `json:"fontSizes"` // Specifies font sizes to set. If a font size is not specified, it won't be changed.
}

SetFontSizesParams set default font sizes.

func SetFontSizes Uses

func SetFontSizes(fontSizes *FontSizes) *SetFontSizesParams

SetFontSizes set default font sizes.

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

parameters:

fontSizes - Specifies font sizes to set. If a font size is not specified, it won't be changed.

func (*SetFontSizesParams) Do Uses

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

Do executes Page.setFontSizes against the provided context.

func (SetFontSizesParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetFontSizesParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetFontSizesParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetFontSizesParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetInterceptFileChooserDialogParams Uses

type SetInterceptFileChooserDialogParams struct {
    Enabled bool `json:"enabled"`
}

SetInterceptFileChooserDialogParams intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

func SetInterceptFileChooserDialog Uses

func SetInterceptFileChooserDialog(enabled bool) *SetInterceptFileChooserDialogParams

SetInterceptFileChooserDialog intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

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

parameters:

enabled

func (*SetInterceptFileChooserDialogParams) Do Uses

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

Do executes Page.setInterceptFileChooserDialog against the provided context.

func (SetInterceptFileChooserDialogParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInterceptFileChooserDialogParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetInterceptFileChooserDialogParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInterceptFileChooserDialogParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetLifecycleEventsEnabledParams Uses

type SetLifecycleEventsEnabledParams struct {
    Enabled bool `json:"enabled"` // If true, starts emitting lifecycle events.
}

SetLifecycleEventsEnabledParams controls whether page will emit lifecycle events.

func SetLifecycleEventsEnabled Uses

func SetLifecycleEventsEnabled(enabled bool) *SetLifecycleEventsEnabledParams

SetLifecycleEventsEnabled controls whether page will emit lifecycle events.

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

parameters:

enabled - If true, starts emitting lifecycle events.

func (*SetLifecycleEventsEnabledParams) Do Uses

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

Do executes Page.setLifecycleEventsEnabled against the provided context.

func (SetLifecycleEventsEnabledParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetLifecycleEventsEnabledParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetLifecycleEventsEnabledParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetLifecycleEventsEnabledParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetProduceCompilationCacheParams Uses

type SetProduceCompilationCacheParams struct {
    Enabled bool `json:"enabled"`
}

SetProduceCompilationCacheParams forces compilation cache to be generated for every subresource script.

func SetProduceCompilationCache Uses

func SetProduceCompilationCache(enabled bool) *SetProduceCompilationCacheParams

SetProduceCompilationCache forces compilation cache to be generated for every subresource script.

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

parameters:

enabled

func (*SetProduceCompilationCacheParams) Do Uses

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

Do executes Page.setProduceCompilationCache against the provided context.

func (SetProduceCompilationCacheParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetProduceCompilationCacheParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetProduceCompilationCacheParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetProduceCompilationCacheParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetWebLifecycleStateParams Uses

type SetWebLifecycleStateParams struct {
    State SetWebLifecycleStateState `json:"state"` // Target lifecycle state
}

SetWebLifecycleStateParams tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/.

func SetWebLifecycleState Uses

func SetWebLifecycleState(state SetWebLifecycleStateState) *SetWebLifecycleStateParams

SetWebLifecycleState tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/.

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

parameters:

state - Target lifecycle state

func (*SetWebLifecycleStateParams) Do Uses

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

Do executes Page.setWebLifecycleState against the provided context.

func (SetWebLifecycleStateParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetWebLifecycleStateParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetWebLifecycleStateParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetWebLifecycleStateParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetWebLifecycleStateState Uses

type SetWebLifecycleStateState string

SetWebLifecycleStateState target lifecycle state.

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

const (
    SetWebLifecycleStateStateFrozen SetWebLifecycleStateState = "frozen"
    SetWebLifecycleStateStateActive SetWebLifecycleStateState = "active"
)

SetWebLifecycleStateState values.

func (SetWebLifecycleStateState) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetWebLifecycleStateState) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (SetWebLifecycleStateState) String Uses

func (t SetWebLifecycleStateState) String() string

String returns the SetWebLifecycleStateState as string value.

func (*SetWebLifecycleStateState) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetWebLifecycleStateState) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type StartScreencastParams Uses

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 Uses

func StartScreencast() *StartScreencastParams

StartScreencast starts sending each frame using the screencastFrame event.

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

parameters:

func (*StartScreencastParams) Do Uses

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

Do executes Page.startScreencast against the provided context.

func (StartScreencastParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartScreencastParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StartScreencastParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartScreencastParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (StartScreencastParams) WithEveryNthFrame Uses

func (p StartScreencastParams) WithEveryNthFrame(everyNthFrame int64) *StartScreencastParams

WithEveryNthFrame send every n-th frame.

func (StartScreencastParams) WithFormat Uses

func (p StartScreencastParams) WithFormat(format ScreencastFormat) *StartScreencastParams

WithFormat image compression format.

func (StartScreencastParams) WithMaxHeight Uses

func (p StartScreencastParams) WithMaxHeight(maxHeight int64) *StartScreencastParams

WithMaxHeight maximum screenshot height.

func (StartScreencastParams) WithMaxWidth Uses

func (p StartScreencastParams) WithMaxWidth(maxWidth int64) *StartScreencastParams

WithMaxWidth maximum screenshot width.

func (StartScreencastParams) WithQuality Uses

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

WithQuality compression quality from range [0..100].

type StopLoadingParams Uses

type StopLoadingParams struct{}

StopLoadingParams force the page stop all navigations and pending resource fetches.

func StopLoading Uses

func StopLoading() *StopLoadingParams

StopLoading force the page stop all navigations and pending resource fetches.

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

func (*StopLoadingParams) Do Uses

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

Do executes Page.stopLoading against the provided context.

func (StopLoadingParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopLoadingParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StopLoadingParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopLoadingParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type StopScreencastParams Uses

type StopScreencastParams struct{}

StopScreencastParams stops sending each frame in the screencastFrame.

func StopScreencast Uses

func StopScreencast() *StopScreencastParams

StopScreencast stops sending each frame in the screencastFrame.

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

func (*StopScreencastParams) Do Uses

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

Do executes Page.stopScreencast against the provided context.

func (StopScreencastParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopScreencastParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StopScreencastParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopScreencastParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type TransitionType Uses

type TransitionType string

TransitionType transition type.

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

const (
    TransitionTypeLink             TransitionType = "link"
    TransitionTypeTyped            TransitionType = "typed"
    TransitionTypeAddressBar       TransitionType = "address_bar"
    TransitionTypeAutoBookmark     TransitionType = "auto_bookmark"
    TransitionTypeAutoSubframe     TransitionType = "auto_subframe"
    TransitionTypeManualSubframe   TransitionType = "manual_subframe"
    TransitionTypeGenerated        TransitionType = "generated"
    TransitionTypeAutoToplevel     TransitionType = "auto_toplevel"
    TransitionTypeFormSubmit       TransitionType = "form_submit"
    TransitionTypeReload           TransitionType = "reload"
    TransitionTypeKeyword          TransitionType = "keyword"
    TransitionTypeKeywordGenerated TransitionType = "keyword_generated"
    TransitionTypeOther            TransitionType = "other"
)

TransitionType values.

func (TransitionType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TransitionType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (TransitionType) String Uses

func (t TransitionType) String() string

String returns the TransitionType as string value.

func (*TransitionType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TransitionType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type Viewport Uses

type Viewport struct {
    X      float64 `json:"x"`      // X offset in device independent pixels (dip).
    Y      float64 `json:"y"`      // Y offset in device independent pixels (dip).
    Width  float64 `json:"width"`  // Rectangle width in device independent pixels (dip).
    Height float64 `json:"height"` // Rectangle height in device independent pixels (dip).
    Scale  float64 `json:"scale"`  // Page scale factor.
}

Viewport viewport for capturing screenshot.

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

func (Viewport) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Viewport) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Viewport) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Viewport) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type VisualViewport Uses

type VisualViewport struct {
    OffsetX      float64 `json:"offsetX"`        // Horizontal offset relative to the layout viewport (CSS pixels).
    OffsetY      float64 `json:"offsetY"`        // Vertical offset relative to the layout viewport (CSS pixels).
    PageX        float64 `json:"pageX"`          // Horizontal offset relative to the document (CSS pixels).
    PageY        float64 `json:"pageY"`          // Vertical offset relative to the document (CSS pixels).
    ClientWidth  float64 `json:"clientWidth"`    // Width (CSS pixels), excludes scrollbar if present.
    ClientHeight float64 `json:"clientHeight"`   // Height (CSS pixels), excludes scrollbar if present.
    Scale        float64 `json:"scale"`          // Scale relative to the ideal viewport (size at width=device-width).
    Zoom         float64 `json:"zoom,omitempty"` // Page zoom factor (CSS to device independent pixels ratio).
}

VisualViewport visual viewport position, dimensions, and scale.

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

func (VisualViewport) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (VisualViewport) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*VisualViewport) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VisualViewport) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type WaitForDebuggerParams Uses

type WaitForDebuggerParams struct{}

WaitForDebuggerParams pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

func WaitForDebugger Uses

func WaitForDebugger() *WaitForDebuggerParams

WaitForDebugger pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

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

func (*WaitForDebuggerParams) Do Uses

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

Do executes Page.waitForDebugger against the provided context.

func (WaitForDebuggerParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (WaitForDebuggerParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*WaitForDebuggerParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WaitForDebuggerParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

Package page imports 13 packages (graph) and is imported by 35 packages. Updated 2020-07-15. Refresh now. Tools for package owners.