gochrome

package module
v0.0.0-...-33283c5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: CC0-1.0 Imports: 19 Imported by: 0

README

Work in progress.

Package for remote controlling with Chrome DevTools. Requires Google Chrome.

No Windows support at the moment.

Install

go get github.com/bobbytrapz/gochrome
package main

import (
	"context"
	"log"
	"os"
	"os/signal"

	"github.com/bobbytrapz/gochrome"
)

func main() {
	ctx := context.Background()
	ctx, cancel := context.WithCancel(ctx)
	defer cancel()

	browser := gochrome.NewBrowser()

	browser.Flags = append(browser.Flags,
		"--blink-settings=imagesEnabled=false")

	tab, err := browser.StartFull(ctx, "", 44144)
	if err != nil {
		panic(err)
	}

	defer browser.Wait()

	_, err = tab.PageNavigate("https://golang.org", "", "", "", "")
	if err != nil {
		panic(err)
	}

	newTab, err := browser.NewTab(ctx)
	if err != nil {
		panic(err)
	}

	url := "https://go.dev"
	_, err = newTab.Goto(url)
	if err != nil {
		panic(err)
	}

	sig := make(chan os.Signal, 1)
	signal.Notify(sig, os.Interrupt)

	for {
		select {
		case <-sig:			
			signal.Stop(sig)
			cancel()
		case <-ctx.Done():
			return
		}
	}
}

Check out more examples

Documentation

Overview

Code generated by go generate; DO NOT EDIT. Chrome protocol v1.3 2021-01-05T01:54:28Z

Index

Constants

View Source
const (
	TemporaryUserProfileDirectory = ""
	DefaultPort                   = 44144
)

Variables

View Source
var (
	ErrExtractTimeout = errors.New("timeout")
)
View Source
var Log = func(string, ...interface{}) {}

Log function

View Source
var WaitForOpen = 20 * time.Second

WaitForOpen decides how long we wait for chrome to open

View Source
var WaitForTabConnect = 10 * time.Second

WaitForTabConnect decides how long we wait to connect to a tab

Functions

This section is empty.

Types

type AccessibilityAXNode

type AccessibilityAXNode map[string]interface{}

type AccessibilityAXNodeId

type AccessibilityAXNodeId string

type AccessibilityAXProperty

type AccessibilityAXProperty map[string]interface{}

type AccessibilityAXPropertyName

type AccessibilityAXPropertyName string

type AccessibilityAXRelatedNode

type AccessibilityAXRelatedNode map[string]interface{}

type AccessibilityAXValue

type AccessibilityAXValue map[string]interface{}

type AccessibilityAXValueNativeSourceType

type AccessibilityAXValueNativeSourceType string

type AccessibilityAXValueSource

type AccessibilityAXValueSource map[string]interface{}

type AccessibilityAXValueSourceType

type AccessibilityAXValueSourceType string

type AccessibilityAXValueType

type AccessibilityAXValueType string

type AccessibilityDisableReturns

type AccessibilityDisableReturns struct {
}

type AccessibilityEnableReturns

type AccessibilityEnableReturns struct {
}

type AccessibilityGetFullAXTreeReturns

type AccessibilityGetFullAXTreeReturns struct {
	Nodes []AccessibilityAXNode
}

type AccessibilityGetPartialAXTreeReturns

type AccessibilityGetPartialAXTreeReturns struct {
	Nodes []AccessibilityAXNode
}

type AccessibilityQueryAXTreeReturns

type AccessibilityQueryAXTreeReturns struct {
	Nodes []AccessibilityAXNode
}

type AnimationAnimation

type AnimationAnimation map[string]interface{}

type AnimationAnimationCanceledEvent

type AnimationAnimationCanceledEvent struct {
	Id string
}

type AnimationAnimationCanceledHandler

type AnimationAnimationCanceledHandler func(ev AnimationAnimationCanceledEvent)

type AnimationAnimationCreatedEvent

type AnimationAnimationCreatedEvent struct {
	Id string
}

type AnimationAnimationCreatedHandler

type AnimationAnimationCreatedHandler func(ev AnimationAnimationCreatedEvent)

type AnimationAnimationEffect

type AnimationAnimationEffect map[string]interface{}

type AnimationAnimationStartedEvent

type AnimationAnimationStartedEvent struct {
	Animation AnimationAnimation
}

type AnimationAnimationStartedHandler

type AnimationAnimationStartedHandler func(ev AnimationAnimationStartedEvent)

type AnimationDisableReturns

type AnimationDisableReturns struct {
}

type AnimationEnableReturns

type AnimationEnableReturns struct {
}

type AnimationGetCurrentTimeReturns

type AnimationGetCurrentTimeReturns struct {
	CurrentTime float64
}

type AnimationGetPlaybackRateReturns

type AnimationGetPlaybackRateReturns struct {
	PlaybackRate float64
}

type AnimationKeyframeStyle

type AnimationKeyframeStyle map[string]interface{}

type AnimationKeyframesRule

type AnimationKeyframesRule map[string]interface{}

type AnimationReleaseAnimationsReturns

type AnimationReleaseAnimationsReturns struct {
}

type AnimationResolveAnimationReturns

type AnimationResolveAnimationReturns struct {
	RemoteObject RuntimeRemoteObject
}

type AnimationSeekAnimationsReturns

type AnimationSeekAnimationsReturns struct {
}

type AnimationSetPausedReturns

type AnimationSetPausedReturns struct {
}

type AnimationSetPlaybackRateReturns

type AnimationSetPlaybackRateReturns struct {
}

type AnimationSetTimingReturns

type AnimationSetTimingReturns struct {
}

type ApplicationCacheApplicationCache

type ApplicationCacheApplicationCache map[string]interface{}

type ApplicationCacheApplicationCacheResource

type ApplicationCacheApplicationCacheResource map[string]interface{}

type ApplicationCacheApplicationCacheStatusUpdatedEvent

type ApplicationCacheApplicationCacheStatusUpdatedEvent struct {
	FrameId PageFrameId

	ManifestURL string

	Status int
}

type ApplicationCacheApplicationCacheStatusUpdatedHandler

type ApplicationCacheApplicationCacheStatusUpdatedHandler func(ev ApplicationCacheApplicationCacheStatusUpdatedEvent)

type ApplicationCacheEnableReturns

type ApplicationCacheEnableReturns struct {
}

type ApplicationCacheFrameWithManifest

type ApplicationCacheFrameWithManifest map[string]interface{}

type ApplicationCacheGetApplicationCacheForFrameReturns

type ApplicationCacheGetApplicationCacheForFrameReturns struct {
	ApplicationCache ApplicationCacheApplicationCache
}

type ApplicationCacheGetFramesWithManifestsReturns

type ApplicationCacheGetFramesWithManifestsReturns struct {
	FrameIds []ApplicationCacheFrameWithManifest
}

type ApplicationCacheGetManifestForFrameReturns

type ApplicationCacheGetManifestForFrameReturns struct {
	ManifestURL string
}

type ApplicationCacheNetworkStateUpdatedEvent

type ApplicationCacheNetworkStateUpdatedEvent struct {
	IsNowOnline bool
}

type ApplicationCacheNetworkStateUpdatedHandler

type ApplicationCacheNetworkStateUpdatedHandler func(ev ApplicationCacheNetworkStateUpdatedEvent)

type AuditsAffectedCookie

type AuditsAffectedCookie map[string]interface{}

type AuditsAffectedFrame

type AuditsAffectedFrame map[string]interface{}

type AuditsAffectedRequest

type AuditsAffectedRequest map[string]interface{}

type AuditsBlockedByResponseIssueDetails

type AuditsBlockedByResponseIssueDetails map[string]interface{}

type AuditsBlockedByResponseReason

type AuditsBlockedByResponseReason string

type AuditsContentSecurityPolicyIssueDetails

type AuditsContentSecurityPolicyIssueDetails map[string]interface{}

type AuditsContentSecurityPolicyViolationType

type AuditsContentSecurityPolicyViolationType string

type AuditsDisableReturns

type AuditsDisableReturns struct {
}

type AuditsEnableReturns

type AuditsEnableReturns struct {
}

type AuditsGetEncodedResponseReturns

type AuditsGetEncodedResponseReturns struct {
	Body string

	OriginalSize int

	EncodedSize int
}

type AuditsHeavyAdIssueDetails

type AuditsHeavyAdIssueDetails map[string]interface{}

type AuditsHeavyAdReason

type AuditsHeavyAdReason string

type AuditsHeavyAdResolutionStatus

type AuditsHeavyAdResolutionStatus string

type AuditsInspectorIssue

type AuditsInspectorIssue map[string]interface{}

type AuditsInspectorIssueCode

type AuditsInspectorIssueCode string

type AuditsInspectorIssueDetails

type AuditsInspectorIssueDetails map[string]interface{}

type AuditsIssueAddedEvent

type AuditsIssueAddedEvent struct {
	Issue AuditsInspectorIssue
}

type AuditsIssueAddedHandler

type AuditsIssueAddedHandler func(ev AuditsIssueAddedEvent)

type AuditsMixedContentIssueDetails

type AuditsMixedContentIssueDetails map[string]interface{}

type AuditsMixedContentResolutionStatus

type AuditsMixedContentResolutionStatus string

type AuditsMixedContentResourceType

type AuditsMixedContentResourceType string

type AuditsSameSiteCookieExclusionReason

type AuditsSameSiteCookieExclusionReason string

type AuditsSameSiteCookieIssueDetails

type AuditsSameSiteCookieIssueDetails map[string]interface{}

type AuditsSameSiteCookieOperation

type AuditsSameSiteCookieOperation string

type AuditsSameSiteCookieWarningReason

type AuditsSameSiteCookieWarningReason string

type AuditsSourceCodeLocation

type AuditsSourceCodeLocation map[string]interface{}

type BackgroundServiceBackgroundServiceEvent

type BackgroundServiceBackgroundServiceEvent map[string]interface{}

type BackgroundServiceBackgroundServiceEventReceivedEvent

type BackgroundServiceBackgroundServiceEventReceivedEvent struct {
	BackgroundServiceEvent BackgroundServiceBackgroundServiceEvent
}

type BackgroundServiceBackgroundServiceEventReceivedHandler

type BackgroundServiceBackgroundServiceEventReceivedHandler func(ev BackgroundServiceBackgroundServiceEventReceivedEvent)

type BackgroundServiceClearEventsReturns

type BackgroundServiceClearEventsReturns struct {
}

type BackgroundServiceEventMetadata

type BackgroundServiceEventMetadata map[string]interface{}

type BackgroundServiceRecordingStateChangedEvent

type BackgroundServiceRecordingStateChangedEvent struct {
	IsRecording bool

	Service BackgroundServiceServiceName
}

type BackgroundServiceRecordingStateChangedHandler

type BackgroundServiceRecordingStateChangedHandler func(ev BackgroundServiceRecordingStateChangedEvent)

type BackgroundServiceServiceName

type BackgroundServiceServiceName string

type BackgroundServiceSetRecordingReturns

type BackgroundServiceSetRecordingReturns struct {
}

type BackgroundServiceStartObservingReturns

type BackgroundServiceStartObservingReturns struct {
}

type BackgroundServiceStopObservingReturns

type BackgroundServiceStopObservingReturns struct {
}

type Browser

type Browser struct {
	// flags passed into chrome
	Flags []string
	// useragent string passed when using HTTPClient
	UserAgent string

	// client to communicate with chrome
	// also used for making other requests
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Browser is a single running chrome browser

func NewBrowser

func NewBrowser() *Browser

NewBrowser creates a new chrome browser does not start a chrome process

func NewBrowserWithFlags

func NewBrowserWithFlags(flags []string) *Browser

NewBrowserWithFlags creates a new chrome Browser and sets given flags

func (*Browser) Close

func (b *Browser) Close() error

Close the browser.

func (*Browser) GetProtocol

func (b *Browser) GetProtocol() (protocol Protocol)

GetProtocol from chrome

func (*Browser) NewTab

func (b *Browser) NewTab(ctx context.Context) (*Tab, error)

NewTab opens a new tab

func (*Browser) NewTabPool

func (b *Browser) NewTabPool(ctx context.Context, N int) (tabPool *TabPool, err error)

NewTabPool create a new pool of N tabs

func (*Browser) PID

func (b *Browser) PID() int

PID returns the chrome process id

func (*Browser) Start

func (b *Browser) Start(ctx context.Context, userProfileDir string, port int) (*Tab, error)

Start finds chrome and runs it headless

func (*Browser) StartFull

func (b *Browser) StartFull(ctx context.Context, userProfileDir string, port int) (*Tab, error)

StartFull finds chrome and runs it but full (non-headless)

func (*Browser) Wait

func (b *Browser) Wait()

Wait for chrome to close

type BrowserBounds

type BrowserBounds map[string]interface{}

type BrowserBrowserContextID

type BrowserBrowserContextID string

type BrowserBucket

type BrowserBucket map[string]interface{}

type BrowserCloseReturns

type BrowserCloseReturns struct {
}

type BrowserCrashGpuProcessReturns

type BrowserCrashGpuProcessReturns struct {
}

type BrowserCrashReturns

type BrowserCrashReturns struct {
}

type BrowserGetBrowserCommandLineReturns

type BrowserGetBrowserCommandLineReturns struct {
	Arguments []string
}

type BrowserGetHistogramReturns

type BrowserGetHistogramReturns struct {
	Histogram BrowserHistogram
}

type BrowserGetHistogramsReturns

type BrowserGetHistogramsReturns struct {
	Histograms []BrowserHistogram
}

type BrowserGetVersionReturns

type BrowserGetVersionReturns struct {
	ProtocolVersion string

	Product string

	Revision string

	UserAgent string

	JsVersion string
}

type BrowserGetWindowBoundsReturns

type BrowserGetWindowBoundsReturns struct {
	Bounds BrowserBounds
}

type BrowserGetWindowForTargetReturns

type BrowserGetWindowForTargetReturns struct {
	WindowId BrowserWindowID

	Bounds BrowserBounds
}

type BrowserGrantPermissionsReturns

type BrowserGrantPermissionsReturns struct {
}

type BrowserHistogram

type BrowserHistogram map[string]interface{}

type BrowserPermissionDescriptor

type BrowserPermissionDescriptor map[string]interface{}

type BrowserPermissionSetting

type BrowserPermissionSetting string

type BrowserPermissionType

type BrowserPermissionType string

type BrowserResetPermissionsReturns

type BrowserResetPermissionsReturns struct {
}

type BrowserSetDockTileReturns

type BrowserSetDockTileReturns struct {
}

type BrowserSetDownloadBehaviorReturns

type BrowserSetDownloadBehaviorReturns struct {
}

type BrowserSetPermissionReturns

type BrowserSetPermissionReturns struct {
}

type BrowserSetWindowBoundsReturns

type BrowserSetWindowBoundsReturns struct {
}

type BrowserWindowID

type BrowserWindowID int

type BrowserWindowState

type BrowserWindowState string

type CSSAddRuleReturns

type CSSAddRuleReturns struct {
	Rule CSSCSSRule
}

type CSSCSSComputedStyleProperty

type CSSCSSComputedStyleProperty map[string]interface{}

type CSSCSSKeyframeRule

type CSSCSSKeyframeRule map[string]interface{}

type CSSCSSKeyframesRule

type CSSCSSKeyframesRule map[string]interface{}

type CSSCSSMedia

type CSSCSSMedia map[string]interface{}

type CSSCSSProperty

type CSSCSSProperty map[string]interface{}

type CSSCSSRule

type CSSCSSRule map[string]interface{}

type CSSCSSStyle

type CSSCSSStyle map[string]interface{}

type CSSCSSStyleSheetHeader

type CSSCSSStyleSheetHeader map[string]interface{}

type CSSCollectClassNamesReturns

type CSSCollectClassNamesReturns struct {
	ClassNames []string
}

type CSSCreateStyleSheetReturns

type CSSCreateStyleSheetReturns struct {
	StyleSheetId CSSStyleSheetId
}

type CSSDisableReturns

type CSSDisableReturns struct {
}

type CSSEnableReturns

type CSSEnableReturns struct {
}

type CSSFontFace

type CSSFontFace map[string]interface{}

type CSSFontVariationAxis

type CSSFontVariationAxis map[string]interface{}

type CSSFontsUpdatedEvent

type CSSFontsUpdatedEvent struct {
	Font CSSFontFace
}

type CSSFontsUpdatedHandler

type CSSFontsUpdatedHandler func(ev CSSFontsUpdatedEvent)

type CSSForcePseudoStateReturns

type CSSForcePseudoStateReturns struct {
}

type CSSGetBackgroundColorsReturns

type CSSGetBackgroundColorsReturns struct {
	BackgroundColors []string

	ComputedFontSize string

	ComputedFontWeight string
}

type CSSGetComputedStyleForNodeReturns

type CSSGetComputedStyleForNodeReturns struct {
	ComputedStyle []CSSCSSComputedStyleProperty
}

type CSSGetInlineStylesForNodeReturns

type CSSGetInlineStylesForNodeReturns struct {
	InlineStyle CSSCSSStyle

	AttributesStyle CSSCSSStyle
}

type CSSGetMatchedStylesForNodeReturns

type CSSGetMatchedStylesForNodeReturns struct {
	InlineStyle CSSCSSStyle

	AttributesStyle CSSCSSStyle

	MatchedCSSRules []CSSRuleMatch

	PseudoElements []CSSPseudoElementMatches

	Inherited []CSSInheritedStyleEntry

	CssKeyframesRules []CSSCSSKeyframesRule
}

type CSSGetMediaQueriesReturns

type CSSGetMediaQueriesReturns struct {
	Medias []CSSCSSMedia
}

type CSSGetPlatformFontsForNodeReturns

type CSSGetPlatformFontsForNodeReturns struct {
	Fonts []CSSPlatformFontUsage
}

type CSSGetStyleSheetTextReturns

type CSSGetStyleSheetTextReturns struct {
	Text string
}

type CSSInheritedStyleEntry

type CSSInheritedStyleEntry map[string]interface{}

type CSSMediaQuery

type CSSMediaQuery map[string]interface{}

type CSSMediaQueryExpression

type CSSMediaQueryExpression map[string]interface{}

type CSSMediaQueryResultChangedEvent

type CSSMediaQueryResultChangedEvent struct {
}

type CSSMediaQueryResultChangedHandler

type CSSMediaQueryResultChangedHandler func(ev CSSMediaQueryResultChangedEvent)

type CSSPlatformFontUsage

type CSSPlatformFontUsage map[string]interface{}

type CSSPseudoElementMatches

type CSSPseudoElementMatches map[string]interface{}

type CSSRuleMatch

type CSSRuleMatch map[string]interface{}

type CSSRuleUsage

type CSSRuleUsage map[string]interface{}

type CSSSelectorList

type CSSSelectorList map[string]interface{}

type CSSSetEffectivePropertyValueForNodeReturns

type CSSSetEffectivePropertyValueForNodeReturns struct {
}

type CSSSetKeyframeKeyReturns

type CSSSetKeyframeKeyReturns struct {
	KeyText CSSValue
}

type CSSSetLocalFontsEnabledReturns

type CSSSetLocalFontsEnabledReturns struct {
}

type CSSSetMediaTextReturns

type CSSSetMediaTextReturns struct {
	Media CSSCSSMedia
}

type CSSSetRuleSelectorReturns

type CSSSetRuleSelectorReturns struct {
	SelectorList CSSSelectorList
}

type CSSSetStyleSheetTextReturns

type CSSSetStyleSheetTextReturns struct {
	SourceMapURL string
}

type CSSSetStyleTextsReturns

type CSSSetStyleTextsReturns struct {
	Styles []CSSCSSStyle
}

type CSSShorthandEntry

type CSSShorthandEntry map[string]interface{}

type CSSSourceRange

type CSSSourceRange map[string]interface{}

type CSSStartRuleUsageTrackingReturns

type CSSStartRuleUsageTrackingReturns struct {
}

type CSSStopRuleUsageTrackingReturns

type CSSStopRuleUsageTrackingReturns struct {
	RuleUsage []CSSRuleUsage
}

type CSSStyleDeclarationEdit

type CSSStyleDeclarationEdit map[string]interface{}

type CSSStyleSheetAddedEvent

type CSSStyleSheetAddedEvent struct {
	Header CSSCSSStyleSheetHeader
}

type CSSStyleSheetAddedHandler

type CSSStyleSheetAddedHandler func(ev CSSStyleSheetAddedEvent)

type CSSStyleSheetChangedEvent

type CSSStyleSheetChangedEvent struct {
	StyleSheetId CSSStyleSheetId
}

type CSSStyleSheetChangedHandler

type CSSStyleSheetChangedHandler func(ev CSSStyleSheetChangedEvent)

type CSSStyleSheetId

type CSSStyleSheetId string

type CSSStyleSheetOrigin

type CSSStyleSheetOrigin string

type CSSStyleSheetRemovedEvent

type CSSStyleSheetRemovedEvent struct {
	StyleSheetId CSSStyleSheetId
}

type CSSStyleSheetRemovedHandler

type CSSStyleSheetRemovedHandler func(ev CSSStyleSheetRemovedEvent)

type CSSTakeComputedStyleUpdatesReturns

type CSSTakeComputedStyleUpdatesReturns struct {
	NodeIds []DOMNodeId
}

type CSSTakeCoverageDeltaReturns

type CSSTakeCoverageDeltaReturns struct {
	Coverage []CSSRuleUsage

	Timestamp float64
}

type CSSTrackComputedStyleUpdatesReturns

type CSSTrackComputedStyleUpdatesReturns struct {
}

type CSSValue

type CSSValue map[string]interface{}

type CacheStorageCache

type CacheStorageCache map[string]interface{}

type CacheStorageCacheId

type CacheStorageCacheId string

type CacheStorageCachedResponse

type CacheStorageCachedResponse map[string]interface{}

type CacheStorageCachedResponseType

type CacheStorageCachedResponseType string

type CacheStorageDataEntry

type CacheStorageDataEntry map[string]interface{}

type CacheStorageDeleteCacheReturns

type CacheStorageDeleteCacheReturns struct {
}

type CacheStorageDeleteEntryReturns

type CacheStorageDeleteEntryReturns struct {
}

type CacheStorageHeader

type CacheStorageHeader map[string]interface{}

type CacheStorageRequestCacheNamesReturns

type CacheStorageRequestCacheNamesReturns struct {
	Caches []CacheStorageCache
}

type CacheStorageRequestCachedResponseReturns

type CacheStorageRequestCachedResponseReturns struct {
	Response CacheStorageCachedResponse
}

type CacheStorageRequestEntriesReturns

type CacheStorageRequestEntriesReturns struct {
	CacheDataEntries []CacheStorageDataEntry

	ReturnCount float64
}

type CastDisableReturns

type CastDisableReturns struct {
}

type CastEnableReturns

type CastEnableReturns struct {
}

type CastIssueUpdatedEvent

type CastIssueUpdatedEvent struct {
	IssueMessage string
}

type CastIssueUpdatedHandler

type CastIssueUpdatedHandler func(ev CastIssueUpdatedEvent)

type CastSetSinkToUseReturns

type CastSetSinkToUseReturns struct {
}

type CastSink

type CastSink map[string]interface{}

type CastSinksUpdatedEvent

type CastSinksUpdatedEvent struct {
	Sinks []CastSink
}

type CastSinksUpdatedHandler

type CastSinksUpdatedHandler func(ev CastSinksUpdatedEvent)

type CastStartTabMirroringReturns

type CastStartTabMirroringReturns struct {
}

type CastStopCastingReturns

type CastStopCastingReturns struct {
}

type Command

type Command struct {
	Name         string
	Description  string
	Experimental bool
	Parameters   []Parameter
	Returns      []Return
	// hack: extended
	Method string
}

Command from protocol

type ConsoleClearMessagesReturns

type ConsoleClearMessagesReturns struct {
}

type ConsoleConsoleMessage

type ConsoleConsoleMessage map[string]interface{}

type ConsoleDisableReturns

type ConsoleDisableReturns struct {
}

type ConsoleEnableReturns

type ConsoleEnableReturns struct {
}

type ConsoleMessageAddedEvent

type ConsoleMessageAddedEvent struct {
	Message ConsoleConsoleMessage
}

type ConsoleMessageAddedHandler

type ConsoleMessageAddedHandler func(ev ConsoleMessageAddedEvent)

type DOMAttributeModifiedEvent

type DOMAttributeModifiedEvent struct {
	NodeId DOMNodeId

	Name string

	Value string
}

type DOMAttributeModifiedHandler

type DOMAttributeModifiedHandler func(ev DOMAttributeModifiedEvent)

type DOMAttributeRemovedEvent

type DOMAttributeRemovedEvent struct {
	NodeId DOMNodeId

	Name string
}

type DOMAttributeRemovedHandler

type DOMAttributeRemovedHandler func(ev DOMAttributeRemovedEvent)

type DOMBackendNode

type DOMBackendNode map[string]interface{}

type DOMBackendNodeId

type DOMBackendNodeId int

type DOMBoxModel

type DOMBoxModel map[string]interface{}

type DOMCSSComputedStyleProperty

type DOMCSSComputedStyleProperty map[string]interface{}

type DOMCharacterDataModifiedEvent

type DOMCharacterDataModifiedEvent struct {
	NodeId DOMNodeId

	CharacterData string
}

type DOMCharacterDataModifiedHandler

type DOMCharacterDataModifiedHandler func(ev DOMCharacterDataModifiedEvent)

type DOMChildNodeCountUpdatedEvent

type DOMChildNodeCountUpdatedEvent struct {
	NodeId DOMNodeId

	ChildNodeCount int
}

type DOMChildNodeCountUpdatedHandler

type DOMChildNodeCountUpdatedHandler func(ev DOMChildNodeCountUpdatedEvent)

type DOMChildNodeInsertedEvent

type DOMChildNodeInsertedEvent struct {
	ParentNodeId DOMNodeId

	PreviousNodeId DOMNodeId

	Node DOMNode
}

type DOMChildNodeInsertedHandler

type DOMChildNodeInsertedHandler func(ev DOMChildNodeInsertedEvent)

type DOMChildNodeRemovedEvent

type DOMChildNodeRemovedEvent struct {
	ParentNodeId DOMNodeId

	NodeId DOMNodeId
}

type DOMChildNodeRemovedHandler

type DOMChildNodeRemovedHandler func(ev DOMChildNodeRemovedEvent)

type DOMCollectClassNamesFromSubtreeReturns

type DOMCollectClassNamesFromSubtreeReturns struct {
	ClassNames []string
}

type DOMCopyToReturns

type DOMCopyToReturns struct {
	NodeId DOMNodeId
}

type DOMDebuggerDOMBreakpointType

type DOMDebuggerDOMBreakpointType string

type DOMDebuggerEventListener

type DOMDebuggerEventListener map[string]interface{}

type DOMDebuggerGetEventListenersReturns

type DOMDebuggerGetEventListenersReturns struct {
	Listeners []DOMDebuggerEventListener
}

type DOMDebuggerRemoveDOMBreakpointReturns

type DOMDebuggerRemoveDOMBreakpointReturns struct {
}

type DOMDebuggerRemoveEventListenerBreakpointReturns

type DOMDebuggerRemoveEventListenerBreakpointReturns struct {
}

type DOMDebuggerRemoveInstrumentationBreakpointReturns

type DOMDebuggerRemoveInstrumentationBreakpointReturns struct {
}

type DOMDebuggerRemoveXHRBreakpointReturns

type DOMDebuggerRemoveXHRBreakpointReturns struct {
}

type DOMDebuggerSetDOMBreakpointReturns

type DOMDebuggerSetDOMBreakpointReturns struct {
}

type DOMDebuggerSetEventListenerBreakpointReturns

type DOMDebuggerSetEventListenerBreakpointReturns struct {
}

type DOMDebuggerSetInstrumentationBreakpointReturns

type DOMDebuggerSetInstrumentationBreakpointReturns struct {
}

type DOMDebuggerSetXHRBreakpointReturns

type DOMDebuggerSetXHRBreakpointReturns struct {
}

type DOMDescribeNodeReturns

type DOMDescribeNodeReturns struct {
	Node DOMNode
}

type DOMDisableReturns

type DOMDisableReturns struct {
}

type DOMDiscardSearchResultsReturns

type DOMDiscardSearchResultsReturns struct {
}

type DOMDistributedNodesUpdatedEvent

type DOMDistributedNodesUpdatedEvent struct {
	InsertionPointId DOMNodeId

	DistributedNodes []DOMBackendNode
}

type DOMDistributedNodesUpdatedHandler

type DOMDistributedNodesUpdatedHandler func(ev DOMDistributedNodesUpdatedEvent)

type DOMDocumentUpdatedEvent

type DOMDocumentUpdatedEvent struct {
}

type DOMDocumentUpdatedHandler

type DOMDocumentUpdatedHandler func(ev DOMDocumentUpdatedEvent)

type DOMEnableReturns

type DOMEnableReturns struct {
}

type DOMFocusReturns

type DOMFocusReturns struct {
}

type DOMGetAttributesReturns

type DOMGetAttributesReturns struct {
	Attributes []string
}

type DOMGetBoxModelReturns

type DOMGetBoxModelReturns struct {
	Model DOMBoxModel
}

type DOMGetContentQuadsReturns

type DOMGetContentQuadsReturns struct {
	Quads []DOMQuad
}

type DOMGetDocumentReturns

type DOMGetDocumentReturns struct {
	Root DOMNode
}

type DOMGetFileInfoReturns

type DOMGetFileInfoReturns struct {
	Path string
}

type DOMGetFlattenedDocumentReturns

type DOMGetFlattenedDocumentReturns struct {
	Nodes []DOMNode
}

type DOMGetFrameOwnerReturns

type DOMGetFrameOwnerReturns struct {
	BackendNodeId DOMBackendNodeId

	NodeId DOMNodeId
}

type DOMGetNodeForLocationReturns

type DOMGetNodeForLocationReturns struct {
	BackendNodeId DOMBackendNodeId

	FrameId PageFrameId

	NodeId DOMNodeId
}

type DOMGetNodeStackTracesReturns

type DOMGetNodeStackTracesReturns struct {
	Creation RuntimeStackTrace
}

type DOMGetNodesForSubtreeByStyleReturns

type DOMGetNodesForSubtreeByStyleReturns struct {
	NodeIds []DOMNodeId
}

type DOMGetOuterHTMLReturns

type DOMGetOuterHTMLReturns struct {
	OuterHTML string
}

type DOMGetRelayoutBoundaryReturns

type DOMGetRelayoutBoundaryReturns struct {
	NodeId DOMNodeId
}

type DOMGetSearchResultsReturns

type DOMGetSearchResultsReturns struct {
	NodeIds []DOMNodeId
}

type DOMHideHighlightReturns

type DOMHideHighlightReturns struct {
}

type DOMHighlightNodeReturns

type DOMHighlightNodeReturns struct {
}

type DOMHighlightRectReturns

type DOMHighlightRectReturns struct {
}

type DOMInlineStyleInvalidatedEvent

type DOMInlineStyleInvalidatedEvent struct {
	NodeIds []DOMNodeId
}

type DOMInlineStyleInvalidatedHandler

type DOMInlineStyleInvalidatedHandler func(ev DOMInlineStyleInvalidatedEvent)

type DOMMarkUndoableStateReturns

type DOMMarkUndoableStateReturns struct {
}

type DOMMoveToReturns

type DOMMoveToReturns struct {
	NodeId DOMNodeId
}

type DOMNode

type DOMNode map[string]interface{}

type DOMNodeId

type DOMNodeId int

type DOMPerformSearchReturns

type DOMPerformSearchReturns struct {
	SearchId string

	ResultCount int
}

type DOMPseudoElementAddedEvent

type DOMPseudoElementAddedEvent struct {
	ParentId DOMNodeId

	PseudoElement DOMNode
}

type DOMPseudoElementAddedHandler

type DOMPseudoElementAddedHandler func(ev DOMPseudoElementAddedEvent)

type DOMPseudoElementRemovedEvent

type DOMPseudoElementRemovedEvent struct {
	ParentId DOMNodeId

	PseudoElementId DOMNodeId
}

type DOMPseudoElementRemovedHandler

type DOMPseudoElementRemovedHandler func(ev DOMPseudoElementRemovedEvent)

type DOMPseudoType

type DOMPseudoType string

type DOMPushNodeByPathToFrontendReturns

type DOMPushNodeByPathToFrontendReturns struct {
	NodeId DOMNodeId
}

type DOMPushNodesByBackendIdsToFrontendReturns

type DOMPushNodesByBackendIdsToFrontendReturns struct {
	NodeIds []DOMNodeId
}

type DOMQuad

type DOMQuad []interface{}

type DOMQuerySelectorAllReturns

type DOMQuerySelectorAllReturns struct {
	NodeIds []DOMNodeId
}

type DOMQuerySelectorReturns

type DOMQuerySelectorReturns struct {
	NodeId DOMNodeId
}

type DOMRGBA

type DOMRGBA map[string]interface{}

type DOMRect

type DOMRect map[string]interface{}

type DOMRedoReturns

type DOMRedoReturns struct {
}

type DOMRemoveAttributeReturns

type DOMRemoveAttributeReturns struct {
}

type DOMRemoveNodeReturns

type DOMRemoveNodeReturns struct {
}

type DOMRequestChildNodesReturns

type DOMRequestChildNodesReturns struct {
}

type DOMRequestNodeReturns

type DOMRequestNodeReturns struct {
	NodeId DOMNodeId
}

type DOMResolveNodeReturns

type DOMResolveNodeReturns struct {
	Object RuntimeRemoteObject
}

type DOMScrollIntoViewIfNeededReturns

type DOMScrollIntoViewIfNeededReturns struct {
}

type DOMSetAttributeValueReturns

type DOMSetAttributeValueReturns struct {
}

type DOMSetAttributesAsTextReturns

type DOMSetAttributesAsTextReturns struct {
}

type DOMSetChildNodesEvent

type DOMSetChildNodesEvent struct {
	ParentId DOMNodeId

	Nodes []DOMNode
}

type DOMSetChildNodesHandler

type DOMSetChildNodesHandler func(ev DOMSetChildNodesEvent)

type DOMSetFileInputFilesReturns

type DOMSetFileInputFilesReturns struct {
}

type DOMSetInspectedNodeReturns

type DOMSetInspectedNodeReturns struct {
}

type DOMSetNodeNameReturns

type DOMSetNodeNameReturns struct {
	NodeId DOMNodeId
}

type DOMSetNodeStackTracesEnabledReturns

type DOMSetNodeStackTracesEnabledReturns struct {
}

type DOMSetNodeValueReturns

type DOMSetNodeValueReturns struct {
}

type DOMSetOuterHTMLReturns

type DOMSetOuterHTMLReturns struct {
}

type DOMShadowRootPoppedEvent

type DOMShadowRootPoppedEvent struct {
	HostId DOMNodeId

	RootId DOMNodeId
}

type DOMShadowRootPoppedHandler

type DOMShadowRootPoppedHandler func(ev DOMShadowRootPoppedEvent)

type DOMShadowRootPushedEvent

type DOMShadowRootPushedEvent struct {
	HostId DOMNodeId

	Root DOMNode
}

type DOMShadowRootPushedHandler

type DOMShadowRootPushedHandler func(ev DOMShadowRootPushedEvent)

type DOMShadowRootType

type DOMShadowRootType string

type DOMShapeOutsideInfo

type DOMShapeOutsideInfo map[string]interface{}

type DOMSnapshotArrayOfStrings

type DOMSnapshotArrayOfStrings []interface{}

type DOMSnapshotCaptureSnapshotReturns

type DOMSnapshotCaptureSnapshotReturns struct {
	Documents []DOMSnapshotDocumentSnapshot

	Strings []string
}

type DOMSnapshotComputedStyle

type DOMSnapshotComputedStyle map[string]interface{}

type DOMSnapshotDOMNode

type DOMSnapshotDOMNode map[string]interface{}

type DOMSnapshotDisableReturns

type DOMSnapshotDisableReturns struct {
}

type DOMSnapshotDocumentSnapshot

type DOMSnapshotDocumentSnapshot map[string]interface{}

type DOMSnapshotEnableReturns

type DOMSnapshotEnableReturns struct {
}

type DOMSnapshotGetSnapshotReturns

type DOMSnapshotGetSnapshotReturns struct {
	DomNodes []DOMSnapshotDOMNode

	LayoutTreeNodes []DOMSnapshotLayoutTreeNode

	ComputedStyles []DOMSnapshotComputedStyle
}

type DOMSnapshotInlineTextBox

type DOMSnapshotInlineTextBox map[string]interface{}

type DOMSnapshotLayoutTreeNode

type DOMSnapshotLayoutTreeNode map[string]interface{}

type DOMSnapshotLayoutTreeSnapshot

type DOMSnapshotLayoutTreeSnapshot map[string]interface{}

type DOMSnapshotNameValue

type DOMSnapshotNameValue map[string]interface{}

type DOMSnapshotNodeTreeSnapshot

type DOMSnapshotNodeTreeSnapshot map[string]interface{}

type DOMSnapshotRareBooleanData

type DOMSnapshotRareBooleanData map[string]interface{}

type DOMSnapshotRareIntegerData

type DOMSnapshotRareIntegerData map[string]interface{}

type DOMSnapshotRareStringData

type DOMSnapshotRareStringData map[string]interface{}

type DOMSnapshotRectangle

type DOMSnapshotRectangle []interface{}

type DOMSnapshotStringIndex

type DOMSnapshotStringIndex int

type DOMSnapshotTextBoxSnapshot

type DOMSnapshotTextBoxSnapshot map[string]interface{}

type DOMStorageClearReturns

type DOMStorageClearReturns struct {
}

type DOMStorageDisableReturns

type DOMStorageDisableReturns struct {
}

type DOMStorageDomStorageItemAddedEvent

type DOMStorageDomStorageItemAddedEvent struct {
	StorageId DOMStorageStorageId

	Key string

	NewValue string
}

type DOMStorageDomStorageItemAddedHandler

type DOMStorageDomStorageItemAddedHandler func(ev DOMStorageDomStorageItemAddedEvent)

type DOMStorageDomStorageItemRemovedEvent

type DOMStorageDomStorageItemRemovedEvent struct {
	StorageId DOMStorageStorageId

	Key string
}

type DOMStorageDomStorageItemRemovedHandler

type DOMStorageDomStorageItemRemovedHandler func(ev DOMStorageDomStorageItemRemovedEvent)

type DOMStorageDomStorageItemUpdatedEvent

type DOMStorageDomStorageItemUpdatedEvent struct {
	StorageId DOMStorageStorageId

	Key string

	OldValue string

	NewValue string
}

type DOMStorageDomStorageItemUpdatedHandler

type DOMStorageDomStorageItemUpdatedHandler func(ev DOMStorageDomStorageItemUpdatedEvent)

type DOMStorageDomStorageItemsClearedEvent

type DOMStorageDomStorageItemsClearedEvent struct {
	StorageId DOMStorageStorageId
}

type DOMStorageDomStorageItemsClearedHandler

type DOMStorageDomStorageItemsClearedHandler func(ev DOMStorageDomStorageItemsClearedEvent)

type DOMStorageEnableReturns

type DOMStorageEnableReturns struct {
}

type DOMStorageGetDOMStorageItemsReturns

type DOMStorageGetDOMStorageItemsReturns struct {
	Entries []DOMStorageItem
}

type DOMStorageItem

type DOMStorageItem []interface{}

type DOMStorageRemoveDOMStorageItemReturns

type DOMStorageRemoveDOMStorageItemReturns struct {
}

type DOMStorageSetDOMStorageItemReturns

type DOMStorageSetDOMStorageItemReturns struct {
}

type DOMStorageStorageId

type DOMStorageStorageId map[string]interface{}

type DOMUndoReturns

type DOMUndoReturns struct {
}

type DatabaseAddDatabaseEvent

type DatabaseAddDatabaseEvent struct {
	Database DatabaseDatabase
}

type DatabaseAddDatabaseHandler

type DatabaseAddDatabaseHandler func(ev DatabaseAddDatabaseEvent)

type DatabaseDatabase

type DatabaseDatabase map[string]interface{}

type DatabaseDatabaseId

type DatabaseDatabaseId string

type DatabaseDisableReturns

type DatabaseDisableReturns struct {
}

type DatabaseEnableReturns

type DatabaseEnableReturns struct {
}

type DatabaseError

type DatabaseError map[string]interface{}

type DatabaseExecuteSQLReturns

type DatabaseExecuteSQLReturns struct {
	ColumnNames []string

	Values []interface{}

	SqlError DatabaseError
}

type DatabaseGetDatabaseTableNamesReturns

type DatabaseGetDatabaseTableNamesReturns struct {
	TableNames []string
}

type DebuggerBreakLocation

type DebuggerBreakLocation map[string]interface{}

type DebuggerBreakpointId

type DebuggerBreakpointId string

type DebuggerBreakpointResolvedEvent

type DebuggerBreakpointResolvedEvent struct {
	BreakpointId DebuggerBreakpointId

	Location DebuggerLocation
}

type DebuggerBreakpointResolvedHandler

type DebuggerBreakpointResolvedHandler func(ev DebuggerBreakpointResolvedEvent)

type DebuggerCallFrame

type DebuggerCallFrame map[string]interface{}

type DebuggerCallFrameId

type DebuggerCallFrameId string

type DebuggerContinueToLocationReturns

type DebuggerContinueToLocationReturns struct {
}

type DebuggerDebugSymbols

type DebuggerDebugSymbols map[string]interface{}

type DebuggerDisableReturns

type DebuggerDisableReturns struct {
}

type DebuggerEnableReturns

type DebuggerEnableReturns struct {
	DebuggerId RuntimeUniqueDebuggerId
}

type DebuggerEvaluateOnCallFrameReturns

type DebuggerEvaluateOnCallFrameReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type DebuggerExecuteWasmEvaluatorReturns

type DebuggerExecuteWasmEvaluatorReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type DebuggerGetPossibleBreakpointsReturns

type DebuggerGetPossibleBreakpointsReturns struct {
	Locations []DebuggerBreakLocation
}

type DebuggerGetScriptSourceReturns

type DebuggerGetScriptSourceReturns struct {
	ScriptSource string

	Bytecode string
}

type DebuggerGetStackTraceReturns

type DebuggerGetStackTraceReturns struct {
	StackTrace RuntimeStackTrace
}

type DebuggerGetWasmBytecodeReturns

type DebuggerGetWasmBytecodeReturns struct {
	Bytecode string
}

type DebuggerLocation

type DebuggerLocation map[string]interface{}

type DebuggerLocationRange

type DebuggerLocationRange map[string]interface{}

type DebuggerPauseOnAsyncCallReturns

type DebuggerPauseOnAsyncCallReturns struct {
}

type DebuggerPauseReturns

type DebuggerPauseReturns struct {
}

type DebuggerPausedEvent

type DebuggerPausedEvent struct {
	CallFrames []DebuggerCallFrame

	Reason string

	Data map[string]interface{}

	HitBreakpoints []string

	AsyncStackTrace RuntimeStackTrace

	AsyncStackTraceId RuntimeStackTraceId

	AsyncCallStackTraceId RuntimeStackTraceId
}

type DebuggerPausedHandler

type DebuggerPausedHandler func(ev DebuggerPausedEvent)

type DebuggerRemoveBreakpointReturns

type DebuggerRemoveBreakpointReturns struct {
}

type DebuggerRestartFrameReturns

type DebuggerRestartFrameReturns struct {
	CallFrames []DebuggerCallFrame

	AsyncStackTrace RuntimeStackTrace

	AsyncStackTraceId RuntimeStackTraceId
}

type DebuggerResumeReturns

type DebuggerResumeReturns struct {
}

type DebuggerResumedEvent

type DebuggerResumedEvent struct {
}

type DebuggerResumedHandler

type DebuggerResumedHandler func(ev DebuggerResumedEvent)

type DebuggerScope

type DebuggerScope map[string]interface{}

type DebuggerScriptFailedToParseEvent

type DebuggerScriptFailedToParseEvent struct {
	ScriptId RuntimeScriptId

	Url string

	StartLine int

	StartColumn int

	EndLine int

	EndColumn int

	ExecutionContextId RuntimeExecutionContextId

	Hash string

	ExecutionContextAuxData map[string]interface{}

	SourceMapURL string

	HasSourceURL bool

	IsModule bool

	Length int

	StackTrace RuntimeStackTrace

	CodeOffset int

	ScriptLanguage DebuggerScriptLanguage

	EmbedderName string
}

type DebuggerScriptFailedToParseHandler

type DebuggerScriptFailedToParseHandler func(ev DebuggerScriptFailedToParseEvent)

type DebuggerScriptLanguage

type DebuggerScriptLanguage string

type DebuggerScriptParsedEvent

type DebuggerScriptParsedEvent struct {
	ScriptId RuntimeScriptId

	Url string

	StartLine int

	StartColumn int

	EndLine int

	EndColumn int

	ExecutionContextId RuntimeExecutionContextId

	Hash string

	ExecutionContextAuxData map[string]interface{}

	IsLiveEdit bool

	SourceMapURL string

	HasSourceURL bool

	IsModule bool

	Length int

	StackTrace RuntimeStackTrace

	CodeOffset int

	ScriptLanguage DebuggerScriptLanguage

	DebugSymbols DebuggerDebugSymbols

	EmbedderName string
}

type DebuggerScriptParsedHandler

type DebuggerScriptParsedHandler func(ev DebuggerScriptParsedEvent)

type DebuggerScriptPosition

type DebuggerScriptPosition map[string]interface{}

type DebuggerSearchInContentReturns

type DebuggerSearchInContentReturns struct {
	Result []DebuggerSearchMatch
}

type DebuggerSearchMatch

type DebuggerSearchMatch map[string]interface{}

type DebuggerSetAsyncCallStackDepthReturns

type DebuggerSetAsyncCallStackDepthReturns struct {
}

type DebuggerSetBlackboxPatternsReturns

type DebuggerSetBlackboxPatternsReturns struct {
}

type DebuggerSetBlackboxedRangesReturns

type DebuggerSetBlackboxedRangesReturns struct {
}

type DebuggerSetBreakpointByUrlReturns

type DebuggerSetBreakpointByUrlReturns struct {
	BreakpointId DebuggerBreakpointId

	Locations []DebuggerLocation
}

type DebuggerSetBreakpointOnFunctionCallReturns

type DebuggerSetBreakpointOnFunctionCallReturns struct {
	BreakpointId DebuggerBreakpointId
}

type DebuggerSetBreakpointReturns

type DebuggerSetBreakpointReturns struct {
	BreakpointId DebuggerBreakpointId

	ActualLocation DebuggerLocation
}

type DebuggerSetBreakpointsActiveReturns

type DebuggerSetBreakpointsActiveReturns struct {
}

type DebuggerSetInstrumentationBreakpointReturns

type DebuggerSetInstrumentationBreakpointReturns struct {
	BreakpointId DebuggerBreakpointId
}

type DebuggerSetPauseOnExceptionsReturns

type DebuggerSetPauseOnExceptionsReturns struct {
}

type DebuggerSetReturnValueReturns

type DebuggerSetReturnValueReturns struct {
}

type DebuggerSetScriptSourceReturns

type DebuggerSetScriptSourceReturns struct {
	CallFrames []DebuggerCallFrame

	StackChanged bool

	AsyncStackTrace RuntimeStackTrace

	AsyncStackTraceId RuntimeStackTraceId

	ExceptionDetails RuntimeExceptionDetails
}

type DebuggerSetSkipAllPausesReturns

type DebuggerSetSkipAllPausesReturns struct {
}

type DebuggerSetVariableValueReturns

type DebuggerSetVariableValueReturns struct {
}

type DebuggerStepIntoReturns

type DebuggerStepIntoReturns struct {
}

type DebuggerStepOutReturns

type DebuggerStepOutReturns struct {
}

type DebuggerStepOverReturns

type DebuggerStepOverReturns struct {
}

type DeviceOrientationClearDeviceOrientationOverrideReturns

type DeviceOrientationClearDeviceOrientationOverrideReturns struct {
}

type DeviceOrientationSetDeviceOrientationOverrideReturns

type DeviceOrientationSetDeviceOrientationOverrideReturns struct {
}

type Domain

type Domain struct {
	Domain       string
	Experimental bool
	Dependencies []string
	Types        []Type
	Commands     []Command
	Events       []Event
}

Domain is a single protocol domain

type EmulationCanEmulateReturns

type EmulationCanEmulateReturns struct {
	Result bool
}

type EmulationClearDeviceMetricsOverrideReturns

type EmulationClearDeviceMetricsOverrideReturns struct {
}

type EmulationClearGeolocationOverrideReturns

type EmulationClearGeolocationOverrideReturns struct {
}

type EmulationClearIdleOverrideReturns

type EmulationClearIdleOverrideReturns struct {
}

type EmulationDisplayFeature

type EmulationDisplayFeature map[string]interface{}

type EmulationMediaFeature

type EmulationMediaFeature map[string]interface{}

type EmulationResetPageScaleFactorReturns

type EmulationResetPageScaleFactorReturns struct {
}

type EmulationScreenOrientation

type EmulationScreenOrientation map[string]interface{}

type EmulationSetCPUThrottlingRateReturns

type EmulationSetCPUThrottlingRateReturns struct {
}

type EmulationSetDefaultBackgroundColorOverrideReturns

type EmulationSetDefaultBackgroundColorOverrideReturns struct {
}

type EmulationSetDeviceMetricsOverrideReturns

type EmulationSetDeviceMetricsOverrideReturns struct {
}

type EmulationSetDocumentCookieDisabledReturns

type EmulationSetDocumentCookieDisabledReturns struct {
}

type EmulationSetEmitTouchEventsForMouseReturns

type EmulationSetEmitTouchEventsForMouseReturns struct {
}

type EmulationSetEmulatedMediaReturns

type EmulationSetEmulatedMediaReturns struct {
}

type EmulationSetEmulatedVisionDeficiencyReturns

type EmulationSetEmulatedVisionDeficiencyReturns struct {
}

type EmulationSetFocusEmulationEnabledReturns

type EmulationSetFocusEmulationEnabledReturns struct {
}

type EmulationSetGeolocationOverrideReturns

type EmulationSetGeolocationOverrideReturns struct {
}

type EmulationSetIdleOverrideReturns

type EmulationSetIdleOverrideReturns struct {
}

type EmulationSetLocaleOverrideReturns

type EmulationSetLocaleOverrideReturns struct {
}

type EmulationSetNavigatorOverridesReturns

type EmulationSetNavigatorOverridesReturns struct {
}

type EmulationSetPageScaleFactorReturns

type EmulationSetPageScaleFactorReturns struct {
}

type EmulationSetScriptExecutionDisabledReturns

type EmulationSetScriptExecutionDisabledReturns struct {
}

type EmulationSetScrollbarsHiddenReturns

type EmulationSetScrollbarsHiddenReturns struct {
}

type EmulationSetTimezoneOverrideReturns

type EmulationSetTimezoneOverrideReturns struct {
}

type EmulationSetTouchEmulationEnabledReturns

type EmulationSetTouchEmulationEnabledReturns struct {
}

type EmulationSetUserAgentOverrideReturns

type EmulationSetUserAgentOverrideReturns struct {
}

type EmulationSetVirtualTimePolicyReturns

type EmulationSetVirtualTimePolicyReturns struct {
	VirtualTimeTicksBase float64
}

type EmulationSetVisibleSizeReturns

type EmulationSetVisibleSizeReturns struct {
}

type EmulationUserAgentBrandVersion

type EmulationUserAgentBrandVersion map[string]interface{}

type EmulationUserAgentMetadata

type EmulationUserAgentMetadata map[string]interface{}

type EmulationVirtualTimeBudgetExpiredEvent

type EmulationVirtualTimeBudgetExpiredEvent struct {
}

type EmulationVirtualTimeBudgetExpiredHandler

type EmulationVirtualTimeBudgetExpiredHandler func(ev EmulationVirtualTimeBudgetExpiredEvent)

type EmulationVirtualTimePolicy

type EmulationVirtualTimePolicy string

type Event

type Event struct {
	Name        string
	Description string
	Parameters  []Parameter
	EventName   string
}

Event from protocol

type ExtractCheck

type ExtractCheck func(any) bool

ExtractCheck should return true if the extraction was ok.

type FetchAuthChallenge

type FetchAuthChallenge map[string]interface{}

type FetchAuthChallengeResponse

type FetchAuthChallengeResponse map[string]interface{}

type FetchAuthRequiredEvent

type FetchAuthRequiredEvent struct {
	RequestId FetchRequestId

	Request NetworkRequest

	FrameId PageFrameId

	ResourceType NetworkResourceType

	AuthChallenge FetchAuthChallenge
}

type FetchAuthRequiredHandler

type FetchAuthRequiredHandler func(ev FetchAuthRequiredEvent)

type FetchContinueRequestReturns

type FetchContinueRequestReturns struct {
}

type FetchContinueWithAuthReturns

type FetchContinueWithAuthReturns struct {
}

type FetchDisableReturns

type FetchDisableReturns struct {
}

type FetchEnableReturns

type FetchEnableReturns struct {
}

type FetchFailRequestReturns

type FetchFailRequestReturns struct {
}

type FetchFulfillRequestReturns

type FetchFulfillRequestReturns struct {
}

type FetchGetResponseBodyReturns

type FetchGetResponseBodyReturns struct {
	Body string

	Base64Encoded bool
}

type FetchHeaderEntry

type FetchHeaderEntry map[string]interface{}

type FetchRequestId

type FetchRequestId string

type FetchRequestPattern

type FetchRequestPattern map[string]interface{}

type FetchRequestPausedEvent

type FetchRequestPausedEvent struct {
	RequestId FetchRequestId

	Request NetworkRequest

	FrameId PageFrameId

	ResourceType NetworkResourceType

	ResponseErrorReason NetworkErrorReason

	ResponseStatusCode int

	ResponseHeaders []FetchHeaderEntry

	NetworkId FetchRequestId
}

type FetchRequestPausedHandler

type FetchRequestPausedHandler func(ev FetchRequestPausedEvent)

type FetchRequestStage

type FetchRequestStage string

type FetchTakeResponseBodyAsStreamReturns

type FetchTakeResponseBodyAsStreamReturns struct {
	Stream IOStreamHandle
}

type HTTPResource

type HTTPResource struct {
	Type     NetworkResourceType
	Response NetworkResponse
	Body     string
}

HTTPResource is a resource the browser has fetched

type HeadlessExperimentalBeginFrameReturns

type HeadlessExperimentalBeginFrameReturns struct {
	HasDamage bool

	ScreenshotData string
}

type HeadlessExperimentalDisableReturns

type HeadlessExperimentalDisableReturns struct {
}

type HeadlessExperimentalEnableReturns

type HeadlessExperimentalEnableReturns struct {
}

type HeadlessExperimentalNeedsBeginFramesChangedEvent

type HeadlessExperimentalNeedsBeginFramesChangedEvent struct {
	NeedsBeginFrames bool
}

type HeadlessExperimentalNeedsBeginFramesChangedHandler

type HeadlessExperimentalNeedsBeginFramesChangedHandler func(ev HeadlessExperimentalNeedsBeginFramesChangedEvent)

type HeadlessExperimentalScreenshotParams

type HeadlessExperimentalScreenshotParams map[string]interface{}

type HeapProfilerAddHeapSnapshotChunkEvent

type HeapProfilerAddHeapSnapshotChunkEvent struct {
	Chunk string
}

type HeapProfilerAddHeapSnapshotChunkHandler

type HeapProfilerAddHeapSnapshotChunkHandler func(ev HeapProfilerAddHeapSnapshotChunkEvent)

type HeapProfilerAddInspectedHeapObjectReturns

type HeapProfilerAddInspectedHeapObjectReturns struct {
}

type HeapProfilerCollectGarbageReturns

type HeapProfilerCollectGarbageReturns struct {
}

type HeapProfilerDisableReturns

type HeapProfilerDisableReturns struct {
}

type HeapProfilerEnableReturns

type HeapProfilerEnableReturns struct {
}

type HeapProfilerGetHeapObjectIdReturns

type HeapProfilerGetHeapObjectIdReturns struct {
	HeapSnapshotObjectId HeapProfilerHeapSnapshotObjectId
}

type HeapProfilerGetObjectByHeapObjectIdReturns

type HeapProfilerGetObjectByHeapObjectIdReturns struct {
	Result RuntimeRemoteObject
}

type HeapProfilerGetSamplingProfileReturns

type HeapProfilerGetSamplingProfileReturns struct {
	Profile HeapProfilerSamplingHeapProfile
}

type HeapProfilerHeapSnapshotObjectId

type HeapProfilerHeapSnapshotObjectId string

type HeapProfilerHeapStatsUpdateEvent

type HeapProfilerHeapStatsUpdateEvent struct {
	StatsUpdate []int
}

type HeapProfilerHeapStatsUpdateHandler

type HeapProfilerHeapStatsUpdateHandler func(ev HeapProfilerHeapStatsUpdateEvent)

type HeapProfilerLastSeenObjectIdEvent

type HeapProfilerLastSeenObjectIdEvent struct {
	LastSeenObjectId int

	Timestamp float64
}

type HeapProfilerLastSeenObjectIdHandler

type HeapProfilerLastSeenObjectIdHandler func(ev HeapProfilerLastSeenObjectIdEvent)

type HeapProfilerReportHeapSnapshotProgressEvent

type HeapProfilerReportHeapSnapshotProgressEvent struct {
	Done int

	Total int

	Finished bool
}

type HeapProfilerReportHeapSnapshotProgressHandler

type HeapProfilerReportHeapSnapshotProgressHandler func(ev HeapProfilerReportHeapSnapshotProgressEvent)

type HeapProfilerResetProfilesEvent

type HeapProfilerResetProfilesEvent struct {
}

type HeapProfilerResetProfilesHandler

type HeapProfilerResetProfilesHandler func(ev HeapProfilerResetProfilesEvent)

type HeapProfilerSamplingHeapProfile

type HeapProfilerSamplingHeapProfile map[string]interface{}

type HeapProfilerSamplingHeapProfileNode

type HeapProfilerSamplingHeapProfileNode map[string]interface{}

type HeapProfilerSamplingHeapProfileSample

type HeapProfilerSamplingHeapProfileSample map[string]interface{}

type HeapProfilerStartSamplingReturns

type HeapProfilerStartSamplingReturns struct {
}

type HeapProfilerStartTrackingHeapObjectsReturns

type HeapProfilerStartTrackingHeapObjectsReturns struct {
}

type HeapProfilerStopSamplingReturns

type HeapProfilerStopSamplingReturns struct {
	Profile HeapProfilerSamplingHeapProfile
}

type HeapProfilerStopTrackingHeapObjectsReturns

type HeapProfilerStopTrackingHeapObjectsReturns struct {
}

type HeapProfilerTakeHeapSnapshotReturns

type HeapProfilerTakeHeapSnapshotReturns struct {
}

type IOCloseReturns

type IOCloseReturns struct {
}

type IOReadReturns

type IOReadReturns struct {
	Base64Encoded bool

	Data string

	Eof bool
}

type IOResolveBlobReturns

type IOResolveBlobReturns struct {
	Uuid string
}

type IOStreamHandle

type IOStreamHandle string

type IndexedDBClearObjectStoreReturns

type IndexedDBClearObjectStoreReturns struct {
}

type IndexedDBDataEntry

type IndexedDBDataEntry map[string]interface{}

type IndexedDBDatabaseWithObjectStores

type IndexedDBDatabaseWithObjectStores map[string]interface{}

type IndexedDBDeleteDatabaseReturns

type IndexedDBDeleteDatabaseReturns struct {
}

type IndexedDBDeleteObjectStoreEntriesReturns

type IndexedDBDeleteObjectStoreEntriesReturns struct {
}

type IndexedDBDisableReturns

type IndexedDBDisableReturns struct {
}

type IndexedDBEnableReturns

type IndexedDBEnableReturns struct {
}

type IndexedDBGetMetadataReturns

type IndexedDBGetMetadataReturns struct {
	EntriesCount float64

	KeyGeneratorValue float64
}

type IndexedDBKey

type IndexedDBKey map[string]interface{}

type IndexedDBKeyPath

type IndexedDBKeyPath map[string]interface{}

type IndexedDBKeyRange

type IndexedDBKeyRange map[string]interface{}

type IndexedDBObjectStore

type IndexedDBObjectStore map[string]interface{}

type IndexedDBObjectStoreIndex

type IndexedDBObjectStoreIndex map[string]interface{}

type IndexedDBRequestDataReturns

type IndexedDBRequestDataReturns struct {
	ObjectStoreDataEntries []IndexedDBDataEntry

	HasMore bool
}

type IndexedDBRequestDatabaseNamesReturns

type IndexedDBRequestDatabaseNamesReturns struct {
	DatabaseNames []string
}

type IndexedDBRequestDatabaseReturns

type IndexedDBRequestDatabaseReturns struct {
	DatabaseWithObjectStores IndexedDBDatabaseWithObjectStores
}

type InputDispatchKeyEventReturns

type InputDispatchKeyEventReturns struct {
}

type InputDispatchMouseEventReturns

type InputDispatchMouseEventReturns struct {
}

type InputDispatchTouchEventReturns

type InputDispatchTouchEventReturns struct {
}

type InputEmulateTouchFromMouseEventReturns

type InputEmulateTouchFromMouseEventReturns struct {
}

type InputGestureSourceType

type InputGestureSourceType string

type InputInsertTextReturns

type InputInsertTextReturns struct {
}

type InputMouseButton

type InputMouseButton string

type InputSetIgnoreInputEventsReturns

type InputSetIgnoreInputEventsReturns struct {
}

type InputSynthesizePinchGestureReturns

type InputSynthesizePinchGestureReturns struct {
}

type InputSynthesizeScrollGestureReturns

type InputSynthesizeScrollGestureReturns struct {
}

type InputSynthesizeTapGestureReturns

type InputSynthesizeTapGestureReturns struct {
}

type InputTimeSinceEpoch

type InputTimeSinceEpoch float64

type InputTouchPoint

type InputTouchPoint map[string]interface{}

type InspectorDetachedEvent

type InspectorDetachedEvent struct {
	Reason string
}

type InspectorDetachedHandler

type InspectorDetachedHandler func(ev InspectorDetachedEvent)

type InspectorDisableReturns

type InspectorDisableReturns struct {
}

type InspectorEnableReturns

type InspectorEnableReturns struct {
}

type InspectorTargetCrashedEvent

type InspectorTargetCrashedEvent struct {
}

type InspectorTargetCrashedHandler

type InspectorTargetCrashedHandler func(ev InspectorTargetCrashedEvent)

type InspectorTargetReloadedAfterCrashEvent

type InspectorTargetReloadedAfterCrashEvent struct {
}

type InspectorTargetReloadedAfterCrashHandler

type InspectorTargetReloadedAfterCrashHandler func(ev InspectorTargetReloadedAfterCrashEvent)

type Item

type Item struct {
	Ref  string `json:"$ref"`
	Type string
}

Item describes array contents

type LayerTreeCompositingReasonsReturns

type LayerTreeCompositingReasonsReturns struct {
	CompositingReasons []string

	CompositingReasonIds []string
}

type LayerTreeDisableReturns

type LayerTreeDisableReturns struct {
}

type LayerTreeEnableReturns

type LayerTreeEnableReturns struct {
}

type LayerTreeLayer

type LayerTreeLayer map[string]interface{}

type LayerTreeLayerId

type LayerTreeLayerId string

type LayerTreeLayerPaintedEvent

type LayerTreeLayerPaintedEvent struct {
	LayerId LayerTreeLayerId

	Clip DOMRect
}

type LayerTreeLayerPaintedHandler

type LayerTreeLayerPaintedHandler func(ev LayerTreeLayerPaintedEvent)

type LayerTreeLayerTreeDidChangeEvent

type LayerTreeLayerTreeDidChangeEvent struct {
	Layers []LayerTreeLayer
}

type LayerTreeLayerTreeDidChangeHandler

type LayerTreeLayerTreeDidChangeHandler func(ev LayerTreeLayerTreeDidChangeEvent)

type LayerTreeLoadSnapshotReturns

type LayerTreeLoadSnapshotReturns struct {
	SnapshotId LayerTreeSnapshotId
}

type LayerTreeMakeSnapshotReturns

type LayerTreeMakeSnapshotReturns struct {
	SnapshotId LayerTreeSnapshotId
}

type LayerTreePaintProfile

type LayerTreePaintProfile []interface{}

type LayerTreePictureTile

type LayerTreePictureTile map[string]interface{}

type LayerTreeProfileSnapshotReturns

type LayerTreeProfileSnapshotReturns struct {
	Timings []LayerTreePaintProfile
}

type LayerTreeReleaseSnapshotReturns

type LayerTreeReleaseSnapshotReturns struct {
}

type LayerTreeReplaySnapshotReturns

type LayerTreeReplaySnapshotReturns struct {
	DataURL string
}

type LayerTreeScrollRect

type LayerTreeScrollRect map[string]interface{}

type LayerTreeSnapshotCommandLogReturns

type LayerTreeSnapshotCommandLogReturns struct {
	CommandLog []map[string]interface{}
}

type LayerTreeSnapshotId

type LayerTreeSnapshotId string

type LayerTreeStickyPositionConstraint

type LayerTreeStickyPositionConstraint map[string]interface{}

type LogClearReturns

type LogClearReturns struct {
}

type LogDisableReturns

type LogDisableReturns struct {
}

type LogEnableReturns

type LogEnableReturns struct {
}

type LogEntryAddedEvent

type LogEntryAddedEvent struct {
	Entry LogLogEntry
}

type LogEntryAddedHandler

type LogEntryAddedHandler func(ev LogEntryAddedEvent)

type LogLogEntry

type LogLogEntry map[string]interface{}

type LogStartViolationsReportReturns

type LogStartViolationsReportReturns struct {
}

type LogStopViolationsReportReturns

type LogStopViolationsReportReturns struct {
}

type LogViolationSetting

type LogViolationSetting map[string]interface{}

type MediaDisableReturns

type MediaDisableReturns struct {
}

type MediaEnableReturns

type MediaEnableReturns struct {
}

type MediaPlayerError

type MediaPlayerError map[string]interface{}

type MediaPlayerErrorsRaisedEvent

type MediaPlayerErrorsRaisedEvent struct {
	PlayerId MediaPlayerId

	Errors []MediaPlayerError
}

type MediaPlayerErrorsRaisedHandler

type MediaPlayerErrorsRaisedHandler func(ev MediaPlayerErrorsRaisedEvent)

type MediaPlayerEvent

type MediaPlayerEvent map[string]interface{}

type MediaPlayerEventsAddedEvent

type MediaPlayerEventsAddedEvent struct {
	PlayerId MediaPlayerId

	Events []MediaPlayerEvent
}

type MediaPlayerEventsAddedHandler

type MediaPlayerEventsAddedHandler func(ev MediaPlayerEventsAddedEvent)

type MediaPlayerId

type MediaPlayerId string

type MediaPlayerMessage

type MediaPlayerMessage map[string]interface{}

type MediaPlayerMessagesLoggedEvent

type MediaPlayerMessagesLoggedEvent struct {
	PlayerId MediaPlayerId

	Messages []MediaPlayerMessage
}

type MediaPlayerMessagesLoggedHandler

type MediaPlayerMessagesLoggedHandler func(ev MediaPlayerMessagesLoggedEvent)

type MediaPlayerPropertiesChangedEvent

type MediaPlayerPropertiesChangedEvent struct {
	PlayerId MediaPlayerId

	Properties []MediaPlayerProperty
}

type MediaPlayerPropertiesChangedHandler

type MediaPlayerPropertiesChangedHandler func(ev MediaPlayerPropertiesChangedEvent)

type MediaPlayerProperty

type MediaPlayerProperty map[string]interface{}

type MediaPlayersCreatedEvent

type MediaPlayersCreatedEvent struct {
	Players []MediaPlayerId
}

type MediaPlayersCreatedHandler

type MediaPlayersCreatedHandler func(ev MediaPlayersCreatedEvent)

type MediaTimestamp

type MediaTimestamp float64

type MemoryForciblyPurgeJavaScriptMemoryReturns

type MemoryForciblyPurgeJavaScriptMemoryReturns struct {
}

type MemoryGetAllTimeSamplingProfileReturns

type MemoryGetAllTimeSamplingProfileReturns struct {
	Profile MemorySamplingProfile
}

type MemoryGetBrowserSamplingProfileReturns

type MemoryGetBrowserSamplingProfileReturns struct {
	Profile MemorySamplingProfile
}

type MemoryGetDOMCountersReturns

type MemoryGetDOMCountersReturns struct {
	Documents int

	Nodes int

	JsEventListeners int
}

type MemoryGetSamplingProfileReturns

type MemoryGetSamplingProfileReturns struct {
	Profile MemorySamplingProfile
}

type MemoryModule

type MemoryModule map[string]interface{}

type MemoryPrepareForLeakDetectionReturns

type MemoryPrepareForLeakDetectionReturns struct {
}

type MemoryPressureLevel

type MemoryPressureLevel string

type MemorySamplingProfile

type MemorySamplingProfile map[string]interface{}

type MemorySamplingProfileNode

type MemorySamplingProfileNode map[string]interface{}

type MemorySetPressureNotificationsSuppressedReturns

type MemorySetPressureNotificationsSuppressedReturns struct {
}

type MemorySimulatePressureNotificationReturns

type MemorySimulatePressureNotificationReturns struct {
}

type MemoryStartSamplingReturns

type MemoryStartSamplingReturns struct {
}

type MemoryStopSamplingReturns

type MemoryStopSamplingReturns struct {
}

type NetworkAuthChallenge

type NetworkAuthChallenge map[string]interface{}

type NetworkAuthChallengeResponse

type NetworkAuthChallengeResponse map[string]interface{}

type NetworkBlockedCookieWithReason

type NetworkBlockedCookieWithReason map[string]interface{}

type NetworkBlockedReason

type NetworkBlockedReason string

type NetworkBlockedSetCookieWithReason

type NetworkBlockedSetCookieWithReason map[string]interface{}

type NetworkCachedResource

type NetworkCachedResource map[string]interface{}

type NetworkCanClearBrowserCacheReturns

type NetworkCanClearBrowserCacheReturns struct {
	Result bool
}

type NetworkCanClearBrowserCookiesReturns

type NetworkCanClearBrowserCookiesReturns struct {
	Result bool
}

type NetworkCanEmulateNetworkConditionsReturns

type NetworkCanEmulateNetworkConditionsReturns struct {
	Result bool
}

type NetworkCertificateTransparencyCompliance

type NetworkCertificateTransparencyCompliance string

type NetworkClearBrowserCacheReturns

type NetworkClearBrowserCacheReturns struct {
}

type NetworkClearBrowserCookiesReturns

type NetworkClearBrowserCookiesReturns struct {
}

type NetworkConnectionType

type NetworkConnectionType string

type NetworkContinueInterceptedRequestReturns

type NetworkContinueInterceptedRequestReturns struct {
}

type NetworkCookie

type NetworkCookie map[string]interface{}

type NetworkCookieBlockedReason

type NetworkCookieBlockedReason string

type NetworkCookieParam

type NetworkCookieParam map[string]interface{}

type NetworkCookiePriority

type NetworkCookiePriority string

type NetworkCookieSameSite

type NetworkCookieSameSite string

type NetworkCrossOriginEmbedderPolicyStatus

type NetworkCrossOriginEmbedderPolicyStatus map[string]interface{}

type NetworkCrossOriginEmbedderPolicyValue

type NetworkCrossOriginEmbedderPolicyValue string

type NetworkCrossOriginOpenerPolicyStatus

type NetworkCrossOriginOpenerPolicyStatus map[string]interface{}

type NetworkCrossOriginOpenerPolicyValue

type NetworkCrossOriginOpenerPolicyValue string

type NetworkDataReceivedEvent

type NetworkDataReceivedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	DataLength int

	EncodedDataLength int
}

type NetworkDataReceivedHandler

type NetworkDataReceivedHandler func(ev NetworkDataReceivedEvent)

type NetworkDeleteCookiesReturns

type NetworkDeleteCookiesReturns struct {
}

type NetworkDisableReturns

type NetworkDisableReturns struct {
}

type NetworkEmulateNetworkConditionsReturns

type NetworkEmulateNetworkConditionsReturns struct {
}

type NetworkEnableReturns

type NetworkEnableReturns struct {
}

type NetworkErrorReason

type NetworkErrorReason string

type NetworkEventSourceMessageReceivedEvent

type NetworkEventSourceMessageReceivedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	EventName string

	EventId string

	Data string
}

type NetworkEventSourceMessageReceivedHandler

type NetworkEventSourceMessageReceivedHandler func(ev NetworkEventSourceMessageReceivedEvent)

type NetworkGetAllCookiesReturns

type NetworkGetAllCookiesReturns struct {
	Cookies []NetworkCookie
}

type NetworkGetCertificateReturns

type NetworkGetCertificateReturns struct {
	TableNames []string
}

type NetworkGetCookiesReturns

type NetworkGetCookiesReturns struct {
	Cookies []NetworkCookie
}

type NetworkGetRequestPostDataReturns

type NetworkGetRequestPostDataReturns struct {
	PostData string
}

type NetworkGetResponseBodyForInterceptionReturns

type NetworkGetResponseBodyForInterceptionReturns struct {
	Body string

	Base64Encoded bool
}

type NetworkGetResponseBodyReturns

type NetworkGetResponseBodyReturns struct {
	Body string

	Base64Encoded bool
}

type NetworkGetSecurityIsolationStatusReturns

type NetworkGetSecurityIsolationStatusReturns struct {
	Status NetworkSecurityIsolationStatus
}

type NetworkHeaders

type NetworkHeaders map[string]interface{}

type NetworkInitiator

type NetworkInitiator map[string]interface{}

type NetworkInterceptionId

type NetworkInterceptionId string

type NetworkInterceptionStage

type NetworkInterceptionStage string

type NetworkLoadNetworkResourceOptions

type NetworkLoadNetworkResourceOptions map[string]interface{}

type NetworkLoadNetworkResourcePageResult

type NetworkLoadNetworkResourcePageResult map[string]interface{}

type NetworkLoadNetworkResourceReturns

type NetworkLoadNetworkResourceReturns struct {
	Resource NetworkLoadNetworkResourcePageResult
}

type NetworkLoaderId

type NetworkLoaderId string

type NetworkLoadingFailedEvent

type NetworkLoadingFailedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	Type NetworkResourceType

	ErrorText string

	Canceled bool

	BlockedReason NetworkBlockedReason
}

type NetworkLoadingFailedHandler

type NetworkLoadingFailedHandler func(ev NetworkLoadingFailedEvent)

type NetworkLoadingFinishedEvent

type NetworkLoadingFinishedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	EncodedDataLength float64

	ShouldReportCorbBlocking bool
}

type NetworkLoadingFinishedHandler

type NetworkLoadingFinishedHandler func(ev NetworkLoadingFinishedEvent)

type NetworkMonotonicTime

type NetworkMonotonicTime float64

type NetworkPostDataEntry

type NetworkPostDataEntry map[string]interface{}

type NetworkReplayXHRReturns

type NetworkReplayXHRReturns struct {
}

type NetworkRequest

type NetworkRequest map[string]interface{}

type NetworkRequestId

type NetworkRequestId string

type NetworkRequestInterceptedEvent

type NetworkRequestInterceptedEvent struct {
	InterceptionId NetworkInterceptionId

	Request NetworkRequest

	FrameId PageFrameId

	ResourceType NetworkResourceType

	IsNavigationRequest bool

	IsDownload bool

	RedirectUrl string

	AuthChallenge NetworkAuthChallenge

	ResponseErrorReason NetworkErrorReason

	ResponseStatusCode int

	ResponseHeaders NetworkHeaders

	RequestId NetworkRequestId
}

type NetworkRequestInterceptedHandler

type NetworkRequestInterceptedHandler func(ev NetworkRequestInterceptedEvent)

type NetworkRequestPattern

type NetworkRequestPattern map[string]interface{}

type NetworkRequestServedFromCacheEvent

type NetworkRequestServedFromCacheEvent struct {
	RequestId NetworkRequestId
}

type NetworkRequestServedFromCacheHandler

type NetworkRequestServedFromCacheHandler func(ev NetworkRequestServedFromCacheEvent)

type NetworkRequestWillBeSentEvent

type NetworkRequestWillBeSentEvent struct {
	RequestId NetworkRequestId

	LoaderId NetworkLoaderId

	DocumentURL string

	Request NetworkRequest

	Timestamp NetworkMonotonicTime

	WallTime NetworkTimeSinceEpoch

	Initiator NetworkInitiator

	RedirectResponse NetworkResponse

	Type NetworkResourceType

	FrameId PageFrameId

	HasUserGesture bool
}

type NetworkRequestWillBeSentExtraInfoEvent

type NetworkRequestWillBeSentExtraInfoEvent struct {
	RequestId NetworkRequestId

	AssociatedCookies []NetworkBlockedCookieWithReason

	Headers NetworkHeaders
}

type NetworkRequestWillBeSentExtraInfoHandler

type NetworkRequestWillBeSentExtraInfoHandler func(ev NetworkRequestWillBeSentExtraInfoEvent)

type NetworkRequestWillBeSentHandler

type NetworkRequestWillBeSentHandler func(ev NetworkRequestWillBeSentEvent)

type NetworkResourceChangedPriorityEvent

type NetworkResourceChangedPriorityEvent struct {
	RequestId NetworkRequestId

	NewPriority NetworkResourcePriority

	Timestamp NetworkMonotonicTime
}

type NetworkResourceChangedPriorityHandler

type NetworkResourceChangedPriorityHandler func(ev NetworkResourceChangedPriorityEvent)

type NetworkResourcePriority

type NetworkResourcePriority string

type NetworkResourceTiming

type NetworkResourceTiming map[string]interface{}

type NetworkResourceType

type NetworkResourceType string

type NetworkResponse

type NetworkResponse map[string]interface{}

type NetworkResponseReceivedEvent

type NetworkResponseReceivedEvent struct {
	RequestId NetworkRequestId

	LoaderId NetworkLoaderId

	Timestamp NetworkMonotonicTime

	Type NetworkResourceType

	Response NetworkResponse

	FrameId PageFrameId
}

type NetworkResponseReceivedExtraInfoEvent

type NetworkResponseReceivedExtraInfoEvent struct {
	RequestId NetworkRequestId

	BlockedCookies []NetworkBlockedSetCookieWithReason

	Headers NetworkHeaders

	HeadersText string
}

type NetworkResponseReceivedExtraInfoHandler

type NetworkResponseReceivedExtraInfoHandler func(ev NetworkResponseReceivedExtraInfoEvent)

type NetworkResponseReceivedHandler

type NetworkResponseReceivedHandler func(ev NetworkResponseReceivedEvent)

type NetworkSearchInResponseBodyReturns

type NetworkSearchInResponseBodyReturns struct {
	Result []DebuggerSearchMatch
}

type NetworkSecurityDetails

type NetworkSecurityDetails map[string]interface{}

type NetworkSecurityIsolationStatus

type NetworkSecurityIsolationStatus map[string]interface{}

type NetworkServiceWorkerResponseSource

type NetworkServiceWorkerResponseSource string

type NetworkSetAttachDebugHeaderReturns

type NetworkSetAttachDebugHeaderReturns struct {
}

type NetworkSetBlockedURLsReturns

type NetworkSetBlockedURLsReturns struct {
}

type NetworkSetBypassServiceWorkerReturns

type NetworkSetBypassServiceWorkerReturns struct {
}

type NetworkSetCacheDisabledReturns

type NetworkSetCacheDisabledReturns struct {
}

type NetworkSetCookieBlockedReason

type NetworkSetCookieBlockedReason string

type NetworkSetCookieReturns

type NetworkSetCookieReturns struct {
	Success bool
}

type NetworkSetCookiesReturns

type NetworkSetCookiesReturns struct {
}

type NetworkSetDataSizeLimitsForTestReturns

type NetworkSetDataSizeLimitsForTestReturns struct {
}

type NetworkSetExtraHTTPHeadersReturns

type NetworkSetExtraHTTPHeadersReturns struct {
}

type NetworkSetRequestInterceptionReturns

type NetworkSetRequestInterceptionReturns struct {
}

type NetworkSetUserAgentOverrideReturns

type NetworkSetUserAgentOverrideReturns struct {
}

type NetworkSignedCertificateTimestamp

type NetworkSignedCertificateTimestamp map[string]interface{}

type NetworkSignedExchangeError

type NetworkSignedExchangeError map[string]interface{}

type NetworkSignedExchangeErrorField

type NetworkSignedExchangeErrorField string

type NetworkSignedExchangeHeader

type NetworkSignedExchangeHeader map[string]interface{}

type NetworkSignedExchangeInfo

type NetworkSignedExchangeInfo map[string]interface{}

type NetworkSignedExchangeReceivedEvent

type NetworkSignedExchangeReceivedEvent struct {
	RequestId NetworkRequestId

	Info NetworkSignedExchangeInfo
}

type NetworkSignedExchangeReceivedHandler

type NetworkSignedExchangeReceivedHandler func(ev NetworkSignedExchangeReceivedEvent)

type NetworkSignedExchangeSignature

type NetworkSignedExchangeSignature map[string]interface{}

type NetworkTakeResponseBodyForInterceptionAsStreamReturns

type NetworkTakeResponseBodyForInterceptionAsStreamReturns struct {
	Stream IOStreamHandle
}

type NetworkTimeSinceEpoch

type NetworkTimeSinceEpoch float64

type NetworkWebSocketClosedEvent

type NetworkWebSocketClosedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime
}

type NetworkWebSocketClosedHandler

type NetworkWebSocketClosedHandler func(ev NetworkWebSocketClosedEvent)

type NetworkWebSocketCreatedEvent

type NetworkWebSocketCreatedEvent struct {
	RequestId NetworkRequestId

	Url string

	Initiator NetworkInitiator
}

type NetworkWebSocketCreatedHandler

type NetworkWebSocketCreatedHandler func(ev NetworkWebSocketCreatedEvent)

type NetworkWebSocketFrame

type NetworkWebSocketFrame map[string]interface{}

type NetworkWebSocketFrameErrorEvent

type NetworkWebSocketFrameErrorEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	ErrorMessage string
}

type NetworkWebSocketFrameErrorHandler

type NetworkWebSocketFrameErrorHandler func(ev NetworkWebSocketFrameErrorEvent)

type NetworkWebSocketFrameReceivedEvent

type NetworkWebSocketFrameReceivedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	Response NetworkWebSocketFrame
}

type NetworkWebSocketFrameReceivedHandler

type NetworkWebSocketFrameReceivedHandler func(ev NetworkWebSocketFrameReceivedEvent)

type NetworkWebSocketFrameSentEvent

type NetworkWebSocketFrameSentEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	Response NetworkWebSocketFrame
}

type NetworkWebSocketFrameSentHandler

type NetworkWebSocketFrameSentHandler func(ev NetworkWebSocketFrameSentEvent)

type NetworkWebSocketHandshakeResponseReceivedEvent

type NetworkWebSocketHandshakeResponseReceivedEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	Response NetworkWebSocketResponse
}

type NetworkWebSocketHandshakeResponseReceivedHandler

type NetworkWebSocketHandshakeResponseReceivedHandler func(ev NetworkWebSocketHandshakeResponseReceivedEvent)

type NetworkWebSocketRequest

type NetworkWebSocketRequest map[string]interface{}

type NetworkWebSocketResponse

type NetworkWebSocketResponse map[string]interface{}

type NetworkWebSocketWillSendHandshakeRequestEvent

type NetworkWebSocketWillSendHandshakeRequestEvent struct {
	RequestId NetworkRequestId

	Timestamp NetworkMonotonicTime

	WallTime NetworkTimeSinceEpoch

	Request NetworkWebSocketRequest
}

type NetworkWebSocketWillSendHandshakeRequestHandler

type NetworkWebSocketWillSendHandshakeRequestHandler func(ev NetworkWebSocketWillSendHandshakeRequestEvent)

type OverlayColorFormat

type OverlayColorFormat string

type OverlayDisableReturns

type OverlayDisableReturns struct {
}

type OverlayEnableReturns

type OverlayEnableReturns struct {
}

type OverlayGetGridHighlightObjectsForTestReturns

type OverlayGetGridHighlightObjectsForTestReturns struct {
	Highlights map[string]interface{}
}

type OverlayGetHighlightObjectForTestReturns

type OverlayGetHighlightObjectForTestReturns struct {
	Highlight map[string]interface{}
}

type OverlayGetSourceOrderHighlightObjectForTestReturns

type OverlayGetSourceOrderHighlightObjectForTestReturns struct {
	Highlight map[string]interface{}
}

type OverlayGridHighlightConfig

type OverlayGridHighlightConfig map[string]interface{}

type OverlayGridNodeHighlightConfig

type OverlayGridNodeHighlightConfig map[string]interface{}

type OverlayHideHighlightReturns

type OverlayHideHighlightReturns struct {
}

type OverlayHighlightConfig

type OverlayHighlightConfig map[string]interface{}

type OverlayHighlightFrameReturns

type OverlayHighlightFrameReturns struct {
}

type OverlayHighlightNodeReturns

type OverlayHighlightNodeReturns struct {
}

type OverlayHighlightQuadReturns

type OverlayHighlightQuadReturns struct {
}

type OverlayHighlightRectReturns

type OverlayHighlightRectReturns struct {
}

type OverlayHighlightSourceOrderReturns

type OverlayHighlightSourceOrderReturns struct {
}

type OverlayHingeConfig

type OverlayHingeConfig map[string]interface{}

type OverlayInspectMode

type OverlayInspectMode string

type OverlayInspectModeCanceledEvent

type OverlayInspectModeCanceledEvent struct {
}

type OverlayInspectModeCanceledHandler

type OverlayInspectModeCanceledHandler func(ev OverlayInspectModeCanceledEvent)

type OverlayInspectNodeRequestedEvent

type OverlayInspectNodeRequestedEvent struct {
	BackendNodeId DOMBackendNodeId
}

type OverlayInspectNodeRequestedHandler

type OverlayInspectNodeRequestedHandler func(ev OverlayInspectNodeRequestedEvent)

type OverlayNodeHighlightRequestedEvent

type OverlayNodeHighlightRequestedEvent struct {
	NodeId DOMNodeId
}

type OverlayNodeHighlightRequestedHandler

type OverlayNodeHighlightRequestedHandler func(ev OverlayNodeHighlightRequestedEvent)

type OverlayScreenshotRequestedEvent

type OverlayScreenshotRequestedEvent struct {
	Viewport PageViewport
}

type OverlayScreenshotRequestedHandler

type OverlayScreenshotRequestedHandler func(ev OverlayScreenshotRequestedEvent)

type OverlaySetInspectModeReturns

type OverlaySetInspectModeReturns struct {
}

type OverlaySetPausedInDebuggerMessageReturns

type OverlaySetPausedInDebuggerMessageReturns struct {
}

type OverlaySetShowAdHighlightsReturns

type OverlaySetShowAdHighlightsReturns struct {
}

type OverlaySetShowDebugBordersReturns

type OverlaySetShowDebugBordersReturns struct {
}

type OverlaySetShowFPSCounterReturns

type OverlaySetShowFPSCounterReturns struct {
}

type OverlaySetShowGridOverlaysReturns

type OverlaySetShowGridOverlaysReturns struct {
}

type OverlaySetShowHingeReturns

type OverlaySetShowHingeReturns struct {
}

type OverlaySetShowHitTestBordersReturns

type OverlaySetShowHitTestBordersReturns struct {
}

type OverlaySetShowLayoutShiftRegionsReturns

type OverlaySetShowLayoutShiftRegionsReturns struct {
}

type OverlaySetShowPaintRectsReturns

type OverlaySetShowPaintRectsReturns struct {
}

type OverlaySetShowScrollBottleneckRectsReturns

type OverlaySetShowScrollBottleneckRectsReturns struct {
}

type OverlaySetShowViewportSizeOnResizeReturns

type OverlaySetShowViewportSizeOnResizeReturns struct {
}

type OverlaySourceOrderConfig

type OverlaySourceOrderConfig map[string]interface{}

type PageAdFrameType

type PageAdFrameType string

type PageAddCompilationCacheReturns

type PageAddCompilationCacheReturns struct {
}

type PageAddScriptToEvaluateOnLoadReturns

type PageAddScriptToEvaluateOnLoadReturns struct {
	Identifier PageScriptIdentifier
}

type PageAddScriptToEvaluateOnNewDocumentReturns

type PageAddScriptToEvaluateOnNewDocumentReturns struct {
	Identifier PageScriptIdentifier
}

type PageAppManifestError

type PageAppManifestError map[string]interface{}

type PageAppManifestParsedProperties

type PageAppManifestParsedProperties map[string]interface{}

type PageBringToFrontReturns

type PageBringToFrontReturns struct {
}

type PageCaptureScreenshotReturns

type PageCaptureScreenshotReturns struct {
	Data string
}

type PageCaptureSnapshotReturns

type PageCaptureSnapshotReturns struct {
	Data string
}

type PageClearCompilationCacheReturns

type PageClearCompilationCacheReturns struct {
}

type PageClearDeviceMetricsOverrideReturns

type PageClearDeviceMetricsOverrideReturns struct {
}

type PageClearDeviceOrientationOverrideReturns

type PageClearDeviceOrientationOverrideReturns struct {
}

type PageClearGeolocationOverrideReturns

type PageClearGeolocationOverrideReturns struct {
}

type PageClientNavigationDisposition

type PageClientNavigationDisposition string

type PageClientNavigationReason

type PageClientNavigationReason string

type PageCloseReturns

type PageCloseReturns struct {
}

type PageCompilationCacheProducedEvent

type PageCompilationCacheProducedEvent struct {
	Url string

	Data string
}

type PageCompilationCacheProducedHandler

type PageCompilationCacheProducedHandler func(ev PageCompilationCacheProducedEvent)

type PageCrashReturns

type PageCrashReturns struct {
}

type PageCreateIsolatedWorldReturns

type PageCreateIsolatedWorldReturns struct {
	ExecutionContextId RuntimeExecutionContextId
}

type PageCrossOriginIsolatedContextType

type PageCrossOriginIsolatedContextType string

type PageDeleteCookieReturns

type PageDeleteCookieReturns struct {
}

type PageDialogType

type PageDialogType string

type PageDisableReturns

type PageDisableReturns struct {
}

type PageDomContentEventFiredEvent

type PageDomContentEventFiredEvent struct {
	Timestamp NetworkMonotonicTime
}

type PageDomContentEventFiredHandler

type PageDomContentEventFiredHandler func(ev PageDomContentEventFiredEvent)

type PageDownloadProgressEvent

type PageDownloadProgressEvent struct {
	Guid string

	TotalBytes float64

	ReceivedBytes float64

	State string
}

type PageDownloadProgressHandler

type PageDownloadProgressHandler func(ev PageDownloadProgressEvent)

type PageDownloadWillBeginEvent

type PageDownloadWillBeginEvent struct {
	FrameId PageFrameId

	Guid string

	Url string

	SuggestedFilename string
}

type PageDownloadWillBeginHandler

type PageDownloadWillBeginHandler func(ev PageDownloadWillBeginEvent)

type PageEnableReturns

type PageEnableReturns struct {
}

type PageFileChooserOpenedEvent

type PageFileChooserOpenedEvent struct {
	FrameId PageFrameId

	BackendNodeId DOMBackendNodeId

	Mode string
}

type PageFileChooserOpenedHandler

type PageFileChooserOpenedHandler func(ev PageFileChooserOpenedEvent)

type PageFontFamilies

type PageFontFamilies map[string]interface{}

type PageFontSizes

type PageFontSizes map[string]interface{}

type PageFrame

type PageFrame map[string]interface{}

type PageFrameAttachedEvent

type PageFrameAttachedEvent struct {
	FrameId PageFrameId

	ParentFrameId PageFrameId

	Stack RuntimeStackTrace
}

type PageFrameAttachedHandler

type PageFrameAttachedHandler func(ev PageFrameAttachedEvent)

type PageFrameClearedScheduledNavigationEvent

type PageFrameClearedScheduledNavigationEvent struct {
	FrameId PageFrameId
}

type PageFrameClearedScheduledNavigationHandler

type PageFrameClearedScheduledNavigationHandler func(ev PageFrameClearedScheduledNavigationEvent)

type PageFrameDetachedEvent

type PageFrameDetachedEvent struct {
	FrameId PageFrameId
}

type PageFrameDetachedHandler

type PageFrameDetachedHandler func(ev PageFrameDetachedEvent)

type PageFrameId

type PageFrameId string

type PageFrameNavigatedEvent

type PageFrameNavigatedEvent struct {
	Frame PageFrame
}

type PageFrameNavigatedHandler

type PageFrameNavigatedHandler func(ev PageFrameNavigatedEvent)

type PageFrameRequestedNavigationEvent

type PageFrameRequestedNavigationEvent struct {
	FrameId PageFrameId

	Reason PageClientNavigationReason

	Url string

	Disposition PageClientNavigationDisposition
}

type PageFrameRequestedNavigationHandler

type PageFrameRequestedNavigationHandler func(ev PageFrameRequestedNavigationEvent)

type PageFrameResizedEvent

type PageFrameResizedEvent struct {
}

type PageFrameResizedHandler

type PageFrameResizedHandler func(ev PageFrameResizedEvent)

type PageFrameResource

type PageFrameResource map[string]interface{}

type PageFrameResourceTree

type PageFrameResourceTree map[string]interface{}

type PageFrameScheduledNavigationEvent

type PageFrameScheduledNavigationEvent struct {
	FrameId PageFrameId

	Delay float64

	Reason PageClientNavigationReason

	Url string
}

type PageFrameScheduledNavigationHandler

type PageFrameScheduledNavigationHandler func(ev PageFrameScheduledNavigationEvent)

type PageFrameStartedLoadingEvent

type PageFrameStartedLoadingEvent struct {
	FrameId PageFrameId
}

type PageFrameStartedLoadingHandler

type PageFrameStartedLoadingHandler func(ev PageFrameStartedLoadingEvent)

type PageFrameStoppedLoadingEvent

type PageFrameStoppedLoadingEvent struct {
	FrameId PageFrameId
}

type PageFrameStoppedLoadingHandler

type PageFrameStoppedLoadingHandler func(ev PageFrameStoppedLoadingEvent)

type PageFrameTree

type PageFrameTree map[string]interface{}

type PageGenerateTestReportReturns

type PageGenerateTestReportReturns struct {
}

type PageGetAppManifestReturns

type PageGetAppManifestReturns struct {
	Url string

	Errors []PageAppManifestError

	Data string

	Parsed PageAppManifestParsedProperties
}

type PageGetCookiesReturns

type PageGetCookiesReturns struct {
	Cookies []NetworkCookie
}

type PageGetFrameTreeReturns

type PageGetFrameTreeReturns struct {
	FrameTree PageFrameTree
}

type PageGetInstallabilityErrorsReturns

type PageGetInstallabilityErrorsReturns struct {
	InstallabilityErrors []PageInstallabilityError
}

type PageGetLayoutMetricsReturns

type PageGetLayoutMetricsReturns struct {
	LayoutViewport PageLayoutViewport

	VisualViewport PageVisualViewport

	ContentSize DOMRect
}

type PageGetManifestIconsReturns

type PageGetManifestIconsReturns struct {
	PrimaryIcon string
}

type PageGetNavigationHistoryReturns

type PageGetNavigationHistoryReturns struct {
	CurrentIndex int

	Entries []PageNavigationEntry
}

type PageGetResourceContentReturns

type PageGetResourceContentReturns struct {
	Content string

	Base64Encoded bool
}

type PageGetResourceTreeReturns

type PageGetResourceTreeReturns struct {
	FrameTree PageFrameResourceTree
}

type PageHandleJavaScriptDialogReturns

type PageHandleJavaScriptDialogReturns struct {
}

type PageInstallabilityError

type PageInstallabilityError map[string]interface{}

type PageInstallabilityErrorArgument

type PageInstallabilityErrorArgument map[string]interface{}

type PageInterstitialHiddenEvent

type PageInterstitialHiddenEvent struct {
}

type PageInterstitialHiddenHandler

type PageInterstitialHiddenHandler func(ev PageInterstitialHiddenEvent)

type PageInterstitialShownEvent

type PageInterstitialShownEvent struct {
}

type PageInterstitialShownHandler

type PageInterstitialShownHandler func(ev PageInterstitialShownEvent)

type PageJavascriptDialogClosedEvent

type PageJavascriptDialogClosedEvent struct {
	Result bool

	UserInput string
}

type PageJavascriptDialogClosedHandler

type PageJavascriptDialogClosedHandler func(ev PageJavascriptDialogClosedEvent)

type PageJavascriptDialogOpeningEvent

type PageJavascriptDialogOpeningEvent struct {
	Url string

	Message string

	Type PageDialogType

	HasBrowserHandler bool

	DefaultPrompt string
}

type PageJavascriptDialogOpeningHandler

type PageJavascriptDialogOpeningHandler func(ev PageJavascriptDialogOpeningEvent)

type PageLayoutViewport

type PageLayoutViewport map[string]interface{}

type PageLifecycleEventEvent

type PageLifecycleEventEvent struct {
	FrameId PageFrameId

	LoaderId NetworkLoaderId

	Name string

	Timestamp NetworkMonotonicTime
}

type PageLifecycleEventHandler

type PageLifecycleEventHandler func(ev PageLifecycleEventEvent)

type PageLoadEventFiredEvent

type PageLoadEventFiredEvent struct {
	Timestamp NetworkMonotonicTime
}

type PageLoadEventFiredHandler

type PageLoadEventFiredHandler func(ev PageLoadEventFiredEvent)
type PageNavigateReturns struct {
	FrameId PageFrameId

	LoaderId NetworkLoaderId

	ErrorText string
}
type PageNavigateToHistoryEntryReturns struct {
}
type PageNavigatedWithinDocumentEvent struct {
	FrameId PageFrameId

	Url string
}
type PageNavigatedWithinDocumentHandler func(ev PageNavigatedWithinDocumentEvent)
type PageNavigationEntry map[string]interface{}

type PagePrintToPDFReturns

type PagePrintToPDFReturns struct {
	Data string

	Stream IOStreamHandle
}

type PageReferrerPolicy

type PageReferrerPolicy string

type PageReloadReturns

type PageReloadReturns struct {
}

type PageRemoveScriptToEvaluateOnLoadReturns

type PageRemoveScriptToEvaluateOnLoadReturns struct {
}

type PageRemoveScriptToEvaluateOnNewDocumentReturns

type PageRemoveScriptToEvaluateOnNewDocumentReturns struct {
}

type PageResetNavigationHistoryReturns

type PageResetNavigationHistoryReturns struct {
}

type PageScreencastFrameAckReturns

type PageScreencastFrameAckReturns struct {
}

type PageScreencastFrameEvent

type PageScreencastFrameEvent struct {
	Data string

	Metadata PageScreencastFrameMetadata

	SessionId int
}

type PageScreencastFrameHandler

type PageScreencastFrameHandler func(ev PageScreencastFrameEvent)

type PageScreencastFrameMetadata

type PageScreencastFrameMetadata map[string]interface{}

type PageScreencastVisibilityChangedEvent

type PageScreencastVisibilityChangedEvent struct {
	Visible bool
}

type PageScreencastVisibilityChangedHandler

type PageScreencastVisibilityChangedHandler func(ev PageScreencastVisibilityChangedEvent)

type PageScriptIdentifier

type PageScriptIdentifier string

type PageSearchInResourceReturns

type PageSearchInResourceReturns struct {
	Result []DebuggerSearchMatch
}

type PageSecureContextType

type PageSecureContextType string

type PageSetAdBlockingEnabledReturns

type PageSetAdBlockingEnabledReturns struct {
}

type PageSetBypassCSPReturns

type PageSetBypassCSPReturns struct {
}

type PageSetDeviceMetricsOverrideReturns

type PageSetDeviceMetricsOverrideReturns struct {
}

type PageSetDeviceOrientationOverrideReturns

type PageSetDeviceOrientationOverrideReturns struct {
}

type PageSetDocumentContentReturns

type PageSetDocumentContentReturns struct {
}

type PageSetDownloadBehaviorReturns

type PageSetDownloadBehaviorReturns struct {
}

type PageSetFontFamiliesReturns

type PageSetFontFamiliesReturns struct {
}

type PageSetFontSizesReturns

type PageSetFontSizesReturns struct {
}

type PageSetGeolocationOverrideReturns

type PageSetGeolocationOverrideReturns struct {
}

type PageSetInterceptFileChooserDialogReturns

type PageSetInterceptFileChooserDialogReturns struct {
}

type PageSetLifecycleEventsEnabledReturns

type PageSetLifecycleEventsEnabledReturns struct {
}

type PageSetProduceCompilationCacheReturns

type PageSetProduceCompilationCacheReturns struct {
}

type PageSetTouchEmulationEnabledReturns

type PageSetTouchEmulationEnabledReturns struct {
}

type PageSetWebLifecycleStateReturns

type PageSetWebLifecycleStateReturns struct {
}

type PageStartScreencastReturns

type PageStartScreencastReturns struct {
}

type PageStopLoadingReturns

type PageStopLoadingReturns struct {
}

type PageStopScreencastReturns

type PageStopScreencastReturns struct {
}

type PageTransitionType

type PageTransitionType string

type PageViewport

type PageViewport map[string]interface{}

type PageVisualViewport

type PageVisualViewport map[string]interface{}

type PageWaitForDebuggerReturns

type PageWaitForDebuggerReturns struct {
}

type PageWindowOpenEvent

type PageWindowOpenEvent struct {
	Url string

	WindowName string

	WindowFeatures []string

	UserGesture bool
}

type PageWindowOpenHandler

type PageWindowOpenHandler func(ev PageWindowOpenEvent)

type Parameter

type Parameter struct {
	Name        string
	Description string
	Optional    bool
	Type        string
	Enum        []string
	Ref         string `json:"$ref"`
	Items       Item
}

Parameter from protocol

type PerformanceDisableReturns

type PerformanceDisableReturns struct {
}

type PerformanceEnableReturns

type PerformanceEnableReturns struct {
}

type PerformanceGetMetricsReturns

type PerformanceGetMetricsReturns struct {
	Metrics []PerformanceMetric
}

type PerformanceMetric

type PerformanceMetric map[string]interface{}

type PerformanceMetricsEvent

type PerformanceMetricsEvent struct {
	Metrics []PerformanceMetric

	Title string
}

type PerformanceMetricsHandler

type PerformanceMetricsHandler func(ev PerformanceMetricsEvent)

type PerformanceSetTimeDomainReturns

type PerformanceSetTimeDomainReturns struct {
}

type ProfilerConsoleProfileFinishedEvent

type ProfilerConsoleProfileFinishedEvent struct {
	Id string

	Location DebuggerLocation

	Profile ProfilerProfile

	Title string
}

type ProfilerConsoleProfileFinishedHandler

type ProfilerConsoleProfileFinishedHandler func(ev ProfilerConsoleProfileFinishedEvent)

type ProfilerConsoleProfileStartedEvent

type ProfilerConsoleProfileStartedEvent struct {
	Id string

	Location DebuggerLocation

	Title string
}

type ProfilerConsoleProfileStartedHandler

type ProfilerConsoleProfileStartedHandler func(ev ProfilerConsoleProfileStartedEvent)

type ProfilerCounterInfo

type ProfilerCounterInfo map[string]interface{}

type ProfilerCoverageRange

type ProfilerCoverageRange map[string]interface{}

type ProfilerDisableCountersReturns

type ProfilerDisableCountersReturns struct {
}

type ProfilerDisableReturns

type ProfilerDisableReturns struct {
}

type ProfilerDisableRuntimeCallStatsReturns

type ProfilerDisableRuntimeCallStatsReturns struct {
}

type ProfilerEnableCountersReturns

type ProfilerEnableCountersReturns struct {
}

type ProfilerEnableReturns

type ProfilerEnableReturns struct {
}

type ProfilerEnableRuntimeCallStatsReturns

type ProfilerEnableRuntimeCallStatsReturns struct {
}

type ProfilerFunctionCoverage

type ProfilerFunctionCoverage map[string]interface{}

type ProfilerGetBestEffortCoverageReturns

type ProfilerGetBestEffortCoverageReturns struct {
	Result []ProfilerScriptCoverage
}

type ProfilerGetCountersReturns

type ProfilerGetCountersReturns struct {
	Result []ProfilerCounterInfo
}

type ProfilerGetRuntimeCallStatsReturns

type ProfilerGetRuntimeCallStatsReturns struct {
	Result []ProfilerRuntimeCallCounterInfo
}

type ProfilerPositionTickInfo

type ProfilerPositionTickInfo map[string]interface{}

type ProfilerPreciseCoverageDeltaUpdateEvent

type ProfilerPreciseCoverageDeltaUpdateEvent struct {
	Timestamp float64

	Occassion string

	Result []ProfilerScriptCoverage
}

type ProfilerPreciseCoverageDeltaUpdateHandler

type ProfilerPreciseCoverageDeltaUpdateHandler func(ev ProfilerPreciseCoverageDeltaUpdateEvent)

type ProfilerProfile

type ProfilerProfile map[string]interface{}

type ProfilerProfileNode

type ProfilerProfileNode map[string]interface{}

type ProfilerRuntimeCallCounterInfo

type ProfilerRuntimeCallCounterInfo map[string]interface{}

type ProfilerScriptCoverage

type ProfilerScriptCoverage map[string]interface{}

type ProfilerScriptTypeProfile

type ProfilerScriptTypeProfile map[string]interface{}

type ProfilerSetSamplingIntervalReturns

type ProfilerSetSamplingIntervalReturns struct {
}

type ProfilerStartPreciseCoverageReturns

type ProfilerStartPreciseCoverageReturns struct {
	Timestamp float64
}

type ProfilerStartReturns

type ProfilerStartReturns struct {
}

type ProfilerStartTypeProfileReturns

type ProfilerStartTypeProfileReturns struct {
}

type ProfilerStopPreciseCoverageReturns

type ProfilerStopPreciseCoverageReturns struct {
}

type ProfilerStopReturns

type ProfilerStopReturns struct {
	Profile ProfilerProfile
}

type ProfilerStopTypeProfileReturns

type ProfilerStopTypeProfileReturns struct {
}

type ProfilerTakePreciseCoverageReturns

type ProfilerTakePreciseCoverageReturns struct {
	Result []ProfilerScriptCoverage

	Timestamp float64
}

type ProfilerTakeTypeProfileReturns

type ProfilerTakeTypeProfileReturns struct {
	Result []ProfilerScriptTypeProfile
}

type ProfilerTypeObject

type ProfilerTypeObject map[string]interface{}

type ProfilerTypeProfileEntry

type ProfilerTypeProfileEntry map[string]interface{}

type Property

type Property struct {
	Name        string
	Description string
	Optional    bool
	Type        string
	Ref         string `json:"$ref"`
	Items       Item
}

Property of object

type Protocol

type Protocol struct {
	Domains []Domain
	Version Version
}

Protocol describes the DevTools Protocol

func (*Protocol) VersionString

func (p *Protocol) VersionString() string

VersionString gives the version string

type Return

type Return struct {
	Name        string
	Description string
	Optional    bool
	Type        string
	Ref         string `json:"$ref"`
	Items       Item
}

Return from a command

type RuntimeAddBindingReturns

type RuntimeAddBindingReturns struct {
}

type RuntimeAwaitPromiseReturns

type RuntimeAwaitPromiseReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeBindingCalledEvent

type RuntimeBindingCalledEvent struct {
	Name string

	Payload string

	ExecutionContextId RuntimeExecutionContextId
}

type RuntimeBindingCalledHandler

type RuntimeBindingCalledHandler func(ev RuntimeBindingCalledEvent)

type RuntimeCallArgument

type RuntimeCallArgument map[string]interface{}

type RuntimeCallFrame

type RuntimeCallFrame map[string]interface{}

type RuntimeCallFunctionOnReturns

type RuntimeCallFunctionOnReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeCompileScriptReturns

type RuntimeCompileScriptReturns struct {
	ScriptId RuntimeScriptId

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeConsoleAPICalledEvent

type RuntimeConsoleAPICalledEvent struct {
	Type string

	Args []RuntimeRemoteObject

	ExecutionContextId RuntimeExecutionContextId

	Timestamp RuntimeTimestamp

	StackTrace RuntimeStackTrace

	Context string
}

type RuntimeConsoleAPICalledHandler

type RuntimeConsoleAPICalledHandler func(ev RuntimeConsoleAPICalledEvent)

type RuntimeCustomPreview

type RuntimeCustomPreview map[string]interface{}

type RuntimeDisableReturns

type RuntimeDisableReturns struct {
}

type RuntimeDiscardConsoleEntriesReturns

type RuntimeDiscardConsoleEntriesReturns struct {
}

type RuntimeEnableReturns

type RuntimeEnableReturns struct {
}

type RuntimeEntryPreview

type RuntimeEntryPreview map[string]interface{}

type RuntimeEvaluateReturns

type RuntimeEvaluateReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeExceptionDetails

type RuntimeExceptionDetails map[string]interface{}

type RuntimeExceptionRevokedEvent

type RuntimeExceptionRevokedEvent struct {
	Reason string

	ExceptionId int
}

type RuntimeExceptionRevokedHandler

type RuntimeExceptionRevokedHandler func(ev RuntimeExceptionRevokedEvent)

type RuntimeExceptionThrownEvent

type RuntimeExceptionThrownEvent struct {
	Timestamp RuntimeTimestamp

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeExceptionThrownHandler

type RuntimeExceptionThrownHandler func(ev RuntimeExceptionThrownEvent)

type RuntimeExecutionContextCreatedEvent

type RuntimeExecutionContextCreatedEvent struct {
	Context RuntimeExecutionContextDescription
}

type RuntimeExecutionContextCreatedHandler

type RuntimeExecutionContextCreatedHandler func(ev RuntimeExecutionContextCreatedEvent)

type RuntimeExecutionContextDescription

type RuntimeExecutionContextDescription map[string]interface{}

type RuntimeExecutionContextDestroyedEvent

type RuntimeExecutionContextDestroyedEvent struct {
	ExecutionContextId RuntimeExecutionContextId
}

type RuntimeExecutionContextDestroyedHandler

type RuntimeExecutionContextDestroyedHandler func(ev RuntimeExecutionContextDestroyedEvent)

type RuntimeExecutionContextId

type RuntimeExecutionContextId int

type RuntimeExecutionContextsClearedEvent

type RuntimeExecutionContextsClearedEvent struct {
}

type RuntimeExecutionContextsClearedHandler

type RuntimeExecutionContextsClearedHandler func(ev RuntimeExecutionContextsClearedEvent)

type RuntimeGetHeapUsageReturns

type RuntimeGetHeapUsageReturns struct {
	UsedSize float64

	TotalSize float64
}

type RuntimeGetIsolateIdReturns

type RuntimeGetIsolateIdReturns struct {
	Id string
}

type RuntimeGetPropertiesReturns

type RuntimeGetPropertiesReturns struct {
	Result []RuntimePropertyDescriptor

	InternalProperties []RuntimeInternalPropertyDescriptor

	PrivateProperties []RuntimePrivatePropertyDescriptor

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeGlobalLexicalScopeNamesReturns

type RuntimeGlobalLexicalScopeNamesReturns struct {
	Names []string
}

type RuntimeInspectRequestedEvent

type RuntimeInspectRequestedEvent struct {
	Object RuntimeRemoteObject

	Hints map[string]interface{}
}

type RuntimeInspectRequestedHandler

type RuntimeInspectRequestedHandler func(ev RuntimeInspectRequestedEvent)

type RuntimeInternalPropertyDescriptor

type RuntimeInternalPropertyDescriptor map[string]interface{}

type RuntimeObjectPreview

type RuntimeObjectPreview map[string]interface{}

type RuntimePrivatePropertyDescriptor

type RuntimePrivatePropertyDescriptor map[string]interface{}

type RuntimePropertyDescriptor

type RuntimePropertyDescriptor map[string]interface{}

type RuntimePropertyPreview

type RuntimePropertyPreview map[string]interface{}

type RuntimeQueryObjectsReturns

type RuntimeQueryObjectsReturns struct {
	Objects RuntimeRemoteObject
}

type RuntimeReleaseObjectGroupReturns

type RuntimeReleaseObjectGroupReturns struct {
}

type RuntimeReleaseObjectReturns

type RuntimeReleaseObjectReturns struct {
}

type RuntimeRemoteObject

type RuntimeRemoteObject map[string]interface{}

type RuntimeRemoteObjectId

type RuntimeRemoteObjectId string

type RuntimeRemoveBindingReturns

type RuntimeRemoveBindingReturns struct {
}

type RuntimeRunIfWaitingForDebuggerReturns

type RuntimeRunIfWaitingForDebuggerReturns struct {
}

type RuntimeRunScriptReturns

type RuntimeRunScriptReturns struct {
	Result RuntimeRemoteObject

	ExceptionDetails RuntimeExceptionDetails
}

type RuntimeScriptId

type RuntimeScriptId string

type RuntimeSetAsyncCallStackDepthReturns

type RuntimeSetAsyncCallStackDepthReturns struct {
}

type RuntimeSetCustomObjectFormatterEnabledReturns

type RuntimeSetCustomObjectFormatterEnabledReturns struct {
}

type RuntimeSetMaxCallStackSizeToCaptureReturns

type RuntimeSetMaxCallStackSizeToCaptureReturns struct {
}

type RuntimeStackTrace

type RuntimeStackTrace map[string]interface{}

type RuntimeStackTraceId

type RuntimeStackTraceId map[string]interface{}

type RuntimeTerminateExecutionReturns

type RuntimeTerminateExecutionReturns struct {
}

type RuntimeTimeDelta

type RuntimeTimeDelta float64

type RuntimeTimestamp

type RuntimeTimestamp float64

type RuntimeUniqueDebuggerId

type RuntimeUniqueDebuggerId string

type RuntimeUnserializableValue

type RuntimeUnserializableValue string

type SchemaDomain

type SchemaDomain map[string]interface{}

type SchemaGetDomainsReturns

type SchemaGetDomainsReturns struct {
	Domains []SchemaDomain
}

type SecurityCertificateErrorAction

type SecurityCertificateErrorAction string

type SecurityCertificateErrorEvent

type SecurityCertificateErrorEvent struct {
	EventId int

	ErrorType string

	RequestURL string
}

type SecurityCertificateErrorHandler

type SecurityCertificateErrorHandler func(ev SecurityCertificateErrorEvent)

type SecurityCertificateId

type SecurityCertificateId int

type SecurityCertificateSecurityState

type SecurityCertificateSecurityState map[string]interface{}

type SecurityDisableReturns

type SecurityDisableReturns struct {
}

type SecurityEnableReturns

type SecurityEnableReturns struct {
}

type SecurityHandleCertificateErrorReturns

type SecurityHandleCertificateErrorReturns struct {
}

type SecurityInsecureContentStatus

type SecurityInsecureContentStatus map[string]interface{}

type SecurityMixedContentType

type SecurityMixedContentType string

type SecuritySafetyTipInfo

type SecuritySafetyTipInfo map[string]interface{}

type SecuritySafetyTipStatus

type SecuritySafetyTipStatus string

type SecuritySecurityState

type SecuritySecurityState string

type SecuritySecurityStateChangedEvent

type SecuritySecurityStateChangedEvent struct {
	SecurityState SecuritySecurityState

	SchemeIsCryptographic bool

	Explanations []SecuritySecurityStateExplanation

	InsecureContentStatus SecurityInsecureContentStatus

	Summary string
}

type SecuritySecurityStateChangedHandler

type SecuritySecurityStateChangedHandler func(ev SecuritySecurityStateChangedEvent)

type SecuritySecurityStateExplanation

type SecuritySecurityStateExplanation map[string]interface{}

type SecuritySetIgnoreCertificateErrorsReturns

type SecuritySetIgnoreCertificateErrorsReturns struct {
}

type SecuritySetOverrideCertificateErrorsReturns

type SecuritySetOverrideCertificateErrorsReturns struct {
}

type SecurityVisibleSecurityState

type SecurityVisibleSecurityState map[string]interface{}

type SecurityVisibleSecurityStateChangedEvent

type SecurityVisibleSecurityStateChangedEvent struct {
	VisibleSecurityState SecurityVisibleSecurityState
}

type SecurityVisibleSecurityStateChangedHandler

type SecurityVisibleSecurityStateChangedHandler func(ev SecurityVisibleSecurityStateChangedEvent)

type ServiceWorkerDeliverPushMessageReturns

type ServiceWorkerDeliverPushMessageReturns struct {
}

type ServiceWorkerDisableReturns

type ServiceWorkerDisableReturns struct {
}

type ServiceWorkerDispatchPeriodicSyncEventReturns

type ServiceWorkerDispatchPeriodicSyncEventReturns struct {
}

type ServiceWorkerDispatchSyncEventReturns

type ServiceWorkerDispatchSyncEventReturns struct {
}

type ServiceWorkerEnableReturns

type ServiceWorkerEnableReturns struct {
}

type ServiceWorkerInspectWorkerReturns

type ServiceWorkerInspectWorkerReturns struct {
}

type ServiceWorkerRegistrationID

type ServiceWorkerRegistrationID string

type ServiceWorkerServiceWorkerErrorMessage

type ServiceWorkerServiceWorkerErrorMessage map[string]interface{}

type ServiceWorkerServiceWorkerRegistration

type ServiceWorkerServiceWorkerRegistration map[string]interface{}

type ServiceWorkerServiceWorkerVersion

type ServiceWorkerServiceWorkerVersion map[string]interface{}

type ServiceWorkerServiceWorkerVersionRunningStatus

type ServiceWorkerServiceWorkerVersionRunningStatus string

type ServiceWorkerServiceWorkerVersionStatus

type ServiceWorkerServiceWorkerVersionStatus string

type ServiceWorkerSetForceUpdateOnPageLoadReturns

type ServiceWorkerSetForceUpdateOnPageLoadReturns struct {
}

type ServiceWorkerSkipWaitingReturns

type ServiceWorkerSkipWaitingReturns struct {
}

type ServiceWorkerStartWorkerReturns

type ServiceWorkerStartWorkerReturns struct {
}

type ServiceWorkerStopAllWorkersReturns

type ServiceWorkerStopAllWorkersReturns struct {
}

type ServiceWorkerStopWorkerReturns

type ServiceWorkerStopWorkerReturns struct {
}

type ServiceWorkerUnregisterReturns

type ServiceWorkerUnregisterReturns struct {
}

type ServiceWorkerUpdateRegistrationReturns

type ServiceWorkerUpdateRegistrationReturns struct {
}

type ServiceWorkerWorkerErrorReportedEvent

type ServiceWorkerWorkerErrorReportedEvent struct {
	ErrorMessage ServiceWorkerServiceWorkerErrorMessage
}

type ServiceWorkerWorkerErrorReportedHandler

type ServiceWorkerWorkerErrorReportedHandler func(ev ServiceWorkerWorkerErrorReportedEvent)

type ServiceWorkerWorkerRegistrationUpdatedEvent

type ServiceWorkerWorkerRegistrationUpdatedEvent struct {
	Registrations []ServiceWorkerServiceWorkerRegistration
}

type ServiceWorkerWorkerRegistrationUpdatedHandler

type ServiceWorkerWorkerRegistrationUpdatedHandler func(ev ServiceWorkerWorkerRegistrationUpdatedEvent)

type ServiceWorkerWorkerVersionUpdatedEvent

type ServiceWorkerWorkerVersionUpdatedEvent struct {
	Versions []ServiceWorkerServiceWorkerVersion
}

type ServiceWorkerWorkerVersionUpdatedHandler

type ServiceWorkerWorkerVersionUpdatedHandler func(ev ServiceWorkerWorkerVersionUpdatedEvent)

type StorageCacheStorageContentUpdatedEvent

type StorageCacheStorageContentUpdatedEvent struct {
	Origin string

	CacheName string
}

type StorageCacheStorageContentUpdatedHandler

type StorageCacheStorageContentUpdatedHandler func(ev StorageCacheStorageContentUpdatedEvent)

type StorageCacheStorageListUpdatedEvent

type StorageCacheStorageListUpdatedEvent struct {
	Origin string
}

type StorageCacheStorageListUpdatedHandler

type StorageCacheStorageListUpdatedHandler func(ev StorageCacheStorageListUpdatedEvent)

type StorageClearCookiesReturns

type StorageClearCookiesReturns struct {
}

type StorageClearDataForOriginReturns

type StorageClearDataForOriginReturns struct {
}

type StorageGetCookiesReturns

type StorageGetCookiesReturns struct {
	Cookies []NetworkCookie
}

type StorageGetUsageAndQuotaReturns

type StorageGetUsageAndQuotaReturns struct {
	Usage float64

	Quota float64

	UsageBreakdown []StorageUsageForType
}

type StorageIndexedDBContentUpdatedEvent

type StorageIndexedDBContentUpdatedEvent struct {
	Origin string

	DatabaseName string

	ObjectStoreName string
}

type StorageIndexedDBContentUpdatedHandler

type StorageIndexedDBContentUpdatedHandler func(ev StorageIndexedDBContentUpdatedEvent)

type StorageIndexedDBListUpdatedEvent

type StorageIndexedDBListUpdatedEvent struct {
	Origin string
}

type StorageIndexedDBListUpdatedHandler

type StorageIndexedDBListUpdatedHandler func(ev StorageIndexedDBListUpdatedEvent)

type StorageSetCookiesReturns

type StorageSetCookiesReturns struct {
}

type StorageStorageType

type StorageStorageType string

type StorageTrackCacheStorageForOriginReturns

type StorageTrackCacheStorageForOriginReturns struct {
}

type StorageTrackIndexedDBForOriginReturns

type StorageTrackIndexedDBForOriginReturns struct {
}

type StorageUntrackCacheStorageForOriginReturns

type StorageUntrackCacheStorageForOriginReturns struct {
}

type StorageUntrackIndexedDBForOriginReturns

type StorageUntrackIndexedDBForOriginReturns struct {
}

type StorageUsageForType

type StorageUsageForType map[string]interface{}

type SystemInfoGPUDevice

type SystemInfoGPUDevice map[string]interface{}

type SystemInfoGPUInfo

type SystemInfoGPUInfo map[string]interface{}

type SystemInfoGetInfoReturns

type SystemInfoGetInfoReturns struct {
	Gpu SystemInfoGPUInfo

	ModelName string

	ModelVersion string

	CommandLine string
}

type SystemInfoGetProcessInfoReturns

type SystemInfoGetProcessInfoReturns struct {
	ProcessInfo []SystemInfoProcessInfo
}

type SystemInfoImageDecodeAcceleratorCapability

type SystemInfoImageDecodeAcceleratorCapability map[string]interface{}

type SystemInfoImageType

type SystemInfoImageType string

type SystemInfoProcessInfo

type SystemInfoProcessInfo map[string]interface{}

type SystemInfoSize

type SystemInfoSize map[string]interface{}

type SystemInfoSubsamplingFormat

type SystemInfoSubsamplingFormat string

type SystemInfoVideoDecodeAcceleratorCapability

type SystemInfoVideoDecodeAcceleratorCapability map[string]interface{}

type SystemInfoVideoEncodeAcceleratorCapability

type SystemInfoVideoEncodeAcceleratorCapability map[string]interface{}

type Tab

type Tab struct {
	Events tabEventHandlers
	// contains filtered or unexported fields
}

Tab command channel

func (*Tab) AccessibilityDisable

func (t *Tab) AccessibilityDisable() (AccessibilityDisableReturns, error)

Disables the accessibility domain.

func (*Tab) AccessibilityEnable

func (t *Tab) AccessibilityEnable() (AccessibilityEnableReturns, error)
Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls.

This turns on accessibility for the page, which can impact performance until accessibility is disabled.

func (*Tab) AccessibilityGetFullAXTree

func (t *Tab) AccessibilityGetFullAXTree() (AccessibilityGetFullAXTreeReturns, error)

Fetches the entire accessibility tree

func (*Tab) AccessibilityGetPartialAXTree

func (t *Tab) AccessibilityGetPartialAXTree(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId, fetchRelatives bool) (AccessibilityGetPartialAXTreeReturns, error)

Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

func (*Tab) AccessibilityQueryAXTree

func (t *Tab) AccessibilityQueryAXTree(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId, accessibleName string, role string) (AccessibilityQueryAXTreeReturns, error)
Query a DOM node's accessibility subtree for accessible name and role.

This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.

func (*Tab) AnimationDisable

func (t *Tab) AnimationDisable() (AnimationDisableReturns, error)

Disables animation domain notifications.

func (*Tab) AnimationEnable

func (t *Tab) AnimationEnable() (AnimationEnableReturns, error)

Enables animation domain notifications.

func (*Tab) AnimationGetCurrentTime

func (t *Tab) AnimationGetCurrentTime(id string) (AnimationGetCurrentTimeReturns, error)

Returns the current time of the an animation.

func (*Tab) AnimationGetPlaybackRate

func (t *Tab) AnimationGetPlaybackRate() (AnimationGetPlaybackRateReturns, error)

Gets the playback rate of the document timeline.

func (*Tab) AnimationReleaseAnimations

func (t *Tab) AnimationReleaseAnimations(animations []string) (AnimationReleaseAnimationsReturns, error)

Releases a set of animations to no longer be manipulated.

func (*Tab) AnimationResolveAnimation

func (t *Tab) AnimationResolveAnimation(animationId string) (AnimationResolveAnimationReturns, error)

Gets the remote object of the Animation.

func (*Tab) AnimationSeekAnimations

func (t *Tab) AnimationSeekAnimations(animations []string, currentTime float64) (AnimationSeekAnimationsReturns, error)

Seek a set of animations to a particular time within each animation.

func (*Tab) AnimationSetPaused

func (t *Tab) AnimationSetPaused(animations []string, paused bool) (AnimationSetPausedReturns, error)

Sets the paused state of a set of animations.

func (*Tab) AnimationSetPlaybackRate

func (t *Tab) AnimationSetPlaybackRate(playbackRate float64) (AnimationSetPlaybackRateReturns, error)

Sets the playback rate of the document timeline.

func (*Tab) AnimationSetTiming

func (t *Tab) AnimationSetTiming(animationId string, duration float64, delay float64) (AnimationSetTimingReturns, error)

Sets the timing of an animation node.

func (*Tab) ApplicationCacheEnable

func (t *Tab) ApplicationCacheEnable() (ApplicationCacheEnableReturns, error)

Enables application cache domain notifications.

func (*Tab) ApplicationCacheGetApplicationCacheForFrame

func (t *Tab) ApplicationCacheGetApplicationCacheForFrame(frameId PageFrameId) (ApplicationCacheGetApplicationCacheForFrameReturns, error)

Returns relevant application cache data for the document in given frame.

func (*Tab) ApplicationCacheGetFramesWithManifests

func (t *Tab) ApplicationCacheGetFramesWithManifests() (ApplicationCacheGetFramesWithManifestsReturns, error)
Returns array of frame identifiers with manifest urls for each frame containing a document

associated with some application cache.

func (*Tab) ApplicationCacheGetManifestForFrame

func (t *Tab) ApplicationCacheGetManifestForFrame(frameId PageFrameId) (ApplicationCacheGetManifestForFrameReturns, error)

Returns manifest URL for document in the given frame.

func (*Tab) AuditsDisable

func (t *Tab) AuditsDisable() (AuditsDisableReturns, error)

Disables issues domain, prevents further issues from being reported to the client.

func (*Tab) AuditsEnable

func (t *Tab) AuditsEnable() (AuditsEnableReturns, error)
Enables issues domain, sends the issues collected so far to the client by means of the

`issueAdded` event.

func (*Tab) AuditsGetEncodedResponse

func (t *Tab) AuditsGetEncodedResponse(requestId NetworkRequestId, encoding string, quality float64, sizeOnly bool) (AuditsGetEncodedResponseReturns, error)
Returns the response body and size if it were re-encoded with the specified settings. Only

applies to images.

func (*Tab) BackgroundServiceClearEvents

func (t *Tab) BackgroundServiceClearEvents(service BackgroundServiceServiceName) (BackgroundServiceClearEventsReturns, error)

Clears all stored data for the service.

func (*Tab) BackgroundServiceSetRecording

func (t *Tab) BackgroundServiceSetRecording(shouldRecord bool, service BackgroundServiceServiceName) (BackgroundServiceSetRecordingReturns, error)

Set the recording state for the service.

func (*Tab) BackgroundServiceStartObserving

func (t *Tab) BackgroundServiceStartObserving(service BackgroundServiceServiceName) (BackgroundServiceStartObservingReturns, error)

Enables event updates for the service.

func (*Tab) BackgroundServiceStopObserving

func (t *Tab) BackgroundServiceStopObserving(service BackgroundServiceServiceName) (BackgroundServiceStopObservingReturns, error)

Disables event updates for the service.

func (*Tab) BrowserClose

func (t *Tab) BrowserClose() (BrowserCloseReturns, error)

Close browser gracefully.

func (*Tab) BrowserCrash

func (t *Tab) BrowserCrash() (BrowserCrashReturns, error)

Crashes browser on the main thread.

func (*Tab) BrowserCrashGpuProcess

func (t *Tab) BrowserCrashGpuProcess() (BrowserCrashGpuProcessReturns, error)

Crashes GPU process.

func (*Tab) BrowserGetBrowserCommandLine

func (t *Tab) BrowserGetBrowserCommandLine() (BrowserGetBrowserCommandLineReturns, error)
Returns the command line switches for the browser process if, and only if

--enable-automation is on the commandline.

func (*Tab) BrowserGetHistogram

func (t *Tab) BrowserGetHistogram(name string, delta bool) (BrowserGetHistogramReturns, error)

Get a Chrome histogram by name.

func (*Tab) BrowserGetHistograms

func (t *Tab) BrowserGetHistograms(query string, delta bool) (BrowserGetHistogramsReturns, error)

Get Chrome histograms.

func (*Tab) BrowserGetVersion

func (t *Tab) BrowserGetVersion() (BrowserGetVersionReturns, error)

Returns version information.

func (*Tab) BrowserGetWindowBounds

func (t *Tab) BrowserGetWindowBounds(windowId BrowserWindowID) (BrowserGetWindowBoundsReturns, error)

Get position and size of the browser window.

func (*Tab) BrowserGetWindowForTarget

func (t *Tab) BrowserGetWindowForTarget(targetId TargetTargetID) (BrowserGetWindowForTargetReturns, error)

Get the browser window that contains the devtools target.

func (*Tab) BrowserGrantPermissions

func (t *Tab) BrowserGrantPermissions(permissions []BrowserPermissionType, origin string, browserContextId BrowserBrowserContextID) (BrowserGrantPermissionsReturns, error)

Grant specific permissions to the given origin and reject all others.

func (*Tab) BrowserResetPermissions

func (t *Tab) BrowserResetPermissions(browserContextId BrowserBrowserContextID) (BrowserResetPermissionsReturns, error)

Reset all permission management for all origins.

func (*Tab) BrowserSetDockTile

func (t *Tab) BrowserSetDockTile(badgeLabel string, image string) (BrowserSetDockTileReturns, error)

Set dock tile details, platform-specific.

func (*Tab) BrowserSetDownloadBehavior

func (t *Tab) BrowserSetDownloadBehavior(behavior string, browserContextId BrowserBrowserContextID, downloadPath string) (BrowserSetDownloadBehaviorReturns, error)

Set the behavior when downloading a file.

func (*Tab) BrowserSetPermission

func (t *Tab) BrowserSetPermission(permission BrowserPermissionDescriptor, setting BrowserPermissionSetting, origin string, browserContextId BrowserBrowserContextID) (BrowserSetPermissionReturns, error)

Set permission settings for given origin.

func (*Tab) BrowserSetWindowBounds

func (t *Tab) BrowserSetWindowBounds(windowId BrowserWindowID, bounds BrowserBounds) (BrowserSetWindowBoundsReturns, error)

Set position and/or size of the browser window.

func (*Tab) CSSAddRule

func (t *Tab) CSSAddRule(styleSheetId CSSStyleSheetId, ruleText string, location CSSSourceRange) (CSSAddRuleReturns, error)
Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the

position specified by `location`.

func (*Tab) CSSCollectClassNames

func (t *Tab) CSSCollectClassNames(styleSheetId CSSStyleSheetId) (CSSCollectClassNamesReturns, error)

Returns all class names from specified stylesheet.

func (*Tab) CSSCreateStyleSheet

func (t *Tab) CSSCreateStyleSheet(frameId PageFrameId) (CSSCreateStyleSheetReturns, error)

Creates a new special "via-inspector" stylesheet in the frame with given `frameId`.

func (*Tab) CSSDisable

func (t *Tab) CSSDisable() (CSSDisableReturns, error)

Disables the CSS agent for the given page.

func (*Tab) CSSEnable

func (t *Tab) CSSEnable() (CSSEnableReturns, error)
Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been

enabled until the result of this command is received.

func (*Tab) CSSForcePseudoState

func (t *Tab) CSSForcePseudoState(nodeId DOMNodeId, forcedPseudoClasses []string) (CSSForcePseudoStateReturns, error)
Ensures that the given node will have specified pseudo-classes whenever its style is computed by

the browser.

func (*Tab) CSSGetBackgroundColors

func (t *Tab) CSSGetBackgroundColors(nodeId DOMNodeId) (CSSGetBackgroundColorsReturns, error)

func (*Tab) CSSGetComputedStyleForNode

func (t *Tab) CSSGetComputedStyleForNode(nodeId DOMNodeId) (CSSGetComputedStyleForNodeReturns, error)

Returns the computed style for a DOM node identified by `nodeId`.

func (*Tab) CSSGetInlineStylesForNode

func (t *Tab) CSSGetInlineStylesForNode(nodeId DOMNodeId) (CSSGetInlineStylesForNodeReturns, error)
Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM

attributes) for a DOM node identified by `nodeId`.

func (*Tab) CSSGetMatchedStylesForNode

func (t *Tab) CSSGetMatchedStylesForNode(nodeId DOMNodeId) (CSSGetMatchedStylesForNodeReturns, error)

Returns requested styles for a DOM node identified by `nodeId`.

func (*Tab) CSSGetMediaQueries

func (t *Tab) CSSGetMediaQueries() (CSSGetMediaQueriesReturns, error)

Returns all media queries parsed by the rendering engine.

func (*Tab) CSSGetPlatformFontsForNode

func (t *Tab) CSSGetPlatformFontsForNode(nodeId DOMNodeId) (CSSGetPlatformFontsForNodeReturns, error)
Requests information about platform fonts which we used to render child TextNodes in the given

node.

func (*Tab) CSSGetStyleSheetText

func (t *Tab) CSSGetStyleSheetText(styleSheetId CSSStyleSheetId) (CSSGetStyleSheetTextReturns, error)

Returns the current textual content for a stylesheet.

func (*Tab) CSSSetEffectivePropertyValueForNode

func (t *Tab) CSSSetEffectivePropertyValueForNode(nodeId DOMNodeId, propertyName string, value string) (CSSSetEffectivePropertyValueForNodeReturns, error)
Find a rule with the given active property for the given node and set the new value for this

property

func (*Tab) CSSSetKeyframeKey

func (t *Tab) CSSSetKeyframeKey(styleSheetId CSSStyleSheetId, Range CSSSourceRange, keyText string) (CSSSetKeyframeKeyReturns, error)

Modifies the keyframe rule key text.

func (*Tab) CSSSetLocalFontsEnabled

func (t *Tab) CSSSetLocalFontsEnabled(enabled bool) (CSSSetLocalFontsEnabledReturns, error)

Enables/disables rendering of local CSS fonts (enabled by default).

func (*Tab) CSSSetMediaText

func (t *Tab) CSSSetMediaText(styleSheetId CSSStyleSheetId, Range CSSSourceRange, text string) (CSSSetMediaTextReturns, error)

Modifies the rule selector.

func (*Tab) CSSSetRuleSelector

func (t *Tab) CSSSetRuleSelector(styleSheetId CSSStyleSheetId, Range CSSSourceRange, selector string) (CSSSetRuleSelectorReturns, error)

Modifies the rule selector.

func (*Tab) CSSSetStyleSheetText

func (t *Tab) CSSSetStyleSheetText(styleSheetId CSSStyleSheetId, text string) (CSSSetStyleSheetTextReturns, error)

Sets the new stylesheet text.

func (*Tab) CSSSetStyleTexts

func (t *Tab) CSSSetStyleTexts(edits []CSSStyleDeclarationEdit) (CSSSetStyleTextsReturns, error)

Applies specified style edits one after another in the given order.

func (*Tab) CSSStartRuleUsageTracking

func (t *Tab) CSSStartRuleUsageTracking() (CSSStartRuleUsageTrackingReturns, error)

Enables the selector recording.

func (*Tab) CSSStopRuleUsageTracking

func (t *Tab) CSSStopRuleUsageTracking() (CSSStopRuleUsageTrackingReturns, error)
Stop tracking rule usage and return the list of rules that were used since last call to

`takeCoverageDelta` (or since start of coverage instrumentation)

func (*Tab) CSSTakeComputedStyleUpdates

func (t *Tab) CSSTakeComputedStyleUpdates() (CSSTakeComputedStyleUpdatesReturns, error)

Polls the next batch of computed style updates.

func (*Tab) CSSTakeCoverageDelta

func (t *Tab) CSSTakeCoverageDelta() (CSSTakeCoverageDeltaReturns, error)
Obtain list of rules that became used since last call to this method (or since start of coverage

instrumentation)

func (*Tab) CSSTrackComputedStyleUpdates

func (t *Tab) CSSTrackComputedStyleUpdates(propertiesToTrack []CSSCSSComputedStyleProperty) (CSSTrackComputedStyleUpdatesReturns, error)
Starts tracking the given computed styles for updates. The specified array of properties

replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.

func (*Tab) CacheStorageDeleteCache

func (t *Tab) CacheStorageDeleteCache(cacheId CacheStorageCacheId) (CacheStorageDeleteCacheReturns, error)

Deletes a cache.

func (*Tab) CacheStorageDeleteEntry

func (t *Tab) CacheStorageDeleteEntry(cacheId CacheStorageCacheId, request string) (CacheStorageDeleteEntryReturns, error)

Deletes a cache entry.

func (*Tab) CacheStorageRequestCacheNames

func (t *Tab) CacheStorageRequestCacheNames(securityOrigin string) (CacheStorageRequestCacheNamesReturns, error)

Requests cache names.

func (*Tab) CacheStorageRequestCachedResponse

func (t *Tab) CacheStorageRequestCachedResponse(cacheId CacheStorageCacheId, requestURL string, requestHeaders []CacheStorageHeader) (CacheStorageRequestCachedResponseReturns, error)

Fetches cache entry.

func (*Tab) CacheStorageRequestEntries

func (t *Tab) CacheStorageRequestEntries(cacheId CacheStorageCacheId, skipCount int, pageSize int, pathFilter string) (CacheStorageRequestEntriesReturns, error)

Requests data from cache.

func (*Tab) CastDisable

func (t *Tab) CastDisable() (CastDisableReturns, error)

Stops observing for sinks and issues.

func (*Tab) CastEnable

func (t *Tab) CastEnable(presentationUrl string) (CastEnableReturns, error)
Starts observing for sinks that can be used for tab mirroring, and if set,

sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.

func (*Tab) CastSetSinkToUse

func (t *Tab) CastSetSinkToUse(sinkName string) (CastSetSinkToUseReturns, error)
Sets a sink to be used when the web page requests the browser to choose a

sink via Presentation API, Remote Playback API, or Cast SDK.

func (*Tab) CastStartTabMirroring

func (t *Tab) CastStartTabMirroring(sinkName string) (CastStartTabMirroringReturns, error)

Starts mirroring the tab to the sink.

func (*Tab) CastStopCasting

func (t *Tab) CastStopCasting(sinkName string) (CastStopCastingReturns, error)

Stops the active Cast session on the sink.

func (*Tab) Close

func (t *Tab) Close()

Close a tab; just calls Tab.PageClose

func (*Tab) ConsoleClearMessages

func (t *Tab) ConsoleClearMessages() (ConsoleClearMessagesReturns, error)

Does nothing.

func (*Tab) ConsoleDisable

func (t *Tab) ConsoleDisable() (ConsoleDisableReturns, error)

Disables console domain, prevents further console messages from being reported to the client.

func (*Tab) ConsoleEnable

func (t *Tab) ConsoleEnable() (ConsoleEnableReturns, error)
Enables console domain, sends the messages collected so far to the client by means of the

`messageAdded` notification.

func (*Tab) DOMCollectClassNamesFromSubtree

func (t *Tab) DOMCollectClassNamesFromSubtree(nodeId DOMNodeId) (DOMCollectClassNamesFromSubtreeReturns, error)

Collects class names for the node with given id and all of it's child nodes.

func (*Tab) DOMCopyTo

func (t *Tab) DOMCopyTo(nodeId DOMNodeId, targetNodeId DOMNodeId, insertBeforeNodeId DOMNodeId) (DOMCopyToReturns, error)
Creates a deep copy of the specified node and places it into the target container before the

given anchor.

func (*Tab) DOMDebuggerGetEventListeners

func (t *Tab) DOMDebuggerGetEventListeners(objectId RuntimeRemoteObjectId, depth int, pierce bool) (DOMDebuggerGetEventListenersReturns, error)

Returns event listeners of the given object.

func (*Tab) DOMDebuggerRemoveDOMBreakpoint

func (t *Tab) DOMDebuggerRemoveDOMBreakpoint(nodeId DOMNodeId, Type DOMDebuggerDOMBreakpointType) (DOMDebuggerRemoveDOMBreakpointReturns, error)

Removes DOM breakpoint that was set using `setDOMBreakpoint`.

func (*Tab) DOMDebuggerRemoveEventListenerBreakpoint

func (t *Tab) DOMDebuggerRemoveEventListenerBreakpoint(eventName string, targetName string) (DOMDebuggerRemoveEventListenerBreakpointReturns, error)

Removes breakpoint on particular DOM event.

func (*Tab) DOMDebuggerRemoveInstrumentationBreakpoint

func (t *Tab) DOMDebuggerRemoveInstrumentationBreakpoint(eventName string) (DOMDebuggerRemoveInstrumentationBreakpointReturns, error)

Removes breakpoint on particular native event.

func (*Tab) DOMDebuggerRemoveXHRBreakpoint

func (t *Tab) DOMDebuggerRemoveXHRBreakpoint(url string) (DOMDebuggerRemoveXHRBreakpointReturns, error)

Removes breakpoint from XMLHttpRequest.

func (*Tab) DOMDebuggerSetDOMBreakpoint

func (t *Tab) DOMDebuggerSetDOMBreakpoint(nodeId DOMNodeId, Type DOMDebuggerDOMBreakpointType) (DOMDebuggerSetDOMBreakpointReturns, error)

Sets breakpoint on particular operation with DOM.

func (*Tab) DOMDebuggerSetEventListenerBreakpoint

func (t *Tab) DOMDebuggerSetEventListenerBreakpoint(eventName string, targetName string) (DOMDebuggerSetEventListenerBreakpointReturns, error)

Sets breakpoint on particular DOM event.

func (*Tab) DOMDebuggerSetInstrumentationBreakpoint

func (t *Tab) DOMDebuggerSetInstrumentationBreakpoint(eventName string) (DOMDebuggerSetInstrumentationBreakpointReturns, error)

Sets breakpoint on particular native event.

func (*Tab) DOMDebuggerSetXHRBreakpoint

func (t *Tab) DOMDebuggerSetXHRBreakpoint(url string) (DOMDebuggerSetXHRBreakpointReturns, error)

Sets breakpoint on XMLHttpRequest.

func (*Tab) DOMDescribeNode

func (t *Tab) DOMDescribeNode(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId, depth int, pierce bool) (DOMDescribeNodeReturns, error)
Describes node given its id, does not require domain to be enabled. Does not start tracking any

objects, can be used for automation.

func (*Tab) DOMDisable

func (t *Tab) DOMDisable() (DOMDisableReturns, error)

Disables DOM agent for the given page.

func (*Tab) DOMDiscardSearchResults

func (t *Tab) DOMDiscardSearchResults(searchId string) (DOMDiscardSearchResultsReturns, error)
Discards search results from the session with the given id. `getSearchResults` should no longer

be called for that search.

func (*Tab) DOMEnable

func (t *Tab) DOMEnable() (DOMEnableReturns, error)

Enables DOM agent for the given page.

func (*Tab) DOMFocus

func (t *Tab) DOMFocus(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (DOMFocusReturns, error)

Focuses the given element.

func (*Tab) DOMGetAttributes

func (t *Tab) DOMGetAttributes(nodeId DOMNodeId) (DOMGetAttributesReturns, error)

Returns attributes for the specified node.

func (*Tab) DOMGetBoxModel

func (t *Tab) DOMGetBoxModel(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (DOMGetBoxModelReturns, error)

Returns boxes for the given node.

func (*Tab) DOMGetContentQuads

func (t *Tab) DOMGetContentQuads(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (DOMGetContentQuadsReturns, error)
Returns quads that describe node position on the page. This method

might return multiple quads for inline nodes.

func (*Tab) DOMGetDocument

func (t *Tab) DOMGetDocument(depth int, pierce bool) (DOMGetDocumentReturns, error)

Returns the root DOM node (and optionally the subtree) to the caller.

func (*Tab) DOMGetFileInfo

func (t *Tab) DOMGetFileInfo(objectId RuntimeRemoteObjectId) (DOMGetFileInfoReturns, error)
Returns file information for the given

File wrapper.

func (*Tab) DOMGetFlattenedDocument

func (t *Tab) DOMGetFlattenedDocument(depth int, pierce bool) (DOMGetFlattenedDocumentReturns, error)
Returns the root DOM node (and optionally the subtree) to the caller.

Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

func (*Tab) DOMGetFrameOwner

func (t *Tab) DOMGetFrameOwner(frameId PageFrameId) (DOMGetFrameOwnerReturns, error)

Returns iframe node that owns iframe with the given domain.

func (*Tab) DOMGetNodeForLocation

func (t *Tab) DOMGetNodeForLocation(x int, y int, includeUserAgentShadowDOM bool, ignorePointerEventsNone bool) (DOMGetNodeForLocationReturns, error)
Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is

either returned or not.

func (*Tab) DOMGetNodeStackTraces

func (t *Tab) DOMGetNodeStackTraces(nodeId DOMNodeId) (DOMGetNodeStackTracesReturns, error)

Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.

func (*Tab) DOMGetNodesForSubtreeByStyle

func (t *Tab) DOMGetNodesForSubtreeByStyle(nodeId DOMNodeId, computedStyles []DOMCSSComputedStyleProperty, pierce bool) (DOMGetNodesForSubtreeByStyleReturns, error)

Finds nodes with a given computed style in a subtree.

func (*Tab) DOMGetOuterHTML

func (t *Tab) DOMGetOuterHTML(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (DOMGetOuterHTMLReturns, error)

Returns node's HTML markup.

func (*Tab) DOMGetRelayoutBoundary

func (t *Tab) DOMGetRelayoutBoundary(nodeId DOMNodeId) (DOMGetRelayoutBoundaryReturns, error)

Returns the id of the nearest ancestor that is a relayout boundary.

func (*Tab) DOMGetSearchResults

func (t *Tab) DOMGetSearchResults(searchId string, fromIndex int, toIndex int) (DOMGetSearchResultsReturns, error)
Returns search results from given `fromIndex` to given `toIndex` from the search with the given

identifier.

func (*Tab) DOMHideHighlight

func (t *Tab) DOMHideHighlight() (DOMHideHighlightReturns, error)

Hides any highlight.

func (*Tab) DOMHighlightNode

func (t *Tab) DOMHighlightNode() (DOMHighlightNodeReturns, error)

Highlights DOM node.

func (*Tab) DOMHighlightRect

func (t *Tab) DOMHighlightRect() (DOMHighlightRectReturns, error)

Highlights given rectangle.

func (*Tab) DOMMarkUndoableState

func (t *Tab) DOMMarkUndoableState() (DOMMarkUndoableStateReturns, error)

Marks last undoable state.

func (*Tab) DOMMoveTo

func (t *Tab) DOMMoveTo(nodeId DOMNodeId, targetNodeId DOMNodeId, insertBeforeNodeId DOMNodeId) (DOMMoveToReturns, error)

Moves node into the new container, places it before the given anchor.

func (*Tab) DOMPerformSearch

func (t *Tab) DOMPerformSearch(query string, includeUserAgentShadowDOM bool) (DOMPerformSearchReturns, error)
Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or

`cancelSearch` to end this search session.

func (*Tab) DOMPushNodeByPathToFrontend

func (t *Tab) DOMPushNodeByPathToFrontend(path string) (DOMPushNodeByPathToFrontendReturns, error)

Requests that the node is sent to the caller given its path. // FIXME, use XPath

func (*Tab) DOMPushNodesByBackendIdsToFrontend

func (t *Tab) DOMPushNodesByBackendIdsToFrontend(backendNodeIds []DOMBackendNodeId) (DOMPushNodesByBackendIdsToFrontendReturns, error)

Requests that a batch of nodes is sent to the caller given their backend node ids.

func (*Tab) DOMQuerySelector

func (t *Tab) DOMQuerySelector(nodeId DOMNodeId, selector string) (DOMQuerySelectorReturns, error)

Executes `querySelector` on a given node.

func (*Tab) DOMQuerySelectorAll

func (t *Tab) DOMQuerySelectorAll(nodeId DOMNodeId, selector string) (DOMQuerySelectorAllReturns, error)

Executes `querySelectorAll` on a given node.

func (*Tab) DOMRedo

func (t *Tab) DOMRedo() (DOMRedoReturns, error)

Re-does the last undone action.

func (*Tab) DOMRemoveAttribute

func (t *Tab) DOMRemoveAttribute(nodeId DOMNodeId, name string) (DOMRemoveAttributeReturns, error)

Removes attribute with given name from an element with given id.

func (*Tab) DOMRemoveNode

func (t *Tab) DOMRemoveNode(nodeId DOMNodeId) (DOMRemoveNodeReturns, error)

Removes node with given id.

func (*Tab) DOMRequestChildNodes

func (t *Tab) DOMRequestChildNodes(nodeId DOMNodeId, depth int, pierce bool) (DOMRequestChildNodesReturns, error)
Requests that children of the node with given id are returned to the caller in form of

`setChildNodes` events where not only immediate children are retrieved, but all children down to the specified depth.

func (*Tab) DOMRequestNode

func (t *Tab) DOMRequestNode(objectId RuntimeRemoteObjectId) (DOMRequestNodeReturns, error)
Requests that the node is sent to the caller given the JavaScript node object reference. All

nodes that form the path from the node to the root are also sent to the client as a series of `setChildNodes` notifications.

func (*Tab) DOMResolveNode

func (t *Tab) DOMResolveNode(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectGroup string, executionContextId RuntimeExecutionContextId) (DOMResolveNodeReturns, error)

Resolves the JavaScript node object for a given NodeId or BackendNodeId.

func (*Tab) DOMScrollIntoViewIfNeeded

func (t *Tab) DOMScrollIntoViewIfNeeded(nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId, rect DOMRect) (DOMScrollIntoViewIfNeededReturns, error)
Scrolls the specified rect of the given node into view if not already visible.

Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

func (*Tab) DOMSetAttributeValue

func (t *Tab) DOMSetAttributeValue(nodeId DOMNodeId, name string, value string) (DOMSetAttributeValueReturns, error)

Sets attribute for an element with given id.

func (*Tab) DOMSetAttributesAsText

func (t *Tab) DOMSetAttributesAsText(nodeId DOMNodeId, text string, name string) (DOMSetAttributesAsTextReturns, error)
Sets attributes on element with given id. This method is useful when user edits some existing

attribute value and types in several attribute name/value pairs.

func (*Tab) DOMSetFileInputFiles

func (t *Tab) DOMSetFileInputFiles(files []string, nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (DOMSetFileInputFilesReturns, error)

Sets files for the given file input element.

func (*Tab) DOMSetInspectedNode

func (t *Tab) DOMSetInspectedNode(nodeId DOMNodeId) (DOMSetInspectedNodeReturns, error)
Enables console to refer to the node with given id via $x (see Command Line API for more details

$x functions).

func (*Tab) DOMSetNodeName

func (t *Tab) DOMSetNodeName(nodeId DOMNodeId, name string) (DOMSetNodeNameReturns, error)

Sets node name for a node with given id.

func (*Tab) DOMSetNodeStackTracesEnabled

func (t *Tab) DOMSetNodeStackTracesEnabled(enable bool) (DOMSetNodeStackTracesEnabledReturns, error)

Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.

func (*Tab) DOMSetNodeValue

func (t *Tab) DOMSetNodeValue(nodeId DOMNodeId, value string) (DOMSetNodeValueReturns, error)

Sets node value for a node with given id.

func (*Tab) DOMSetOuterHTML

func (t *Tab) DOMSetOuterHTML(nodeId DOMNodeId, outerHTML string) (DOMSetOuterHTMLReturns, error)

Sets node HTML markup, returns new node id.

func (*Tab) DOMSnapshotCaptureSnapshot

func (t *Tab) DOMSnapshotCaptureSnapshot(computedStyles []string, includePaintOrder bool, includeDOMRects bool) (DOMSnapshotCaptureSnapshotReturns, error)
Returns a document snapshot, including the full DOM tree of the root node (including iframes,

template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

func (*Tab) DOMSnapshotDisable

func (t *Tab) DOMSnapshotDisable() (DOMSnapshotDisableReturns, error)

Disables DOM snapshot agent for the given page.

func (*Tab) DOMSnapshotEnable

func (t *Tab) DOMSnapshotEnable() (DOMSnapshotEnableReturns, error)

Enables DOM snapshot agent for the given page.

func (*Tab) DOMSnapshotGetSnapshot

func (t *Tab) DOMSnapshotGetSnapshot(computedStyleWhitelist []string, includeEventListeners bool, includePaintOrder bool, includeUserAgentShadowTree bool) (DOMSnapshotGetSnapshotReturns, error)
Returns a document snapshot, including the full DOM tree of the root node (including iframes,

template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

func (*Tab) DOMStorageClear

func (t *Tab) DOMStorageClear(storageId DOMStorageStorageId) (DOMStorageClearReturns, error)

func (*Tab) DOMStorageDisable

func (t *Tab) DOMStorageDisable() (DOMStorageDisableReturns, error)

Disables storage tracking, prevents storage events from being sent to the client.

func (*Tab) DOMStorageEnable

func (t *Tab) DOMStorageEnable() (DOMStorageEnableReturns, error)

Enables storage tracking, storage events will now be delivered to the client.

func (*Tab) DOMStorageGetDOMStorageItems

func (t *Tab) DOMStorageGetDOMStorageItems(storageId DOMStorageStorageId) (DOMStorageGetDOMStorageItemsReturns, error)

func (*Tab) DOMStorageRemoveDOMStorageItem

func (t *Tab) DOMStorageRemoveDOMStorageItem(storageId DOMStorageStorageId, key string) (DOMStorageRemoveDOMStorageItemReturns, error)

func (*Tab) DOMStorageSetDOMStorageItem

func (t *Tab) DOMStorageSetDOMStorageItem(storageId DOMStorageStorageId, key string, value string) (DOMStorageSetDOMStorageItemReturns, error)

func (*Tab) DOMUndo

func (t *Tab) DOMUndo() (DOMUndoReturns, error)

Undoes the last performed action.

func (*Tab) DatabaseDisable

func (t *Tab) DatabaseDisable() (DatabaseDisableReturns, error)

Disables database tracking, prevents database events from being sent to the client.

func (*Tab) DatabaseEnable

func (t *Tab) DatabaseEnable() (DatabaseEnableReturns, error)

Enables database tracking, database events will now be delivered to the client.

func (*Tab) DatabaseExecuteSQL

func (t *Tab) DatabaseExecuteSQL(databaseId DatabaseDatabaseId, query string) (DatabaseExecuteSQLReturns, error)

func (*Tab) DatabaseGetDatabaseTableNames

func (t *Tab) DatabaseGetDatabaseTableNames(databaseId DatabaseDatabaseId) (DatabaseGetDatabaseTableNamesReturns, error)

func (*Tab) DebuggerContinueToLocation

func (t *Tab) DebuggerContinueToLocation(location DebuggerLocation, targetCallFrames string) (DebuggerContinueToLocationReturns, error)

Continues execution until specific location is reached.

func (*Tab) DebuggerDisable

func (t *Tab) DebuggerDisable() (DebuggerDisableReturns, error)

Disables debugger for given page.

func (*Tab) DebuggerEnable

func (t *Tab) DebuggerEnable(maxScriptsCacheSize float64) (DebuggerEnableReturns, error)
Enables debugger for the given page. Clients should not assume that the debugging has been

enabled until the result for this command is received.

func (*Tab) DebuggerEvaluateOnCallFrame

func (t *Tab) DebuggerEvaluateOnCallFrame(callFrameId DebuggerCallFrameId, expression string, objectGroup string, includeCommandLineAPI bool, silent bool, returnByValue bool, generatePreview bool, throwOnSideEffect bool, timeout RuntimeTimeDelta) (DebuggerEvaluateOnCallFrameReturns, error)

Evaluates expression on a given call frame.

func (*Tab) DebuggerExecuteWasmEvaluator

func (t *Tab) DebuggerExecuteWasmEvaluator(callFrameId DebuggerCallFrameId, evaluator string, timeout RuntimeTimeDelta) (DebuggerExecuteWasmEvaluatorReturns, error)

Execute a Wasm Evaluator module on a given call frame.

func (*Tab) DebuggerGetPossibleBreakpoints

func (t *Tab) DebuggerGetPossibleBreakpoints(start DebuggerLocation, end DebuggerLocation, restrictToFunction bool) (DebuggerGetPossibleBreakpointsReturns, error)
Returns possible locations for breakpoint. scriptId in start and end range locations should be

the same.

func (*Tab) DebuggerGetScriptSource

func (t *Tab) DebuggerGetScriptSource(scriptId RuntimeScriptId) (DebuggerGetScriptSourceReturns, error)

Returns source for the script with given id.

func (*Tab) DebuggerGetStackTrace

func (t *Tab) DebuggerGetStackTrace(stackTraceId RuntimeStackTraceId) (DebuggerGetStackTraceReturns, error)

Returns stack trace with given `stackTraceId`.

func (*Tab) DebuggerGetWasmBytecode

func (t *Tab) DebuggerGetWasmBytecode(scriptId RuntimeScriptId) (DebuggerGetWasmBytecodeReturns, error)

This command is deprecated. Use getScriptSource instead.

func (*Tab) DebuggerPause

func (t *Tab) DebuggerPause() (DebuggerPauseReturns, error)

Stops on the next JavaScript statement.

func (*Tab) DebuggerPauseOnAsyncCall

func (t *Tab) DebuggerPauseOnAsyncCall(parentStackTraceId RuntimeStackTraceId) (DebuggerPauseOnAsyncCallReturns, error)

func (*Tab) DebuggerRemoveBreakpoint

func (t *Tab) DebuggerRemoveBreakpoint(breakpointId DebuggerBreakpointId) (DebuggerRemoveBreakpointReturns, error)

Removes JavaScript breakpoint.

func (*Tab) DebuggerRestartFrame

func (t *Tab) DebuggerRestartFrame(callFrameId DebuggerCallFrameId) (DebuggerRestartFrameReturns, error)

Restarts particular call frame from the beginning.

func (*Tab) DebuggerResume

func (t *Tab) DebuggerResume(terminateOnResume bool) (DebuggerResumeReturns, error)

Resumes JavaScript execution.

func (*Tab) DebuggerSearchInContent

func (t *Tab) DebuggerSearchInContent(scriptId RuntimeScriptId, query string, caseSensitive bool, isRegex bool) (DebuggerSearchInContentReturns, error)

Searches for given string in script content.

func (*Tab) DebuggerSetAsyncCallStackDepth

func (t *Tab) DebuggerSetAsyncCallStackDepth(maxDepth int) (DebuggerSetAsyncCallStackDepthReturns, error)

Enables or disables async call stacks tracking.

func (*Tab) DebuggerSetBlackboxPatterns

func (t *Tab) DebuggerSetBlackboxPatterns(patterns []string) (DebuggerSetBlackboxPatternsReturns, error)
Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in

scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.

func (*Tab) DebuggerSetBlackboxedRanges

func (t *Tab) DebuggerSetBlackboxedRanges(scriptId RuntimeScriptId, positions []DebuggerScriptPosition) (DebuggerSetBlackboxedRangesReturns, error)
Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted

scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.

func (*Tab) DebuggerSetBreakpoint

func (t *Tab) DebuggerSetBreakpoint(location DebuggerLocation, condition string) (DebuggerSetBreakpointReturns, error)

Sets JavaScript breakpoint at a given location.

func (*Tab) DebuggerSetBreakpointByUrl

func (t *Tab) DebuggerSetBreakpointByUrl(lineNumber int, url string, urlRegex string, scriptHash string, columnNumber int, condition string) (DebuggerSetBreakpointByUrlReturns, error)
Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this

command is issued, all existing parsed scripts will have breakpoints resolved and returned in `locations` property. Further matching script parsing will result in subsequent `breakpointResolved` events issued. This logical breakpoint will survive page reloads.

func (*Tab) DebuggerSetBreakpointOnFunctionCall

func (t *Tab) DebuggerSetBreakpointOnFunctionCall(objectId RuntimeRemoteObjectId, condition string) (DebuggerSetBreakpointOnFunctionCallReturns, error)
Sets JavaScript breakpoint before each call to the given function.

If another function was created from the same source as a given one, calling it will also trigger the breakpoint.

func (*Tab) DebuggerSetBreakpointsActive

func (t *Tab) DebuggerSetBreakpointsActive(active bool) (DebuggerSetBreakpointsActiveReturns, error)

Activates / deactivates all breakpoints on the page.

func (*Tab) DebuggerSetInstrumentationBreakpoint

func (t *Tab) DebuggerSetInstrumentationBreakpoint(instrumentation string) (DebuggerSetInstrumentationBreakpointReturns, error)

Sets instrumentation breakpoint.

func (*Tab) DebuggerSetPauseOnExceptions

func (t *Tab) DebuggerSetPauseOnExceptions(state string) (DebuggerSetPauseOnExceptionsReturns, error)
Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or

no exceptions. Initial pause on exceptions state is `none`.

func (*Tab) DebuggerSetReturnValue

func (t *Tab) DebuggerSetReturnValue(newValue RuntimeCallArgument) (DebuggerSetReturnValueReturns, error)

Changes return value in top frame. Available only at return break position.

func (*Tab) DebuggerSetScriptSource

func (t *Tab) DebuggerSetScriptSource(scriptId RuntimeScriptId, scriptSource string, dryRun bool) (DebuggerSetScriptSourceReturns, error)

Edits JavaScript source live.

func (*Tab) DebuggerSetSkipAllPauses

func (t *Tab) DebuggerSetSkipAllPauses(skip bool) (DebuggerSetSkipAllPausesReturns, error)

Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).

func (*Tab) DebuggerSetVariableValue

func (t *Tab) DebuggerSetVariableValue(scopeNumber int, variableName string, newValue RuntimeCallArgument, callFrameId DebuggerCallFrameId) (DebuggerSetVariableValueReturns, error)
Changes value of variable in a callframe. Object-based scopes are not supported and must be

mutated manually.

func (*Tab) DebuggerStepInto

func (t *Tab) DebuggerStepInto(breakOnAsyncCall bool, skipList []DebuggerLocationRange) (DebuggerStepIntoReturns, error)

Steps into the function call.

func (*Tab) DebuggerStepOut

func (t *Tab) DebuggerStepOut() (DebuggerStepOutReturns, error)

Steps out of the function call.

func (*Tab) DebuggerStepOver

func (t *Tab) DebuggerStepOver(skipList []DebuggerLocationRange) (DebuggerStepOverReturns, error)

Steps over the statement.

func (*Tab) DeviceOrientationClearDeviceOrientationOverride

func (t *Tab) DeviceOrientationClearDeviceOrientationOverride() (DeviceOrientationClearDeviceOrientationOverrideReturns, error)

Clears the overridden Device Orientation.

func (*Tab) DeviceOrientationSetDeviceOrientationOverride

func (t *Tab) DeviceOrientationSetDeviceOrientationOverride(alpha float64, beta float64, gamma float64) (DeviceOrientationSetDeviceOrientationOverrideReturns, error)

Overrides the Device Orientation.

func (*Tab) EmulationCanEmulate

func (t *Tab) EmulationCanEmulate() (EmulationCanEmulateReturns, error)

Tells whether emulation is supported.

func (*Tab) EmulationClearDeviceMetricsOverride

func (t *Tab) EmulationClearDeviceMetricsOverride() (EmulationClearDeviceMetricsOverrideReturns, error)

Clears the overriden device metrics.

func (*Tab) EmulationClearGeolocationOverride

func (t *Tab) EmulationClearGeolocationOverride() (EmulationClearGeolocationOverrideReturns, error)

Clears the overriden Geolocation Position and Error.

func (*Tab) EmulationClearIdleOverride

func (t *Tab) EmulationClearIdleOverride() (EmulationClearIdleOverrideReturns, error)

Clears Idle state overrides.

func (*Tab) EmulationResetPageScaleFactor

func (t *Tab) EmulationResetPageScaleFactor() (EmulationResetPageScaleFactorReturns, error)

Requests that page scale factor is reset to initial values.

func (*Tab) EmulationSetCPUThrottlingRate

func (t *Tab) EmulationSetCPUThrottlingRate(rate float64) (EmulationSetCPUThrottlingRateReturns, error)

Enables CPU throttling to emulate slow CPUs.

func (*Tab) EmulationSetDefaultBackgroundColorOverride

func (t *Tab) EmulationSetDefaultBackgroundColorOverride(color DOMRGBA) (EmulationSetDefaultBackgroundColorOverrideReturns, error)
Sets or clears an override of the default background color of the frame. This override is used

if the content does not specify one.

func (*Tab) EmulationSetDeviceMetricsOverride

func (t *Tab) EmulationSetDeviceMetricsOverride(width int, height int, deviceScaleFactor float64, mobile bool, scale float64, screenWidth int, screenHeight int, positionX int, positionY int, dontSetVisibleSize bool, screenOrientation EmulationScreenOrientation, viewport PageViewport, displayFeature EmulationDisplayFeature) (EmulationSetDeviceMetricsOverrideReturns, error)
Overrides the values of device screen dimensions (window.screen.width, window.screen.height,

window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).

func (*Tab) EmulationSetDocumentCookieDisabled

func (t *Tab) EmulationSetDocumentCookieDisabled(disabled bool) (EmulationSetDocumentCookieDisabledReturns, error)

func (*Tab) EmulationSetEmitTouchEventsForMouse

func (t *Tab) EmulationSetEmitTouchEventsForMouse(enabled bool, configuration string) (EmulationSetEmitTouchEventsForMouseReturns, error)

func (*Tab) EmulationSetEmulatedMedia

func (t *Tab) EmulationSetEmulatedMedia(media string, features []EmulationMediaFeature) (EmulationSetEmulatedMediaReturns, error)

Emulates the given media type or media feature for CSS media queries.

func (*Tab) EmulationSetEmulatedVisionDeficiency

func (t *Tab) EmulationSetEmulatedVisionDeficiency(Type string) (EmulationSetEmulatedVisionDeficiencyReturns, error)

Emulates the given vision deficiency.

func (*Tab) EmulationSetFocusEmulationEnabled

func (t *Tab) EmulationSetFocusEmulationEnabled(enabled bool) (EmulationSetFocusEmulationEnabledReturns, error)

Enables or disables simulating a focused and active page.

func (*Tab) EmulationSetGeolocationOverride

func (t *Tab) EmulationSetGeolocationOverride(latitude float64, longitude float64, accuracy float64) (EmulationSetGeolocationOverrideReturns, error)
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position

unavailable.

func (*Tab) EmulationSetIdleOverride

func (t *Tab) EmulationSetIdleOverride(isUserActive bool, isScreenUnlocked bool) (EmulationSetIdleOverrideReturns, error)

Overrides the Idle state.

func (*Tab) EmulationSetLocaleOverride

func (t *Tab) EmulationSetLocaleOverride(locale string) (EmulationSetLocaleOverrideReturns, error)

Overrides default host system locale with the specified one.

func (*Tab) EmulationSetNavigatorOverrides

func (t *Tab) EmulationSetNavigatorOverrides(platform string) (EmulationSetNavigatorOverridesReturns, error)

Overrides value returned by the javascript navigator object.

func (*Tab) EmulationSetPageScaleFactor

func (t *Tab) EmulationSetPageScaleFactor(pageScaleFactor float64) (EmulationSetPageScaleFactorReturns, error)

Sets a specified page scale factor.

func (*Tab) EmulationSetScriptExecutionDisabled

func (t *Tab) EmulationSetScriptExecutionDisabled(value bool) (EmulationSetScriptExecutionDisabledReturns, error)

Switches script execution in the page.

func (*Tab) EmulationSetScrollbarsHidden

func (t *Tab) EmulationSetScrollbarsHidden(hidden bool) (EmulationSetScrollbarsHiddenReturns, error)

func (*Tab) EmulationSetTimezoneOverride

func (t *Tab) EmulationSetTimezoneOverride(timezoneId string) (EmulationSetTimezoneOverrideReturns, error)

Overrides default host system timezone with the specified one.

func (*Tab) EmulationSetTouchEmulationEnabled

func (t *Tab) EmulationSetTouchEmulationEnabled(enabled bool, maxTouchPoints int) (EmulationSetTouchEmulationEnabledReturns, error)

Enables touch on platforms which do not support them.

func (*Tab) EmulationSetUserAgentOverride

func (t *Tab) EmulationSetUserAgentOverride(userAgent string, acceptLanguage string, platform string, userAgentMetadata EmulationUserAgentMetadata) (EmulationSetUserAgentOverrideReturns, error)

Allows overriding user agent with the given string.

func (*Tab) EmulationSetVirtualTimePolicy

func (t *Tab) EmulationSetVirtualTimePolicy(policy EmulationVirtualTimePolicy, budget float64, maxVirtualTimeTaskStarvationCount int, waitForNavigation bool, initialVirtualTime NetworkTimeSinceEpoch) (EmulationSetVirtualTimePolicyReturns, error)
Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets

the current virtual time policy. Note this supersedes any previous time budget.

func (*Tab) EmulationSetVisibleSize

func (t *Tab) EmulationSetVisibleSize(width int, height int) (EmulationSetVisibleSizeReturns, error)
Resizes the frame/viewport of the page. Note that this does not affect the frame's container

(e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

func (*Tab) Evaluate

func (t *Tab) Evaluate(js string) (RuntimeEvaluateReturns, error)

func (*Tab) Extract

func (t *Tab) Extract(url string, timeout time.Duration, delay time.Duration, js string, check ExtractCheck) (any, error)

Extract data from a page. url: page url, leave empty to stay on the same page timeout: how long before we give up delay: how long between attempts js: code to evaluate on the page check: if true, extraction is a success Returns the value extracted from the js code.

func (*Tab) FetchContinueRequest

func (t *Tab) FetchContinueRequest(requestId FetchRequestId, url string, method string, postData string, headers []FetchHeaderEntry) (FetchContinueRequestReturns, error)

Continues the request, optionally modifying some of its parameters.

func (*Tab) FetchContinueWithAuth

func (t *Tab) FetchContinueWithAuth(requestId FetchRequestId, authChallengeResponse FetchAuthChallengeResponse) (FetchContinueWithAuthReturns, error)

Continues a request supplying authChallengeResponse following authRequired event.

func (*Tab) FetchDisable

func (t *Tab) FetchDisable() (FetchDisableReturns, error)

Disables the fetch domain.

func (*Tab) FetchEnable

func (t *Tab) FetchEnable(patterns []FetchRequestPattern, handleAuthRequests bool) (FetchEnableReturns, error)
Enables issuing of requestPaused events. A request will be paused until client

calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.

func (*Tab) FetchFailRequest

func (t *Tab) FetchFailRequest(requestId FetchRequestId, errorReason NetworkErrorReason) (FetchFailRequestReturns, error)

Causes the request to fail with specified reason.

func (*Tab) FetchFulfillRequest

func (t *Tab) FetchFulfillRequest(requestId FetchRequestId, responseCode int, responseHeaders []FetchHeaderEntry, binaryResponseHeaders string, body string, responsePhrase string) (FetchFulfillRequestReturns, error)

Provides response to the request.

func (*Tab) FetchGetResponseBody

func (t *Tab) FetchGetResponseBody(requestId FetchRequestId) (FetchGetResponseBodyReturns, error)
Causes the body of the response to be received from the server and

returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.

func (*Tab) FetchTakeResponseBodyAsStream

func (t *Tab) FetchTakeResponseBodyAsStream(requestId FetchRequestId) (FetchTakeResponseBodyAsStreamReturns, error)
Returns a handle to the stream representing the response body.

The request must be paused in the HeadersReceived stage. Note that after this command the request can't be continued as is -- client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.

func (*Tab) GetResponseBody

func (t *Tab) GetResponseBody(id NetworkRequestId) (string, error)

GetResponseBody for a request

func (*Tab) Goto

func (t *Tab) Goto(url string) (PageNavigateReturns, error)

Goto a url

func (*Tab) HandleEvent

func (t *Tab) HandleEvent(method string, params json.RawMessage) error

func (*Tab) HeadlessExperimentalBeginFrame

func (t *Tab) HeadlessExperimentalBeginFrame(frameTimeTicks float64, interval float64, noDisplayUpdates bool, screenshot HeadlessExperimentalScreenshotParams) (HeadlessExperimentalBeginFrameReturns, error)
Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a

screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background.

func (*Tab) HeadlessExperimentalDisable

func (t *Tab) HeadlessExperimentalDisable() (HeadlessExperimentalDisableReturns, error)

Disables headless events for the target.

func (*Tab) HeadlessExperimentalEnable

func (t *Tab) HeadlessExperimentalEnable() (HeadlessExperimentalEnableReturns, error)

Enables headless events for the target.

func (*Tab) HeapProfilerAddInspectedHeapObject

func (t *Tab) HeapProfilerAddInspectedHeapObject(heapObjectId HeapProfilerHeapSnapshotObjectId) (HeapProfilerAddInspectedHeapObjectReturns, error)
Enables console to refer to the node with given id via $x (see Command Line API for more details

$x functions).

func (*Tab) HeapProfilerCollectGarbage

func (t *Tab) HeapProfilerCollectGarbage() (HeapProfilerCollectGarbageReturns, error)

func (*Tab) HeapProfilerDisable

func (t *Tab) HeapProfilerDisable() (HeapProfilerDisableReturns, error)

func (*Tab) HeapProfilerEnable

func (t *Tab) HeapProfilerEnable() (HeapProfilerEnableReturns, error)

func (*Tab) HeapProfilerGetHeapObjectId

func (t *Tab) HeapProfilerGetHeapObjectId(objectId RuntimeRemoteObjectId) (HeapProfilerGetHeapObjectIdReturns, error)

func (*Tab) HeapProfilerGetObjectByHeapObjectId

func (t *Tab) HeapProfilerGetObjectByHeapObjectId(objectId HeapProfilerHeapSnapshotObjectId, objectGroup string) (HeapProfilerGetObjectByHeapObjectIdReturns, error)

func (*Tab) HeapProfilerGetSamplingProfile

func (t *Tab) HeapProfilerGetSamplingProfile() (HeapProfilerGetSamplingProfileReturns, error)

func (*Tab) HeapProfilerStartSampling

func (t *Tab) HeapProfilerStartSampling(samplingInterval float64) (HeapProfilerStartSamplingReturns, error)

func (*Tab) HeapProfilerStartTrackingHeapObjects

func (t *Tab) HeapProfilerStartTrackingHeapObjects(trackAllocations bool) (HeapProfilerStartTrackingHeapObjectsReturns, error)

func (*Tab) HeapProfilerStopSampling

func (t *Tab) HeapProfilerStopSampling() (HeapProfilerStopSamplingReturns, error)

func (*Tab) HeapProfilerStopTrackingHeapObjects

func (t *Tab) HeapProfilerStopTrackingHeapObjects(reportProgress bool, treatGlobalObjectsAsRoots bool) (HeapProfilerStopTrackingHeapObjectsReturns, error)

func (*Tab) HeapProfilerTakeHeapSnapshot

func (t *Tab) HeapProfilerTakeHeapSnapshot(reportProgress bool, treatGlobalObjectsAsRoots bool) (HeapProfilerTakeHeapSnapshotReturns, error)

func (*Tab) ID

func (t *Tab) ID() string

ID gives the tab id

func (*Tab) IOClose

func (t *Tab) IOClose(handle IOStreamHandle) (IOCloseReturns, error)

Close the stream, discard any temporary backing storage.

func (*Tab) IORead

func (t *Tab) IORead(handle IOStreamHandle, offset int, size int) (IOReadReturns, error)

Read a chunk of the stream

func (*Tab) IOResolveBlob

func (t *Tab) IOResolveBlob(objectId RuntimeRemoteObjectId) (IOResolveBlobReturns, error)

Return UUID of Blob object specified by a remote object id.

func (*Tab) IndexedDBClearObjectStore

func (t *Tab) IndexedDBClearObjectStore(securityOrigin string, databaseName string, objectStoreName string) (IndexedDBClearObjectStoreReturns, error)

Clears all entries from an object store.

func (*Tab) IndexedDBDeleteDatabase

func (t *Tab) IndexedDBDeleteDatabase(securityOrigin string, databaseName string) (IndexedDBDeleteDatabaseReturns, error)

Deletes a database.

func (*Tab) IndexedDBDeleteObjectStoreEntries

func (t *Tab) IndexedDBDeleteObjectStoreEntries(securityOrigin string, databaseName string, objectStoreName string, keyRange IndexedDBKeyRange) (IndexedDBDeleteObjectStoreEntriesReturns, error)

Delete a range of entries from an object store

func (*Tab) IndexedDBDisable

func (t *Tab) IndexedDBDisable() (IndexedDBDisableReturns, error)

Disables events from backend.

func (*Tab) IndexedDBEnable

func (t *Tab) IndexedDBEnable() (IndexedDBEnableReturns, error)

Enables events from backend.

func (*Tab) IndexedDBGetMetadata

func (t *Tab) IndexedDBGetMetadata(securityOrigin string, databaseName string, objectStoreName string) (IndexedDBGetMetadataReturns, error)

Gets metadata of an object store

func (*Tab) IndexedDBRequestData

func (t *Tab) IndexedDBRequestData(securityOrigin string, databaseName string, objectStoreName string, indexName string, skipCount int, pageSize int, keyRange IndexedDBKeyRange) (IndexedDBRequestDataReturns, error)

Requests data from object store or index.

func (*Tab) IndexedDBRequestDatabase

func (t *Tab) IndexedDBRequestDatabase(securityOrigin string, databaseName string) (IndexedDBRequestDatabaseReturns, error)

Requests database with given name in given frame.

func (*Tab) IndexedDBRequestDatabaseNames

func (t *Tab) IndexedDBRequestDatabaseNames(securityOrigin string) (IndexedDBRequestDatabaseNamesReturns, error)

Requests database names for given security origin.

func (*Tab) InputDispatchKeyEvent

func (t *Tab) InputDispatchKeyEvent(Type string, modifiers int, timestamp InputTimeSinceEpoch, text string, unmodifiedText string, keyIdentifier string, code string, key string, windowsVirtualKeyCode int, nativeVirtualKeyCode int, autoRepeat bool, isKeypad bool, isSystemKey bool, location int, commands []string) (InputDispatchKeyEventReturns, error)

Dispatches a key event to the page.

func (*Tab) InputDispatchMouseEvent

func (t *Tab) InputDispatchMouseEvent(Type string, x float64, y float64, modifiers int, timestamp InputTimeSinceEpoch, button InputMouseButton, buttons int, clickCount int, deltaX float64, deltaY float64, pointerType string) (InputDispatchMouseEventReturns, error)

Dispatches a mouse event to the page.

func (*Tab) InputDispatchTouchEvent

func (t *Tab) InputDispatchTouchEvent(Type string, touchPoints []InputTouchPoint, modifiers int, timestamp InputTimeSinceEpoch) (InputDispatchTouchEventReturns, error)

Dispatches a touch event to the page.

func (*Tab) InputEmulateTouchFromMouseEvent

func (t *Tab) InputEmulateTouchFromMouseEvent(Type string, x int, y int, button InputMouseButton, timestamp InputTimeSinceEpoch, deltaX float64, deltaY float64, modifiers int, clickCount int) (InputEmulateTouchFromMouseEventReturns, error)

Emulates touch event from the mouse event parameters.

func (*Tab) InputInsertText

func (t *Tab) InputInsertText(text string) (InputInsertTextReturns, error)
This method emulates inserting text that doesn't come from a key press,

for example an emoji keyboard or an IME.

func (*Tab) InputSetIgnoreInputEvents

func (t *Tab) InputSetIgnoreInputEvents(ignore bool) (InputSetIgnoreInputEventsReturns, error)

Ignores input events (useful while auditing page).

func (*Tab) InputSynthesizePinchGesture

func (t *Tab) InputSynthesizePinchGesture(x float64, y float64, scaleFactor float64, relativeSpeed int, gestureSourceType InputGestureSourceType) (InputSynthesizePinchGestureReturns, error)

Synthesizes a pinch gesture over a time period by issuing appropriate touch events.

func (*Tab) InputSynthesizeScrollGesture

func (t *Tab) InputSynthesizeScrollGesture(x float64, y float64, xDistance float64, yDistance float64, xOverscroll float64, yOverscroll float64, preventFling bool, speed int, gestureSourceType InputGestureSourceType, repeatCount int, repeatDelayMs int, interactionMarkerName string) (InputSynthesizeScrollGestureReturns, error)

Synthesizes a scroll gesture over a time period by issuing appropriate touch events.

func (*Tab) InputSynthesizeTapGesture

func (t *Tab) InputSynthesizeTapGesture(x float64, y float64, duration int, tapCount int, gestureSourceType InputGestureSourceType) (InputSynthesizeTapGestureReturns, error)

Synthesizes a tap gesture over a time period by issuing appropriate touch events.

func (*Tab) InspectorDisable

func (t *Tab) InspectorDisable() (InspectorDisableReturns, error)

Disables inspector domain notifications.

func (*Tab) InspectorEnable

func (t *Tab) InspectorEnable() (InspectorEnableReturns, error)

Enables inspector domain notifications.

func (*Tab) LayerTreeCompositingReasons

func (t *Tab) LayerTreeCompositingReasons(layerId LayerTreeLayerId) (LayerTreeCompositingReasonsReturns, error)

Provides the reasons why the given layer was composited.

func (*Tab) LayerTreeDisable

func (t *Tab) LayerTreeDisable() (LayerTreeDisableReturns, error)

Disables compositing tree inspection.

func (*Tab) LayerTreeEnable

func (t *Tab) LayerTreeEnable() (LayerTreeEnableReturns, error)

Enables compositing tree inspection.

func (*Tab) LayerTreeLoadSnapshot

func (t *Tab) LayerTreeLoadSnapshot(tiles []LayerTreePictureTile) (LayerTreeLoadSnapshotReturns, error)

Returns the snapshot identifier.

func (*Tab) LayerTreeMakeSnapshot

func (t *Tab) LayerTreeMakeSnapshot(layerId LayerTreeLayerId) (LayerTreeMakeSnapshotReturns, error)

Returns the layer snapshot identifier.

func (*Tab) LayerTreeProfileSnapshot

func (t *Tab) LayerTreeProfileSnapshot(snapshotId LayerTreeSnapshotId, minRepeatCount int, minDuration float64, clipRect DOMRect) (LayerTreeProfileSnapshotReturns, error)

func (*Tab) LayerTreeReleaseSnapshot

func (t *Tab) LayerTreeReleaseSnapshot(snapshotId LayerTreeSnapshotId) (LayerTreeReleaseSnapshotReturns, error)

Releases layer snapshot captured by the back-end.

func (*Tab) LayerTreeReplaySnapshot

func (t *Tab) LayerTreeReplaySnapshot(snapshotId LayerTreeSnapshotId, fromStep int, toStep int, scale float64) (LayerTreeReplaySnapshotReturns, error)

Replays the layer snapshot and returns the resulting bitmap.

func (*Tab) LayerTreeSnapshotCommandLog

func (t *Tab) LayerTreeSnapshotCommandLog(snapshotId LayerTreeSnapshotId) (LayerTreeSnapshotCommandLogReturns, error)

Replays the layer snapshot and returns canvas log.

func (*Tab) LogClear

func (t *Tab) LogClear() (LogClearReturns, error)

Clears the log.

func (*Tab) LogDisable

func (t *Tab) LogDisable() (LogDisableReturns, error)

Disables log domain, prevents further log entries from being reported to the client.

func (*Tab) LogEnable

func (t *Tab) LogEnable() (LogEnableReturns, error)
Enables log domain, sends the entries collected so far to the client by means of the

`entryAdded` notification.

func (*Tab) LogStartViolationsReport

func (t *Tab) LogStartViolationsReport(config []LogViolationSetting) (LogStartViolationsReportReturns, error)

start violation reporting.

func (*Tab) LogStopViolationsReport

func (t *Tab) LogStopViolationsReport() (LogStopViolationsReportReturns, error)

Stop violation reporting.

func (*Tab) MediaDisable

func (t *Tab) MediaDisable() (MediaDisableReturns, error)

Disables the Media domain.

func (*Tab) MediaEnable

func (t *Tab) MediaEnable() (MediaEnableReturns, error)

Enables the Media domain

func (*Tab) MemoryForciblyPurgeJavaScriptMemory

func (t *Tab) MemoryForciblyPurgeJavaScriptMemory() (MemoryForciblyPurgeJavaScriptMemoryReturns, error)

Simulate OomIntervention by purging V8 memory.

func (*Tab) MemoryGetAllTimeSamplingProfile

func (t *Tab) MemoryGetAllTimeSamplingProfile() (MemoryGetAllTimeSamplingProfileReturns, error)
Retrieve native memory allocations profile

collected since renderer process startup.

func (*Tab) MemoryGetBrowserSamplingProfile

func (t *Tab) MemoryGetBrowserSamplingProfile() (MemoryGetBrowserSamplingProfileReturns, error)
Retrieve native memory allocations profile

collected since browser process startup.

func (*Tab) MemoryGetDOMCounters

func (t *Tab) MemoryGetDOMCounters() (MemoryGetDOMCountersReturns, error)

func (*Tab) MemoryGetSamplingProfile

func (t *Tab) MemoryGetSamplingProfile() (MemoryGetSamplingProfileReturns, error)
Retrieve native memory allocations profile collected since last

`startSampling` call.

func (*Tab) MemoryPrepareForLeakDetection

func (t *Tab) MemoryPrepareForLeakDetection() (MemoryPrepareForLeakDetectionReturns, error)

func (*Tab) MemorySetPressureNotificationsSuppressed

func (t *Tab) MemorySetPressureNotificationsSuppressed(suppressed bool) (MemorySetPressureNotificationsSuppressedReturns, error)

Enable/disable suppressing memory pressure notifications in all processes.

func (*Tab) MemorySimulatePressureNotification

func (t *Tab) MemorySimulatePressureNotification(level MemoryPressureLevel) (MemorySimulatePressureNotificationReturns, error)

Simulate a memory pressure notification in all processes.

func (*Tab) MemoryStartSampling

func (t *Tab) MemoryStartSampling(samplingInterval int, suppressRandomness bool) (MemoryStartSamplingReturns, error)

Start collecting native memory profile.

func (*Tab) MemoryStopSampling

func (t *Tab) MemoryStopSampling() (MemoryStopSamplingReturns, error)

Stop collecting native memory profile.

func (*Tab) NetworkCanClearBrowserCache

func (t *Tab) NetworkCanClearBrowserCache() (NetworkCanClearBrowserCacheReturns, error)

Tells whether clearing browser cache is supported.

func (*Tab) NetworkCanClearBrowserCookies

func (t *Tab) NetworkCanClearBrowserCookies() (NetworkCanClearBrowserCookiesReturns, error)

Tells whether clearing browser cookies is supported.

func (*Tab) NetworkCanEmulateNetworkConditions

func (t *Tab) NetworkCanEmulateNetworkConditions() (NetworkCanEmulateNetworkConditionsReturns, error)

Tells whether emulation of network conditions is supported.

func (*Tab) NetworkClearBrowserCache

func (t *Tab) NetworkClearBrowserCache() (NetworkClearBrowserCacheReturns, error)

Clears browser cache.

func (*Tab) NetworkClearBrowserCookies

func (t *Tab) NetworkClearBrowserCookies() (NetworkClearBrowserCookiesReturns, error)

Clears browser cookies.

func (*Tab) NetworkContinueInterceptedRequest

func (t *Tab) NetworkContinueInterceptedRequest(interceptionId NetworkInterceptionId, errorReason NetworkErrorReason, rawResponse string, url string, method string, postData string, headers NetworkHeaders, authChallengeResponse NetworkAuthChallengeResponse) (NetworkContinueInterceptedRequestReturns, error)
Response to Network.requestIntercepted which either modifies the request to continue with any

modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.

func (*Tab) NetworkDeleteCookies

func (t *Tab) NetworkDeleteCookies(name string, url string, domain string, path string) (NetworkDeleteCookiesReturns, error)

Deletes browser cookies with matching name and url or domain/path pair.

func (*Tab) NetworkDisable

func (t *Tab) NetworkDisable() (NetworkDisableReturns, error)

Disables network tracking, prevents network events from being sent to the client.

func (*Tab) NetworkEmulateNetworkConditions

func (t *Tab) NetworkEmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64, connectionType NetworkConnectionType) (NetworkEmulateNetworkConditionsReturns, error)

Activates emulation of network conditions.

func (*Tab) NetworkEnable

func (t *Tab) NetworkEnable(maxTotalBufferSize int, maxResourceBufferSize int, maxPostDataSize int) (NetworkEnableReturns, error)

Enables network tracking, network events will now be delivered to the client.

func (*Tab) NetworkGetAllCookies

func (t *Tab) NetworkGetAllCookies() (NetworkGetAllCookiesReturns, error)
Returns all browser cookies. Depending on the backend support, will return detailed cookie

information in the `cookies` field.

func (*Tab) NetworkGetCertificate

func (t *Tab) NetworkGetCertificate(origin string) (NetworkGetCertificateReturns, error)

Returns the DER-encoded certificate.

func (*Tab) NetworkGetCookies

func (t *Tab) NetworkGetCookies(urls []string) (NetworkGetCookiesReturns, error)
Returns all browser cookies for the current URL. Depending on the backend support, will return

detailed cookie information in the `cookies` field.

func (*Tab) NetworkGetRequestPostData

func (t *Tab) NetworkGetRequestPostData(requestId NetworkRequestId) (NetworkGetRequestPostDataReturns, error)

Returns post data sent with the request. Returns an error when no data was sent with the request.

func (*Tab) NetworkGetResponseBody

func (t *Tab) NetworkGetResponseBody(requestId NetworkRequestId) (NetworkGetResponseBodyReturns, error)

Returns content served for the given request.

func (*Tab) NetworkGetResponseBodyForInterception

func (t *Tab) NetworkGetResponseBodyForInterception(interceptionId NetworkInterceptionId) (NetworkGetResponseBodyForInterceptionReturns, error)

Returns content served for the given currently intercepted request.

func (*Tab) NetworkGetSecurityIsolationStatus

func (t *Tab) NetworkGetSecurityIsolationStatus(frameId PageFrameId) (NetworkGetSecurityIsolationStatusReturns, error)

Returns information about the COEP/COOP isolation status.

func (*Tab) NetworkLoadNetworkResource

func (t *Tab) NetworkLoadNetworkResource(frameId PageFrameId, url string, options NetworkLoadNetworkResourceOptions) (NetworkLoadNetworkResourceReturns, error)

Fetches the resource and returns the content.

func (*Tab) NetworkReplayXHR

func (t *Tab) NetworkReplayXHR(requestId NetworkRequestId) (NetworkReplayXHRReturns, error)
This method sends a new XMLHttpRequest which is identical to the original one. The following

parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.

func (*Tab) NetworkSearchInResponseBody

func (t *Tab) NetworkSearchInResponseBody(requestId NetworkRequestId, query string, caseSensitive bool, isRegex bool) (NetworkSearchInResponseBodyReturns, error)

Searches for given string in response content.

func (*Tab) NetworkSetAttachDebugHeader

func (t *Tab) NetworkSetAttachDebugHeader(enabled bool) (NetworkSetAttachDebugHeaderReturns, error)

Specifies whether to sned a debug header to all outgoing requests.

func (*Tab) NetworkSetBlockedURLs

func (t *Tab) NetworkSetBlockedURLs(urls []string) (NetworkSetBlockedURLsReturns, error)

Blocks URLs from loading.

func (*Tab) NetworkSetBypassServiceWorker

func (t *Tab) NetworkSetBypassServiceWorker(bypass bool) (NetworkSetBypassServiceWorkerReturns, error)

Toggles ignoring of service worker for each request.

func (*Tab) NetworkSetCacheDisabled

func (t *Tab) NetworkSetCacheDisabled(cacheDisabled bool) (NetworkSetCacheDisabledReturns, error)

Toggles ignoring cache for each request. If `true`, cache will not be used.

func (*Tab) NetworkSetCookie

func (t *Tab) NetworkSetCookie(name string, value string, url string, domain string, path string, secure bool, httpOnly bool, sameSite NetworkCookieSameSite, expires NetworkTimeSinceEpoch, priority NetworkCookiePriority) (NetworkSetCookieReturns, error)

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

func (*Tab) NetworkSetCookies

func (t *Tab) NetworkSetCookies(cookies []NetworkCookieParam) (NetworkSetCookiesReturns, error)

Sets given cookies.

func (*Tab) NetworkSetDataSizeLimitsForTest

func (t *Tab) NetworkSetDataSizeLimitsForTest(maxTotalSize int, maxResourceSize int) (NetworkSetDataSizeLimitsForTestReturns, error)

For testing.

func (*Tab) NetworkSetExtraHTTPHeaders

func (t *Tab) NetworkSetExtraHTTPHeaders(headers NetworkHeaders) (NetworkSetExtraHTTPHeadersReturns, error)

Specifies whether to always send extra HTTP headers with the requests from this page.

func (*Tab) NetworkSetRequestInterception

func (t *Tab) NetworkSetRequestInterception(patterns []NetworkRequestPattern) (NetworkSetRequestInterceptionReturns, error)
Sets the requests to intercept that match the provided patterns and optionally resource types.

Deprecated, please use Fetch.enable instead.

func (*Tab) NetworkSetUserAgentOverride

func (t *Tab) NetworkSetUserAgentOverride(userAgent string, acceptLanguage string, platform string, userAgentMetadata EmulationUserAgentMetadata) (NetworkSetUserAgentOverrideReturns, error)

Allows overriding user agent with the given string.

func (*Tab) NetworkTakeResponseBodyForInterceptionAsStream

func (t *Tab) NetworkTakeResponseBodyForInterceptionAsStream(interceptionId NetworkInterceptionId) (NetworkTakeResponseBodyForInterceptionAsStreamReturns, error)
Returns a handle to the stream representing the response body. Note that after this command,

the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.

func (*Tab) OnResource

func (t *Tab) OnResource(onResource func(res HTTPResource), types ...NetworkResourceType) error

OnResource passes the http response headers and body Document, Stylesheet, Image, Media, Font, Script, TextTrack, XHR, Fetch, EventSource, WebSocket, Manifest, SignedExchange, Ping, CSPViolationReport, Other

func (*Tab) OverlayDisable

func (t *Tab) OverlayDisable() (OverlayDisableReturns, error)

Disables domain notifications.

func (*Tab) OverlayEnable

func (t *Tab) OverlayEnable() (OverlayEnableReturns, error)

Enables domain notifications.

func (*Tab) OverlayGetGridHighlightObjectsForTest

func (t *Tab) OverlayGetGridHighlightObjectsForTest(nodeIds []DOMNodeId) (OverlayGetGridHighlightObjectsForTestReturns, error)

For Persistent Grid testing.

func (*Tab) OverlayGetHighlightObjectForTest

func (t *Tab) OverlayGetHighlightObjectForTest(nodeId DOMNodeId, includeDistance bool, includeStyle bool, colorFormat OverlayColorFormat, showAccessibilityInfo bool) (OverlayGetHighlightObjectForTestReturns, error)

For testing.

func (*Tab) OverlayGetSourceOrderHighlightObjectForTest

func (t *Tab) OverlayGetSourceOrderHighlightObjectForTest(nodeId DOMNodeId) (OverlayGetSourceOrderHighlightObjectForTestReturns, error)

For Source Order Viewer testing.

func (*Tab) OverlayHideHighlight

func (t *Tab) OverlayHideHighlight() (OverlayHideHighlightReturns, error)

Hides any highlight.

func (*Tab) OverlayHighlightFrame

func (t *Tab) OverlayHighlightFrame(frameId PageFrameId, contentColor DOMRGBA, contentOutlineColor DOMRGBA) (OverlayHighlightFrameReturns, error)

Highlights owner element of the frame with given id.

func (*Tab) OverlayHighlightNode

func (t *Tab) OverlayHighlightNode(highlightConfig OverlayHighlightConfig, nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId, selector string) (OverlayHighlightNodeReturns, error)
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or

objectId must be specified.

func (*Tab) OverlayHighlightQuad

func (t *Tab) OverlayHighlightQuad(quad DOMQuad, color DOMRGBA, outlineColor DOMRGBA) (OverlayHighlightQuadReturns, error)

Highlights given quad. Coordinates are absolute with respect to the main frame viewport.

func (*Tab) OverlayHighlightRect

func (t *Tab) OverlayHighlightRect(x int, y int, width int, height int, color DOMRGBA, outlineColor DOMRGBA) (OverlayHighlightRectReturns, error)

Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

func (*Tab) OverlayHighlightSourceOrder

func (t *Tab) OverlayHighlightSourceOrder(sourceOrderConfig OverlaySourceOrderConfig, nodeId DOMNodeId, backendNodeId DOMBackendNodeId, objectId RuntimeRemoteObjectId) (OverlayHighlightSourceOrderReturns, error)
Highlights the source order of the children of the DOM node with given id or with the given

JavaScript object wrapper. Either nodeId or objectId must be specified.

func (*Tab) OverlaySetInspectMode

func (t *Tab) OverlaySetInspectMode(mode OverlayInspectMode, highlightConfig OverlayHighlightConfig) (OverlaySetInspectModeReturns, error)
Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.

Backend then generates 'inspectNodeRequested' event upon element selection.

func (*Tab) OverlaySetPausedInDebuggerMessage

func (t *Tab) OverlaySetPausedInDebuggerMessage(message string) (OverlaySetPausedInDebuggerMessageReturns, error)

func (*Tab) OverlaySetShowAdHighlights

func (t *Tab) OverlaySetShowAdHighlights(show bool) (OverlaySetShowAdHighlightsReturns, error)

Highlights owner element of all frames detected to be ads.

func (*Tab) OverlaySetShowDebugBorders

func (t *Tab) OverlaySetShowDebugBorders(show bool) (OverlaySetShowDebugBordersReturns, error)

Requests that backend shows debug borders on layers

func (*Tab) OverlaySetShowFPSCounter

func (t *Tab) OverlaySetShowFPSCounter(show bool) (OverlaySetShowFPSCounterReturns, error)

Requests that backend shows the FPS counter

func (*Tab) OverlaySetShowGridOverlays

func (t *Tab) OverlaySetShowGridOverlays(gridNodeHighlightConfigs []OverlayGridNodeHighlightConfig) (OverlaySetShowGridOverlaysReturns, error)

Highlight multiple elements with the CSS Grid overlay.

func (*Tab) OverlaySetShowHinge

func (t *Tab) OverlaySetShowHinge(hingeConfig OverlayHingeConfig) (OverlaySetShowHingeReturns, error)

Add a dual screen device hinge

func (*Tab) OverlaySetShowHitTestBorders

func (t *Tab) OverlaySetShowHitTestBorders(show bool) (OverlaySetShowHitTestBordersReturns, error)

Requests that backend shows hit-test borders on layers

func (*Tab) OverlaySetShowLayoutShiftRegions

func (t *Tab) OverlaySetShowLayoutShiftRegions(result bool) (OverlaySetShowLayoutShiftRegionsReturns, error)

Requests that backend shows layout shift regions

func (*Tab) OverlaySetShowPaintRects

func (t *Tab) OverlaySetShowPaintRects(result bool) (OverlaySetShowPaintRectsReturns, error)

Requests that backend shows paint rectangles

func (*Tab) OverlaySetShowScrollBottleneckRects

func (t *Tab) OverlaySetShowScrollBottleneckRects(show bool) (OverlaySetShowScrollBottleneckRectsReturns, error)

Requests that backend shows scroll bottleneck rects

func (*Tab) OverlaySetShowViewportSizeOnResize

func (t *Tab) OverlaySetShowViewportSizeOnResize(show bool) (OverlaySetShowViewportSizeOnResizeReturns, error)

Paints viewport size upon main frame resize.

func (*Tab) PageAddCompilationCache

func (t *Tab) PageAddCompilationCache(url string, data string) (PageAddCompilationCacheReturns, error)
Seeds compilation cache for given url. Compilation cache does not survive

cross-process navigation.

func (*Tab) PageAddScriptToEvaluateOnLoad

func (t *Tab) PageAddScriptToEvaluateOnLoad(scriptSource string) (PageAddScriptToEvaluateOnLoadReturns, error)

Deprecated, please use addScriptToEvaluateOnNewDocument instead.

func (*Tab) PageAddScriptToEvaluateOnNewDocument

func (t *Tab) PageAddScriptToEvaluateOnNewDocument(source string, worldName string) (PageAddScriptToEvaluateOnNewDocumentReturns, error)

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

func (*Tab) PageBringToFront

func (t *Tab) PageBringToFront() (PageBringToFrontReturns, error)

Brings page to front (activates tab).

func (*Tab) PageCaptureScreenshot

func (t *Tab) PageCaptureScreenshot(format string, quality int, clip PageViewport, fromSurface bool) (PageCaptureScreenshotReturns, error)

Capture page screenshot.

func (*Tab) PageCaptureSnapshot

func (t *Tab) PageCaptureSnapshot(format string) (PageCaptureSnapshotReturns, error)
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 (*Tab) PageClearCompilationCache

func (t *Tab) PageClearCompilationCache() (PageClearCompilationCacheReturns, error)

Clears seeded compilation cache.

func (*Tab) PageClearDeviceMetricsOverride

func (t *Tab) PageClearDeviceMetricsOverride() (PageClearDeviceMetricsOverrideReturns, error)

Clears the overriden device metrics.

func (*Tab) PageClearDeviceOrientationOverride

func (t *Tab) PageClearDeviceOrientationOverride() (PageClearDeviceOrientationOverrideReturns, error)

Clears the overridden Device Orientation.

func (*Tab) PageClearGeolocationOverride

func (t *Tab) PageClearGeolocationOverride() (PageClearGeolocationOverrideReturns, error)

Clears the overriden Geolocation Position and Error.

func (*Tab) PageClose

func (t *Tab) PageClose() (PageCloseReturns, error)

Tries to close page, running its beforeunload hooks, if any.

func (*Tab) PageCrash

func (t *Tab) PageCrash() (PageCrashReturns, error)

Crashes renderer on the IO thread, generates minidumps.

func (*Tab) PageCreateIsolatedWorld

func (t *Tab) PageCreateIsolatedWorld(frameId PageFrameId, worldName string, grantUniveralAccess bool) (PageCreateIsolatedWorldReturns, error)

Creates an isolated world for the given frame.

func (*Tab) PageDeleteCookie

func (t *Tab) PageDeleteCookie(cookieName string, url string) (PageDeleteCookieReturns, error)

Deletes browser cookie with given name, domain and path.

func (*Tab) PageDisable

func (t *Tab) PageDisable() (PageDisableReturns, error)

Disables page domain notifications.

func (*Tab) PageEnable

func (t *Tab) PageEnable() (PageEnableReturns, error)

Enables page domain notifications.

func (*Tab) PageGenerateTestReport

func (t *Tab) PageGenerateTestReport(message string, group string) (PageGenerateTestReportReturns, error)

Generates a report for testing.

func (*Tab) PageGetAppManifest

func (t *Tab) PageGetAppManifest() (PageGetAppManifestReturns, error)

func (*Tab) PageGetCookies

func (t *Tab) PageGetCookies() (PageGetCookiesReturns, error)
Returns all browser cookies. Depending on the backend support, will return detailed cookie

information in the `cookies` field.

func (*Tab) PageGetFrameTree

func (t *Tab) PageGetFrameTree() (PageGetFrameTreeReturns, error)

Returns present frame tree structure.

func (*Tab) PageGetInstallabilityErrors

func (t *Tab) PageGetInstallabilityErrors() (PageGetInstallabilityErrorsReturns, error)

func (*Tab) PageGetLayoutMetrics

func (t *Tab) PageGetLayoutMetrics() (PageGetLayoutMetricsReturns, error)

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

func (*Tab) PageGetManifestIcons

func (t *Tab) PageGetManifestIcons() (PageGetManifestIconsReturns, error)

func (*Tab) PageGetNavigationHistory

func (t *Tab) PageGetNavigationHistory() (PageGetNavigationHistoryReturns, error)

Returns navigation history for the current page.

func (*Tab) PageGetResourceContent

func (t *Tab) PageGetResourceContent(frameId PageFrameId, url string) (PageGetResourceContentReturns, error)

Returns content of the given resource.

func (*Tab) PageGetResourceTree

func (t *Tab) PageGetResourceTree() (PageGetResourceTreeReturns, error)

Returns present frame / resource tree structure.

func (*Tab) PageHandleJavaScriptDialog

func (t *Tab) PageHandleJavaScriptDialog(accept bool, promptText string) (PageHandleJavaScriptDialogReturns, error)

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

func (*Tab) PageNavigate

func (t *Tab) PageNavigate(url string, referrer string, transitionType PageTransitionType, frameId PageFrameId, referrerPolicy PageReferrerPolicy) (PageNavigateReturns, error)

Navigates current page to the given URL.

func (*Tab) PageNavigateToHistoryEntry

func (t *Tab) PageNavigateToHistoryEntry(entryId int) (PageNavigateToHistoryEntryReturns, error)

Navigates current page to the given history entry.

func (*Tab) PagePrintToPDF

func (t *Tab) PagePrintToPDF(landscape bool, displayHeaderFooter bool, printBackground bool, scale float64, paperWidth float64, paperHeight float64, marginTop float64, marginBottom float64, marginLeft float64, marginRight float64, pageRanges string, ignoreInvalidPageRanges bool, headerTemplate string, footerTemplate string, preferCSSPageSize bool, transferMode string) (PagePrintToPDFReturns, error)

Print page as PDF.

func (*Tab) PageReload

func (t *Tab) PageReload(ignoreCache bool, scriptToEvaluateOnLoad string) (PageReloadReturns, error)

Reloads given page optionally ignoring the cache.

func (*Tab) PageRemoveScriptToEvaluateOnLoad

func (t *Tab) PageRemoveScriptToEvaluateOnLoad(identifier PageScriptIdentifier) (PageRemoveScriptToEvaluateOnLoadReturns, error)

Deprecated, please use removeScriptToEvaluateOnNewDocument instead.

func (*Tab) PageRemoveScriptToEvaluateOnNewDocument

func (t *Tab) PageRemoveScriptToEvaluateOnNewDocument(identifier PageScriptIdentifier) (PageRemoveScriptToEvaluateOnNewDocumentReturns, error)

Removes given script from the list.

func (*Tab) PageResetNavigationHistory

func (t *Tab) PageResetNavigationHistory() (PageResetNavigationHistoryReturns, error)

Resets navigation history for the current page.

func (*Tab) PageScreencastFrameAck

func (t *Tab) PageScreencastFrameAck(sessionId int) (PageScreencastFrameAckReturns, error)

Acknowledges that a screencast frame has been received by the frontend.

func (*Tab) PageSearchInResource

func (t *Tab) PageSearchInResource(frameId PageFrameId, url string, query string, caseSensitive bool, isRegex bool) (PageSearchInResourceReturns, error)

Searches for given string in resource content.

func (*Tab) PageSetAdBlockingEnabled

func (t *Tab) PageSetAdBlockingEnabled(enabled bool) (PageSetAdBlockingEnabledReturns, error)

Enable Chrome's experimental ad filter on all sites.

func (*Tab) PageSetBypassCSP

func (t *Tab) PageSetBypassCSP(enabled bool) (PageSetBypassCSPReturns, error)

Enable page Content Security Policy by-passing.

func (*Tab) PageSetDeviceMetricsOverride

func (t *Tab) PageSetDeviceMetricsOverride(width int, height int, deviceScaleFactor float64, mobile bool, scale float64, screenWidth int, screenHeight int, positionX int, positionY int, dontSetVisibleSize bool, screenOrientation EmulationScreenOrientation, viewport PageViewport) (PageSetDeviceMetricsOverrideReturns, error)
Overrides the values of device screen dimensions (window.screen.width, window.screen.height,

window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).

func (*Tab) PageSetDeviceOrientationOverride

func (t *Tab) PageSetDeviceOrientationOverride(alpha float64, beta float64, gamma float64) (PageSetDeviceOrientationOverrideReturns, error)

Overrides the Device Orientation.

func (*Tab) PageSetDocumentContent

func (t *Tab) PageSetDocumentContent(frameId PageFrameId, html string) (PageSetDocumentContentReturns, error)

Sets given markup as the document's HTML.

func (*Tab) PageSetDownloadBehavior

func (t *Tab) PageSetDownloadBehavior(behavior string, downloadPath string) (PageSetDownloadBehaviorReturns, error)

Set the behavior when downloading a file.

func (*Tab) PageSetFontFamilies

func (t *Tab) PageSetFontFamilies(fontFamilies PageFontFamilies) (PageSetFontFamiliesReturns, error)

Set generic font families.

func (*Tab) PageSetFontSizes

func (t *Tab) PageSetFontSizes(fontSizes PageFontSizes) (PageSetFontSizesReturns, error)

Set default font sizes.

func (*Tab) PageSetGeolocationOverride

func (t *Tab) PageSetGeolocationOverride(latitude float64, longitude float64, accuracy float64) (PageSetGeolocationOverrideReturns, error)
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position

unavailable.

func (*Tab) PageSetInterceptFileChooserDialog

func (t *Tab) PageSetInterceptFileChooserDialog(enabled bool) (PageSetInterceptFileChooserDialogReturns, error)
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 (*Tab) PageSetLifecycleEventsEnabled

func (t *Tab) PageSetLifecycleEventsEnabled(enabled bool) (PageSetLifecycleEventsEnabledReturns, error)

Controls whether page will emit lifecycle events.

func (*Tab) PageSetProduceCompilationCache

func (t *Tab) PageSetProduceCompilationCache(enabled bool) (PageSetProduceCompilationCacheReturns, error)

Forces compilation cache to be generated for every subresource script.

func (*Tab) PageSetTouchEmulationEnabled

func (t *Tab) PageSetTouchEmulationEnabled(enabled bool, configuration string) (PageSetTouchEmulationEnabledReturns, error)

Toggles mouse event-based touch event emulation.

func (*Tab) PageSetWebLifecycleState

func (t *Tab) PageSetWebLifecycleState(state string) (PageSetWebLifecycleStateReturns, error)
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 (*Tab) PageStartScreencast

func (t *Tab) PageStartScreencast(format string, quality int, maxWidth int, maxHeight int, everyNthFrame int) (PageStartScreencastReturns, error)

Starts sending each frame using the `screencastFrame` event.

func (*Tab) PageStopLoading

func (t *Tab) PageStopLoading() (PageStopLoadingReturns, error)

Force the page stop all navigations and pending resource fetches.

func (*Tab) PageStopScreencast

func (t *Tab) PageStopScreencast() (PageStopScreencastReturns, error)

Stops sending each frame in the `screencastFrame`.

func (*Tab) PageWaitForDebugger

func (t *Tab) PageWaitForDebugger() (PageWaitForDebuggerReturns, error)

Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

func (*Tab) PerformanceDisable

func (t *Tab) PerformanceDisable() (PerformanceDisableReturns, error)

Disable collecting and reporting metrics.

func (*Tab) PerformanceEnable

func (t *Tab) PerformanceEnable(timeDomain string) (PerformanceEnableReturns, error)

Enable collecting and reporting metrics.

func (*Tab) PerformanceGetMetrics

func (t *Tab) PerformanceGetMetrics() (PerformanceGetMetricsReturns, error)

Retrieve current values of run-time metrics.

func (*Tab) PerformanceSetTimeDomain

func (t *Tab) PerformanceSetTimeDomain(timeDomain string) (PerformanceSetTimeDomainReturns, error)
Sets time domain to use for collecting and reporting duration metrics.

Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.

func (*Tab) ProfilerDisable

func (t *Tab) ProfilerDisable() (ProfilerDisableReturns, error)

func (*Tab) ProfilerDisableCounters

func (t *Tab) ProfilerDisableCounters() (ProfilerDisableCountersReturns, error)

Disable counters collection.

func (*Tab) ProfilerDisableRuntimeCallStats

func (t *Tab) ProfilerDisableRuntimeCallStats() (ProfilerDisableRuntimeCallStatsReturns, error)

Disable run time call stats collection.

func (*Tab) ProfilerEnable

func (t *Tab) ProfilerEnable() (ProfilerEnableReturns, error)

func (*Tab) ProfilerEnableCounters

func (t *Tab) ProfilerEnableCounters() (ProfilerEnableCountersReturns, error)

Enable counters collection.

func (*Tab) ProfilerEnableRuntimeCallStats

func (t *Tab) ProfilerEnableRuntimeCallStats() (ProfilerEnableRuntimeCallStatsReturns, error)

Enable run time call stats collection.

func (*Tab) ProfilerGetBestEffortCoverage

func (t *Tab) ProfilerGetBestEffortCoverage() (ProfilerGetBestEffortCoverageReturns, error)
Collect coverage data for the current isolate. The coverage data may be incomplete due to

garbage collection.

func (*Tab) ProfilerGetCounters

func (t *Tab) ProfilerGetCounters() (ProfilerGetCountersReturns, error)

Retrieve counters.

func (*Tab) ProfilerGetRuntimeCallStats

func (t *Tab) ProfilerGetRuntimeCallStats() (ProfilerGetRuntimeCallStatsReturns, error)

Retrieve run time call stats.

func (*Tab) ProfilerSetSamplingInterval

func (t *Tab) ProfilerSetSamplingInterval(interval int) (ProfilerSetSamplingIntervalReturns, error)

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

func (*Tab) ProfilerStart

func (t *Tab) ProfilerStart() (ProfilerStartReturns, error)

func (*Tab) ProfilerStartPreciseCoverage

func (t *Tab) ProfilerStartPreciseCoverage(callCount bool, detailed bool, allowTriggeredUpdates bool) (ProfilerStartPreciseCoverageReturns, error)
Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code

coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.

func (*Tab) ProfilerStartTypeProfile

func (t *Tab) ProfilerStartTypeProfile() (ProfilerStartTypeProfileReturns, error)

Enable type profile.

func (*Tab) ProfilerStop

func (t *Tab) ProfilerStop() (ProfilerStopReturns, error)

func (*Tab) ProfilerStopPreciseCoverage

func (t *Tab) ProfilerStopPreciseCoverage() (ProfilerStopPreciseCoverageReturns, error)
Disable precise code coverage. Disabling releases unnecessary execution count records and allows

executing optimized code.

func (*Tab) ProfilerStopTypeProfile

func (t *Tab) ProfilerStopTypeProfile() (ProfilerStopTypeProfileReturns, error)

Disable type profile. Disabling releases type profile data collected so far.

func (*Tab) ProfilerTakePreciseCoverage

func (t *Tab) ProfilerTakePreciseCoverage() (ProfilerTakePreciseCoverageReturns, error)
Collect coverage data for the current isolate, and resets execution counters. Precise code

coverage needs to have started.

func (*Tab) ProfilerTakeTypeProfile

func (t *Tab) ProfilerTakeTypeProfile() (ProfilerTakeTypeProfileReturns, error)

Collect type profile.

func (*Tab) RuntimeAddBinding

func (t *Tab) RuntimeAddBinding(name string, executionContextId RuntimeExecutionContextId) (RuntimeAddBindingReturns, error)
If executionContextId is empty, adds binding with the given name on the

global objects of all inspected contexts, including those created later, bindings survive reloads. If executionContextId is specified, adds binding only on global object of given execution context. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

func (*Tab) RuntimeAwaitPromise

func (t *Tab) RuntimeAwaitPromise(promiseObjectId RuntimeRemoteObjectId, returnByValue bool, generatePreview bool) (RuntimeAwaitPromiseReturns, error)

Add handler to promise with given promise object id.

func (*Tab) RuntimeCallFunctionOn

func (t *Tab) RuntimeCallFunctionOn(functionDeclaration string, objectId RuntimeRemoteObjectId, arguments []RuntimeCallArgument, silent bool, returnByValue bool, generatePreview bool, userGesture bool, awaitPromise bool, executionContextId RuntimeExecutionContextId, objectGroup string) (RuntimeCallFunctionOnReturns, error)
Calls function with given declaration on the given object. Object group of the result is

inherited from the target object.

func (*Tab) RuntimeCompileScript

func (t *Tab) RuntimeCompileScript(expression string, sourceURL string, persistScript bool, executionContextId RuntimeExecutionContextId) (RuntimeCompileScriptReturns, error)

Compiles expression.

func (*Tab) RuntimeDisable

func (t *Tab) RuntimeDisable() (RuntimeDisableReturns, error)

Disables reporting of execution contexts creation.

func (*Tab) RuntimeDiscardConsoleEntries

func (t *Tab) RuntimeDiscardConsoleEntries() (RuntimeDiscardConsoleEntriesReturns, error)

Discards collected exceptions and console API calls.

func (*Tab) RuntimeEnable

func (t *Tab) RuntimeEnable() (RuntimeEnableReturns, error)
Enables reporting of execution contexts creation by means of `executionContextCreated` event.

When the reporting gets enabled the event will be sent immediately for each existing execution context.

func (*Tab) RuntimeEvaluate

func (t *Tab) RuntimeEvaluate(expression string, objectGroup string, includeCommandLineAPI bool, silent bool, contextId RuntimeExecutionContextId, returnByValue bool, generatePreview bool, userGesture bool, awaitPromise bool, throwOnSideEffect bool, timeout RuntimeTimeDelta, disableBreaks bool, replMode bool, allowUnsafeEvalBlockedByCSP bool) (RuntimeEvaluateReturns, error)

Evaluates expression on global object.

func (*Tab) RuntimeGetHeapUsage

func (t *Tab) RuntimeGetHeapUsage() (RuntimeGetHeapUsageReturns, error)
Returns the JavaScript heap usage.

It is the total usage of the corresponding isolate not scoped to a particular Runtime.

func (*Tab) RuntimeGetIsolateId

func (t *Tab) RuntimeGetIsolateId() (RuntimeGetIsolateIdReturns, error)

Returns the isolate id.

func (*Tab) RuntimeGetProperties

func (t *Tab) RuntimeGetProperties(objectId RuntimeRemoteObjectId, ownProperties bool, accessorPropertiesOnly bool, generatePreview bool) (RuntimeGetPropertiesReturns, error)
Returns properties of a given object. Object group of the result is inherited from the target

object.

func (*Tab) RuntimeGlobalLexicalScopeNames

func (t *Tab) RuntimeGlobalLexicalScopeNames(executionContextId RuntimeExecutionContextId) (RuntimeGlobalLexicalScopeNamesReturns, error)

Returns all let, const and class variables from global scope.

func (*Tab) RuntimeQueryObjects

func (t *Tab) RuntimeQueryObjects(protoTypeObjectId RuntimeRemoteObjectId, objectGroup string) (RuntimeQueryObjectsReturns, error)

func (*Tab) RuntimeReleaseObject

func (t *Tab) RuntimeReleaseObject(objectId RuntimeRemoteObjectId) (RuntimeReleaseObjectReturns, error)

Releases remote object with given id.

func (*Tab) RuntimeReleaseObjectGroup

func (t *Tab) RuntimeReleaseObjectGroup(objectGroup string) (RuntimeReleaseObjectGroupReturns, error)

Releases all remote objects that belong to a given group.

func (*Tab) RuntimeRemoveBinding

func (t *Tab) RuntimeRemoveBinding(name string) (RuntimeRemoveBindingReturns, error)
This method does not remove binding function from global object but

unsubscribes current runtime agent from Runtime.bindingCalled notifications.

func (*Tab) RuntimeRunIfWaitingForDebugger

func (t *Tab) RuntimeRunIfWaitingForDebugger() (RuntimeRunIfWaitingForDebuggerReturns, error)

Tells inspected instance to run if it was waiting for debugger to attach.

func (*Tab) RuntimeRunScript

func (t *Tab) RuntimeRunScript(scriptId RuntimeScriptId, executionContextId RuntimeExecutionContextId, objectGroup string, silent bool, includeCommandLineAPI bool, returnByValue bool, generatePreview bool, awaitPromise bool) (RuntimeRunScriptReturns, error)

Runs script with given id in a given context.

func (*Tab) RuntimeSetAsyncCallStackDepth

func (t *Tab) RuntimeSetAsyncCallStackDepth(maxDepth int) (RuntimeSetAsyncCallStackDepthReturns, error)

Enables or disables async call stacks tracking.

func (*Tab) RuntimeSetCustomObjectFormatterEnabled

func (t *Tab) RuntimeSetCustomObjectFormatterEnabled(enabled bool) (RuntimeSetCustomObjectFormatterEnabledReturns, error)

func (*Tab) RuntimeSetMaxCallStackSizeToCapture

func (t *Tab) RuntimeSetMaxCallStackSizeToCapture(size int) (RuntimeSetMaxCallStackSizeToCaptureReturns, error)

func (*Tab) RuntimeTerminateExecution

func (t *Tab) RuntimeTerminateExecution() (RuntimeTerminateExecutionReturns, error)
Terminate current or next JavaScript execution.

Will cancel the termination when the outer-most script execution ends.

func (*Tab) SchemaGetDomains

func (t *Tab) SchemaGetDomains() (SchemaGetDomainsReturns, error)

Returns supported domains.

func (*Tab) Screenshot

func (t *Tab) Screenshot(saveAs string) error

Screenshot captures page as png uses Page.captureScreenshot

func (*Tab) SecurityDisable

func (t *Tab) SecurityDisable() (SecurityDisableReturns, error)

Disables tracking security state changes.

func (*Tab) SecurityEnable

func (t *Tab) SecurityEnable() (SecurityEnableReturns, error)

Enables tracking security state changes.

func (*Tab) SecurityHandleCertificateError

func (t *Tab) SecurityHandleCertificateError(eventId int, action SecurityCertificateErrorAction) (SecurityHandleCertificateErrorReturns, error)

Handles a certificate error that fired a certificateError event.

func (*Tab) SecuritySetIgnoreCertificateErrors

func (t *Tab) SecuritySetIgnoreCertificateErrors(ignore bool) (SecuritySetIgnoreCertificateErrorsReturns, error)

Enable/disable whether all certificate errors should be ignored.

func (*Tab) SecuritySetOverrideCertificateErrors

func (t *Tab) SecuritySetOverrideCertificateErrors(override bool) (SecuritySetOverrideCertificateErrorsReturns, error)
Enable/disable overriding certificate errors. If enabled, all certificate error events need to

be handled by the DevTools client and should be answered with `handleCertificateError` commands.

func (*Tab) SendCommand

func (t *Tab) SendCommand(args map[string]interface{}) chan []byte

SendCommand builds a command and sends it { "id": 0, "method": "Page.navigate", params: {"url": "..."} }

func (*Tab) ServiceWorkerDeliverPushMessage

func (t *Tab) ServiceWorkerDeliverPushMessage(origin string, registrationId ServiceWorkerRegistrationID, data string) (ServiceWorkerDeliverPushMessageReturns, error)

func (*Tab) ServiceWorkerDisable

func (t *Tab) ServiceWorkerDisable() (ServiceWorkerDisableReturns, error)

func (*Tab) ServiceWorkerDispatchPeriodicSyncEvent

func (t *Tab) ServiceWorkerDispatchPeriodicSyncEvent(origin string, registrationId ServiceWorkerRegistrationID, tag string) (ServiceWorkerDispatchPeriodicSyncEventReturns, error)

func (*Tab) ServiceWorkerDispatchSyncEvent

func (t *Tab) ServiceWorkerDispatchSyncEvent(origin string, registrationId ServiceWorkerRegistrationID, tag string, lastChance bool) (ServiceWorkerDispatchSyncEventReturns, error)

func (*Tab) ServiceWorkerEnable

func (t *Tab) ServiceWorkerEnable() (ServiceWorkerEnableReturns, error)

func (*Tab) ServiceWorkerInspectWorker

func (t *Tab) ServiceWorkerInspectWorker(versionId string) (ServiceWorkerInspectWorkerReturns, error)

func (*Tab) ServiceWorkerSetForceUpdateOnPageLoad

func (t *Tab) ServiceWorkerSetForceUpdateOnPageLoad(forceUpdateOnPageLoad bool) (ServiceWorkerSetForceUpdateOnPageLoadReturns, error)

func (*Tab) ServiceWorkerSkipWaiting

func (t *Tab) ServiceWorkerSkipWaiting(scopeURL string) (ServiceWorkerSkipWaitingReturns, error)

func (*Tab) ServiceWorkerStartWorker

func (t *Tab) ServiceWorkerStartWorker(scopeURL string) (ServiceWorkerStartWorkerReturns, error)

func (*Tab) ServiceWorkerStopAllWorkers

func (t *Tab) ServiceWorkerStopAllWorkers() (ServiceWorkerStopAllWorkersReturns, error)

func (*Tab) ServiceWorkerStopWorker

func (t *Tab) ServiceWorkerStopWorker(versionId string) (ServiceWorkerStopWorkerReturns, error)

func (*Tab) ServiceWorkerUnregister

func (t *Tab) ServiceWorkerUnregister(scopeURL string) (ServiceWorkerUnregisterReturns, error)

func (*Tab) ServiceWorkerUpdateRegistration

func (t *Tab) ServiceWorkerUpdateRegistration(scopeURL string) (ServiceWorkerUpdateRegistrationReturns, error)

func (*Tab) SetRequestHeaders

func (t *Tab) SetRequestHeaders(ua string, lang string, platform string)

SetRequestHeaders override

func (*Tab) SetUserAgent

func (t *Tab) SetUserAgent(ua string)

SetUserAgent override

func (*Tab) Snapshot

func (t *Tab) Snapshot(saveAs string) error

Snapshot page in mhtml format uses Page.captureSnapshot

func (*Tab) StorageClearCookies

func (t *Tab) StorageClearCookies(browserContextId BrowserBrowserContextID) (StorageClearCookiesReturns, error)

Clears cookies.

func (*Tab) StorageClearDataForOrigin

func (t *Tab) StorageClearDataForOrigin(origin string, storageTypes string) (StorageClearDataForOriginReturns, error)

Clears storage for origin.

func (*Tab) StorageGetCookies

func (t *Tab) StorageGetCookies(browserContextId BrowserBrowserContextID) (StorageGetCookiesReturns, error)

Returns all browser cookies.

func (*Tab) StorageGetUsageAndQuota

func (t *Tab) StorageGetUsageAndQuota(origin string) (StorageGetUsageAndQuotaReturns, error)

Returns usage and quota in bytes.

func (*Tab) StorageSetCookies

func (t *Tab) StorageSetCookies(cookies []NetworkCookieParam, browserContextId BrowserBrowserContextID) (StorageSetCookiesReturns, error)

Sets given cookies.

func (*Tab) StorageTrackCacheStorageForOrigin

func (t *Tab) StorageTrackCacheStorageForOrigin(origin string) (StorageTrackCacheStorageForOriginReturns, error)

Registers origin to be notified when an update occurs to its cache storage list.

func (*Tab) StorageTrackIndexedDBForOrigin

func (t *Tab) StorageTrackIndexedDBForOrigin(origin string) (StorageTrackIndexedDBForOriginReturns, error)

Registers origin to be notified when an update occurs to its IndexedDB.

func (*Tab) StorageUntrackCacheStorageForOrigin

func (t *Tab) StorageUntrackCacheStorageForOrigin(origin string) (StorageUntrackCacheStorageForOriginReturns, error)

Unregisters origin from receiving notifications for cache storage.

func (*Tab) StorageUntrackIndexedDBForOrigin

func (t *Tab) StorageUntrackIndexedDBForOrigin(origin string) (StorageUntrackIndexedDBForOriginReturns, error)

Unregisters origin from receiving notifications for IndexedDB.

func (*Tab) SystemInfoGetInfo

func (t *Tab) SystemInfoGetInfo() (SystemInfoGetInfoReturns, error)

Returns information about the system.

func (*Tab) SystemInfoGetProcessInfo

func (t *Tab) SystemInfoGetProcessInfo() (SystemInfoGetProcessInfoReturns, error)

Returns information about all running processes.

func (*Tab) TargetActivateTarget

func (t *Tab) TargetActivateTarget(targetId TargetTargetID) (TargetActivateTargetReturns, error)

Activates (focuses) the target.

func (*Tab) TargetAttachToBrowserTarget

func (t *Tab) TargetAttachToBrowserTarget() (TargetAttachToBrowserTargetReturns, error)

Attaches to the browser target, only uses flat sessionId mode.

func (*Tab) TargetAttachToTarget

func (t *Tab) TargetAttachToTarget(targetId TargetTargetID, flatten bool) (TargetAttachToTargetReturns, error)

Attaches to the target with given id.

func (*Tab) TargetCloseTarget

func (t *Tab) TargetCloseTarget(targetId TargetTargetID) (TargetCloseTargetReturns, error)

Closes the target. If the target is a page that gets closed too.

func (*Tab) TargetCreateBrowserContext

func (t *Tab) TargetCreateBrowserContext(disposeOnDetach bool, proxyServer string, proxyBypassList string) (TargetCreateBrowserContextReturns, error)
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than

one.

func (*Tab) TargetCreateTarget

func (t *Tab) TargetCreateTarget(url string, width int, height int, browserContextId BrowserBrowserContextID, enableBeginFrameControl bool, newWindow bool, background bool) (TargetCreateTargetReturns, error)

Creates a new page.

func (*Tab) TargetDetachFromTarget

func (t *Tab) TargetDetachFromTarget(sessionId TargetSessionID, targetId TargetTargetID) (TargetDetachFromTargetReturns, error)

Detaches session with given id.

func (*Tab) TargetDisposeBrowserContext

func (t *Tab) TargetDisposeBrowserContext(browserContextId BrowserBrowserContextID) (TargetDisposeBrowserContextReturns, error)
Deletes a BrowserContext. All the belonging pages will be closed without calling their

beforeunload hooks.

func (*Tab) TargetExposeDevToolsProtocol

func (t *Tab) TargetExposeDevToolsProtocol(targetId TargetTargetID, bindingName string) (TargetExposeDevToolsProtocolReturns, error)
Inject object to the target's main frame that provides a communication

channel with browser target.

Injected object will be available as `window[bindingName]`.

The object has the follwing API: - `binding.send(json)` - a method to send messages over the remote debugging protocol - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.

func (*Tab) TargetGetBrowserContexts

func (t *Tab) TargetGetBrowserContexts() (TargetGetBrowserContextsReturns, error)

Returns all browser contexts created with `Target.createBrowserContext` method.

func (*Tab) TargetGetTargetInfo

func (t *Tab) TargetGetTargetInfo(targetId TargetTargetID) (TargetGetTargetInfoReturns, error)

Returns information about a target.

func (*Tab) TargetGetTargets

func (t *Tab) TargetGetTargets() (TargetGetTargetsReturns, error)

Retrieves a list of available targets.

func (*Tab) TargetSendMessageToTarget

func (t *Tab) TargetSendMessageToTarget(message string, sessionId TargetSessionID, targetId TargetTargetID) (TargetSendMessageToTargetReturns, error)
Sends protocol message over session with given id.

Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.

func (*Tab) TargetSetAutoAttach

func (t *Tab) TargetSetAutoAttach(autoAttach bool, waitForDebuggerOnStart bool, flatten bool) (TargetSetAutoAttachReturns, error)
Controls whether to automatically attach to new targets which are considered to be related to

this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.

func (*Tab) TargetSetDiscoverTargets

func (t *Tab) TargetSetDiscoverTargets(discover bool) (TargetSetDiscoverTargetsReturns, error)
Controls whether to discover available targets and notify via

`targetCreated/targetInfoChanged/targetDestroyed` events.

func (*Tab) TargetSetRemoteLocations

func (t *Tab) TargetSetRemoteLocations(locations []TargetRemoteLocation) (TargetSetRemoteLocationsReturns, error)
Enables target discovery for the specified locations, when `setDiscoverTargets` was set to

`true`.

func (*Tab) TetheringBind

func (t *Tab) TetheringBind(port int) (TetheringBindReturns, error)

Request browser port binding.

func (*Tab) TetheringUnbind

func (t *Tab) TetheringUnbind(port int) (TetheringUnbindReturns, error)

Request browser port unbinding.

func (*Tab) TracingEnd

func (t *Tab) TracingEnd() (TracingEndReturns, error)

Stop trace events collection.

func (*Tab) TracingGetCategories

func (t *Tab) TracingGetCategories() (TracingGetCategoriesReturns, error)

Gets supported tracing categories.

func (*Tab) TracingRecordClockSyncMarker

func (t *Tab) TracingRecordClockSyncMarker(syncId string) (TracingRecordClockSyncMarkerReturns, error)

Record a clock sync marker in the trace.

func (*Tab) TracingRequestMemoryDump

func (t *Tab) TracingRequestMemoryDump(deterministic bool) (TracingRequestMemoryDumpReturns, error)

Request a global memory dump.

func (*Tab) TracingStart

func (t *Tab) TracingStart(categories string, options string, bufferUsageReportingInterval float64, transferMode string, streamFormat TracingStreamFormat, streamCompression TracingStreamCompression, traceConfig TracingTraceConfig) (TracingStartReturns, error)

Start trace events collection.

func (*Tab) WaitForLoad

func (t *Tab) WaitForLoad(maxWait time.Duration)

WaitForLoad waits for a page to load up to given maximum pretty useless right now but we may improve it in the future

func (*Tab) WaitForNetworkIdle

func (t *Tab) WaitForNetworkIdle(d time.Duration)

WaitForNetworkIdle blocks until network is idle for d seconds relies on network events so Tab.NetworkEnable should be called first

func (*Tab) WebAudioDisable

func (t *Tab) WebAudioDisable() (WebAudioDisableReturns, error)

Disables the WebAudio domain.

func (*Tab) WebAudioEnable

func (t *Tab) WebAudioEnable() (WebAudioEnableReturns, error)

Enables the WebAudio domain and starts sending context lifetime events.

func (*Tab) WebAudioGetRealtimeData

func (t *Tab) WebAudioGetRealtimeData(contextId WebAudioGraphObjectId) (WebAudioGetRealtimeDataReturns, error)

Fetch the realtime data from the registered contexts.

func (*Tab) WebAuthnAddCredential

func (t *Tab) WebAuthnAddCredential(authenticatorId WebAuthnAuthenticatorId, credential WebAuthnCredential) (WebAuthnAddCredentialReturns, error)

Adds the credential to the specified authenticator.

func (*Tab) WebAuthnAddVirtualAuthenticator

func (t *Tab) WebAuthnAddVirtualAuthenticator(options WebAuthnVirtualAuthenticatorOptions) (WebAuthnAddVirtualAuthenticatorReturns, error)

Creates and adds a virtual authenticator.

func (*Tab) WebAuthnClearCredentials

func (t *Tab) WebAuthnClearCredentials(authenticatorId WebAuthnAuthenticatorId) (WebAuthnClearCredentialsReturns, error)

Clears all the credentials from the specified device.

func (*Tab) WebAuthnDisable

func (t *Tab) WebAuthnDisable() (WebAuthnDisableReturns, error)

Disable the WebAuthn domain.

func (*Tab) WebAuthnEnable

func (t *Tab) WebAuthnEnable() (WebAuthnEnableReturns, error)
Enable the WebAuthn domain and start intercepting credential storage and

retrieval with a virtual authenticator.

func (*Tab) WebAuthnGetCredential

func (t *Tab) WebAuthnGetCredential(authenticatorId WebAuthnAuthenticatorId, credentialId string) (WebAuthnGetCredentialReturns, error)
Returns a single credential stored in the given virtual authenticator that

matches the credential ID.

func (*Tab) WebAuthnGetCredentials

func (t *Tab) WebAuthnGetCredentials(authenticatorId WebAuthnAuthenticatorId) (WebAuthnGetCredentialsReturns, error)

Returns all the credentials stored in the given virtual authenticator.

func (*Tab) WebAuthnRemoveCredential

func (t *Tab) WebAuthnRemoveCredential(authenticatorId WebAuthnAuthenticatorId, credentialId string) (WebAuthnRemoveCredentialReturns, error)

Removes a credential from the authenticator.

func (*Tab) WebAuthnRemoveVirtualAuthenticator

func (t *Tab) WebAuthnRemoveVirtualAuthenticator(authenticatorId WebAuthnAuthenticatorId) (WebAuthnRemoveVirtualAuthenticatorReturns, error)

Removes the given authenticator.

func (*Tab) WebAuthnSetAutomaticPresenceSimulation

func (t *Tab) WebAuthnSetAutomaticPresenceSimulation(authenticatorId WebAuthnAuthenticatorId, enabled bool) (WebAuthnSetAutomaticPresenceSimulationReturns, error)
Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator.

The default is true.

func (*Tab) WebAuthnSetUserVerified

func (t *Tab) WebAuthnSetUserVerified(authenticatorId WebAuthnAuthenticatorId, isUserVerified bool) (WebAuthnSetUserVerifiedReturns, error)
Sets whether User Verification succeeds or fails for an authenticator.

The default is true.

type TabPool

type TabPool struct {
	// contains filtered or unexported fields
}

TabPool is a collection of tabs

func (*TabPool) Close

func (tp *TabPool) Close()

Close all tabs in a pool

func (*TabPool) Grab

func (tp *TabPool) Grab() *Tab

Grab from pool blocks if no tabs are available returns nil is pool was closed

func (*TabPool) Release

func (tp *TabPool) Release(tab *Tab)

Release to pool you should only release tabs that are members of the pool to avoid confusion you can release nil to cancel a Grab request

func (*TabPool) Wait

func (tp *TabPool) Wait()

Wait blocks until all Grab requests are met and the tabs have been released

type TargetActivateTargetReturns

type TargetActivateTargetReturns struct {
}

type TargetAttachToBrowserTargetReturns

type TargetAttachToBrowserTargetReturns struct {
	SessionId TargetSessionID
}

type TargetAttachToTargetReturns

type TargetAttachToTargetReturns struct {
	SessionId TargetSessionID
}

type TargetAttachedToTargetEvent

type TargetAttachedToTargetEvent struct {
	SessionId TargetSessionID

	TargetInfo TargetTargetInfo

	WaitingForDebugger bool
}

type TargetAttachedToTargetHandler

type TargetAttachedToTargetHandler func(ev TargetAttachedToTargetEvent)

type TargetCloseTargetReturns

type TargetCloseTargetReturns struct {
	Success bool
}

type TargetCreateBrowserContextReturns

type TargetCreateBrowserContextReturns struct {
	BrowserContextId BrowserBrowserContextID
}

type TargetCreateTargetReturns

type TargetCreateTargetReturns struct {
	TargetId TargetTargetID
}

type TargetDetachFromTargetReturns

type TargetDetachFromTargetReturns struct {
}

type TargetDetachedFromTargetEvent

type TargetDetachedFromTargetEvent struct {
	SessionId TargetSessionID

	TargetId TargetTargetID
}

type TargetDetachedFromTargetHandler

type TargetDetachedFromTargetHandler func(ev TargetDetachedFromTargetEvent)

type TargetDisposeBrowserContextReturns

type TargetDisposeBrowserContextReturns struct {
}

type TargetExposeDevToolsProtocolReturns

type TargetExposeDevToolsProtocolReturns struct {
}

type TargetGetBrowserContextsReturns

type TargetGetBrowserContextsReturns struct {
	BrowserContextIds []BrowserBrowserContextID
}

type TargetGetTargetInfoReturns

type TargetGetTargetInfoReturns struct {
	TargetInfo TargetTargetInfo
}

type TargetGetTargetsReturns

type TargetGetTargetsReturns struct {
	TargetInfos []TargetTargetInfo
}

type TargetReceivedMessageFromTargetEvent

type TargetReceivedMessageFromTargetEvent struct {
	SessionId TargetSessionID

	Message string

	TargetId TargetTargetID
}

type TargetReceivedMessageFromTargetHandler

type TargetReceivedMessageFromTargetHandler func(ev TargetReceivedMessageFromTargetEvent)

type TargetRemoteLocation

type TargetRemoteLocation map[string]interface{}

type TargetSendMessageToTargetReturns

type TargetSendMessageToTargetReturns struct {
}

type TargetSessionID

type TargetSessionID string

type TargetSetAutoAttachReturns

type TargetSetAutoAttachReturns struct {
}

type TargetSetDiscoverTargetsReturns

type TargetSetDiscoverTargetsReturns struct {
}

type TargetSetRemoteLocationsReturns

type TargetSetRemoteLocationsReturns struct {
}

type TargetTargetCrashedEvent

type TargetTargetCrashedEvent struct {
	TargetId TargetTargetID

	Status string

	ErrorCode int
}

type TargetTargetCrashedHandler

type TargetTargetCrashedHandler func(ev TargetTargetCrashedEvent)

type TargetTargetCreatedEvent

type TargetTargetCreatedEvent struct {
	TargetInfo TargetTargetInfo
}

type TargetTargetCreatedHandler

type TargetTargetCreatedHandler func(ev TargetTargetCreatedEvent)

type TargetTargetDestroyedEvent

type TargetTargetDestroyedEvent struct {
	TargetId TargetTargetID
}

type TargetTargetDestroyedHandler

type TargetTargetDestroyedHandler func(ev TargetTargetDestroyedEvent)

type TargetTargetID

type TargetTargetID string

type TargetTargetInfo

type TargetTargetInfo map[string]interface{}

type TargetTargetInfoChangedEvent

type TargetTargetInfoChangedEvent struct {
	TargetInfo TargetTargetInfo
}

type TargetTargetInfoChangedHandler

type TargetTargetInfoChangedHandler func(ev TargetTargetInfoChangedEvent)

type TetheringAcceptedEvent

type TetheringAcceptedEvent struct {
	Port int

	ConnectionId string
}

type TetheringAcceptedHandler

type TetheringAcceptedHandler func(ev TetheringAcceptedEvent)

type TetheringBindReturns

type TetheringBindReturns struct {
}

type TetheringUnbindReturns

type TetheringUnbindReturns struct {
}

type TracingBufferUsageEvent

type TracingBufferUsageEvent struct {
	PercentFull float64

	EventCount float64

	Value float64
}

type TracingBufferUsageHandler

type TracingBufferUsageHandler func(ev TracingBufferUsageEvent)

type TracingDataCollectedEvent

type TracingDataCollectedEvent struct {
	Value []map[string]interface{}
}

type TracingDataCollectedHandler

type TracingDataCollectedHandler func(ev TracingDataCollectedEvent)

type TracingEndReturns

type TracingEndReturns struct {
}

type TracingGetCategoriesReturns

type TracingGetCategoriesReturns struct {
	Categories []string
}

type TracingMemoryDumpConfig

type TracingMemoryDumpConfig map[string]interface{}

type TracingRecordClockSyncMarkerReturns

type TracingRecordClockSyncMarkerReturns struct {
}

type TracingRequestMemoryDumpReturns

type TracingRequestMemoryDumpReturns struct {
	DumpGuid string

	Success bool
}

type TracingStartReturns

type TracingStartReturns struct {
}

type TracingStreamCompression

type TracingStreamCompression string

type TracingStreamFormat

type TracingStreamFormat string

type TracingTraceConfig

type TracingTraceConfig map[string]interface{}

type TracingTracingCompleteEvent

type TracingTracingCompleteEvent struct {
	DataLossOccurred bool

	Stream IOStreamHandle

	TraceFormat TracingStreamFormat

	StreamCompression TracingStreamCompression
}

type TracingTracingCompleteHandler

type TracingTracingCompleteHandler func(ev TracingTracingCompleteEvent)

type Type

type Type struct {
	ID          string
	Description string
	Type        string
	Enum        []string
	Properties  []Property
}

Type of variable

type Version

type Version struct {
	Major string
	Minor string
}

Version of protocol

type WebAudioAudioListener

type WebAudioAudioListener map[string]interface{}

type WebAudioAudioListenerCreatedEvent

type WebAudioAudioListenerCreatedEvent struct {
	Listener WebAudioAudioListener
}

type WebAudioAudioListenerCreatedHandler

type WebAudioAudioListenerCreatedHandler func(ev WebAudioAudioListenerCreatedEvent)

type WebAudioAudioListenerWillBeDestroyedEvent

type WebAudioAudioListenerWillBeDestroyedEvent struct {
	ContextId WebAudioGraphObjectId

	ListenerId WebAudioGraphObjectId
}

type WebAudioAudioListenerWillBeDestroyedHandler

type WebAudioAudioListenerWillBeDestroyedHandler func(ev WebAudioAudioListenerWillBeDestroyedEvent)

type WebAudioAudioNode

type WebAudioAudioNode map[string]interface{}

type WebAudioAudioNodeCreatedEvent

type WebAudioAudioNodeCreatedEvent struct {
	Node WebAudioAudioNode
}

type WebAudioAudioNodeCreatedHandler

type WebAudioAudioNodeCreatedHandler func(ev WebAudioAudioNodeCreatedEvent)

type WebAudioAudioNodeWillBeDestroyedEvent

type WebAudioAudioNodeWillBeDestroyedEvent struct {
	ContextId WebAudioGraphObjectId

	NodeId WebAudioGraphObjectId
}

type WebAudioAudioNodeWillBeDestroyedHandler

type WebAudioAudioNodeWillBeDestroyedHandler func(ev WebAudioAudioNodeWillBeDestroyedEvent)

type WebAudioAudioParam

type WebAudioAudioParam map[string]interface{}

type WebAudioAudioParamCreatedEvent

type WebAudioAudioParamCreatedEvent struct {
	Param WebAudioAudioParam
}

type WebAudioAudioParamCreatedHandler

type WebAudioAudioParamCreatedHandler func(ev WebAudioAudioParamCreatedEvent)

type WebAudioAudioParamWillBeDestroyedEvent

type WebAudioAudioParamWillBeDestroyedEvent struct {
	ContextId WebAudioGraphObjectId

	NodeId WebAudioGraphObjectId

	ParamId WebAudioGraphObjectId
}

type WebAudioAudioParamWillBeDestroyedHandler

type WebAudioAudioParamWillBeDestroyedHandler func(ev WebAudioAudioParamWillBeDestroyedEvent)

type WebAudioAutomationRate

type WebAudioAutomationRate string

type WebAudioBaseAudioContext

type WebAudioBaseAudioContext map[string]interface{}

type WebAudioChannelCountMode

type WebAudioChannelCountMode string

type WebAudioChannelInterpretation

type WebAudioChannelInterpretation string

type WebAudioContextChangedEvent

type WebAudioContextChangedEvent struct {
	Context WebAudioBaseAudioContext
}

type WebAudioContextChangedHandler

type WebAudioContextChangedHandler func(ev WebAudioContextChangedEvent)

type WebAudioContextCreatedEvent

type WebAudioContextCreatedEvent struct {
	Context WebAudioBaseAudioContext
}

type WebAudioContextCreatedHandler

type WebAudioContextCreatedHandler func(ev WebAudioContextCreatedEvent)

type WebAudioContextRealtimeData

type WebAudioContextRealtimeData map[string]interface{}

type WebAudioContextState

type WebAudioContextState string

type WebAudioContextType

type WebAudioContextType string

type WebAudioContextWillBeDestroyedEvent

type WebAudioContextWillBeDestroyedEvent struct {
	ContextId WebAudioGraphObjectId
}

type WebAudioContextWillBeDestroyedHandler

type WebAudioContextWillBeDestroyedHandler func(ev WebAudioContextWillBeDestroyedEvent)

type WebAudioDisableReturns

type WebAudioDisableReturns struct {
}

type WebAudioEnableReturns

type WebAudioEnableReturns struct {
}

type WebAudioGetRealtimeDataReturns

type WebAudioGetRealtimeDataReturns struct {
	RealtimeData WebAudioContextRealtimeData
}

type WebAudioGraphObjectId

type WebAudioGraphObjectId string

type WebAudioNodeParamConnectedEvent

type WebAudioNodeParamConnectedEvent struct {
	ContextId WebAudioGraphObjectId

	SourceId WebAudioGraphObjectId

	DestinationId WebAudioGraphObjectId

	SourceOutputIndex float64
}

type WebAudioNodeParamConnectedHandler

type WebAudioNodeParamConnectedHandler func(ev WebAudioNodeParamConnectedEvent)

type WebAudioNodeParamDisconnectedEvent

type WebAudioNodeParamDisconnectedEvent struct {
	ContextId WebAudioGraphObjectId

	SourceId WebAudioGraphObjectId

	DestinationId WebAudioGraphObjectId

	SourceOutputIndex float64
}

type WebAudioNodeParamDisconnectedHandler

type WebAudioNodeParamDisconnectedHandler func(ev WebAudioNodeParamDisconnectedEvent)

type WebAudioNodeType

type WebAudioNodeType string

type WebAudioNodesConnectedEvent

type WebAudioNodesConnectedEvent struct {
	ContextId WebAudioGraphObjectId

	SourceId WebAudioGraphObjectId

	DestinationId WebAudioGraphObjectId

	SourceOutputIndex float64

	DestinationInputIndex float64
}

type WebAudioNodesConnectedHandler

type WebAudioNodesConnectedHandler func(ev WebAudioNodesConnectedEvent)

type WebAudioNodesDisconnectedEvent

type WebAudioNodesDisconnectedEvent struct {
	ContextId WebAudioGraphObjectId

	SourceId WebAudioGraphObjectId

	DestinationId WebAudioGraphObjectId

	SourceOutputIndex float64

	DestinationInputIndex float64
}

type WebAudioNodesDisconnectedHandler

type WebAudioNodesDisconnectedHandler func(ev WebAudioNodesDisconnectedEvent)

type WebAudioParamType

type WebAudioParamType string

type WebAuthnAddCredentialReturns

type WebAuthnAddCredentialReturns struct {
}

type WebAuthnAddVirtualAuthenticatorReturns

type WebAuthnAddVirtualAuthenticatorReturns struct {
	AuthenticatorId WebAuthnAuthenticatorId
}

type WebAuthnAuthenticatorId

type WebAuthnAuthenticatorId string

type WebAuthnAuthenticatorProtocol

type WebAuthnAuthenticatorProtocol string

type WebAuthnAuthenticatorTransport

type WebAuthnAuthenticatorTransport string

type WebAuthnClearCredentialsReturns

type WebAuthnClearCredentialsReturns struct {
}

type WebAuthnCredential

type WebAuthnCredential map[string]interface{}

type WebAuthnDisableReturns

type WebAuthnDisableReturns struct {
}

type WebAuthnEnableReturns

type WebAuthnEnableReturns struct {
}

type WebAuthnGetCredentialReturns

type WebAuthnGetCredentialReturns struct {
	Credential WebAuthnCredential
}

type WebAuthnGetCredentialsReturns

type WebAuthnGetCredentialsReturns struct {
	Credentials []WebAuthnCredential
}

type WebAuthnRemoveCredentialReturns

type WebAuthnRemoveCredentialReturns struct {
}

type WebAuthnRemoveVirtualAuthenticatorReturns

type WebAuthnRemoveVirtualAuthenticatorReturns struct {
}

type WebAuthnSetAutomaticPresenceSimulationReturns

type WebAuthnSetAutomaticPresenceSimulationReturns struct {
}

type WebAuthnSetUserVerifiedReturns

type WebAuthnSetUserVerifiedReturns struct {
}

type WebAuthnVirtualAuthenticatorOptions

type WebAuthnVirtualAuthenticatorOptions map[string]interface{}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL