Documentation ¶
Overview ¶
Package proto is a lib to encode/decode the data of the cdp protocol.
Index ¶
- Constants
- func GetType(methodName string) reflect.Type
- func ParseMethodName(method string) (domain, name string)
- func PatternToReg(pattern string) string
- type AccessibilityAXNode
- type AccessibilityAXNodeID
- type AccessibilityAXProperty
- type AccessibilityAXPropertyName
- type AccessibilityAXRelatedNode
- type AccessibilityAXValue
- type AccessibilityAXValueNativeSourceType
- type AccessibilityAXValueSource
- type AccessibilityAXValueSourceType
- type AccessibilityAXValueType
- type AccessibilityDisable
- type AccessibilityEnable
- type AccessibilityGetAXNodeAndAncestors
- type AccessibilityGetAXNodeAndAncestorsResult
- type AccessibilityGetChildAXNodes
- type AccessibilityGetChildAXNodesResult
- type AccessibilityGetFullAXTree
- type AccessibilityGetFullAXTreeResult
- type AccessibilityGetPartialAXTree
- type AccessibilityGetPartialAXTreeResult
- type AccessibilityGetRootAXNode
- type AccessibilityGetRootAXNodeResult
- type AccessibilityLoadComplete
- type AccessibilityNodesUpdated
- type AccessibilityQueryAXTree
- type AccessibilityQueryAXTreeResult
- type AnimationAnimation
- type AnimationAnimationCanceled
- type AnimationAnimationCreated
- type AnimationAnimationEffect
- type AnimationAnimationStarted
- type AnimationAnimationType
- type AnimationAnimationUpdated
- type AnimationDisable
- type AnimationEnable
- type AnimationGetCurrentTime
- type AnimationGetCurrentTimeResult
- type AnimationGetPlaybackRate
- type AnimationGetPlaybackRateResult
- type AnimationKeyframeStyle
- type AnimationKeyframesRule
- type AnimationReleaseAnimations
- type AnimationResolveAnimation
- type AnimationResolveAnimationResult
- type AnimationSeekAnimations
- type AnimationSetPaused
- type AnimationSetPlaybackRate
- type AnimationSetTiming
- type AnimationViewOrScrollTimeline
- type AuditsAffectedCookie
- type AuditsAffectedFrame
- type AuditsAffectedRequest
- type AuditsAttributionReportingIssueDetails
- type AuditsAttributionReportingIssueType
- type AuditsBlockedByResponseIssueDetails
- type AuditsBlockedByResponseReason
- type AuditsBounceTrackingIssueDetails
- type AuditsCheckContrast
- type AuditsCheckFormsIssues
- type AuditsCheckFormsIssuesResult
- type AuditsClientHintIssueDetails
- type AuditsClientHintIssueReason
- type AuditsContentSecurityPolicyIssueDetails
- type AuditsContentSecurityPolicyViolationType
- type AuditsCookieDeprecationMetadataIssueDetails
- type AuditsCookieExclusionReason
- type AuditsCookieIssueDetails
- type AuditsCookieOperation
- type AuditsCookieWarningReason
- type AuditsCorsIssueDetails
- type AuditsDeprecationIssueDetails
- type AuditsDisable
- type AuditsEnable
- type AuditsFailedRequestInfo
- type AuditsFederatedAuthRequestIssueDetails
- type AuditsFederatedAuthRequestIssueReason
- type AuditsFederatedAuthUserInfoRequestIssueDetails
- type AuditsFederatedAuthUserInfoRequestIssueReason
- type AuditsGenericIssueDetails
- type AuditsGenericIssueErrorType
- type AuditsGetEncodedResponse
- type AuditsGetEncodedResponseEncoding
- type AuditsGetEncodedResponseResult
- type AuditsHeavyAdIssueDetails
- type AuditsHeavyAdReason
- type AuditsHeavyAdResolutionStatus
- type AuditsInspectorIssue
- type AuditsInspectorIssueCode
- type AuditsInspectorIssueDetails
- type AuditsIssueAdded
- type AuditsIssueID
- type AuditsLowTextContrastIssueDetails
- type AuditsMixedContentIssueDetails
- type AuditsMixedContentResolutionStatus
- type AuditsMixedContentResourceType
- type AuditsNavigatorUserAgentIssueDetails
- type AuditsPropertyRuleIssueDetails
- type AuditsPropertyRuleIssueReason
- type AuditsQuirksModeIssueDetails
- type AuditsSharedArrayBufferIssueDetails
- type AuditsSharedArrayBufferIssueType
- type AuditsSharedDictionaryError
- type AuditsSharedDictionaryIssueDetails
- type AuditsSourceCodeLocation
- type AuditsStyleSheetLoadingIssueReason
- type AuditsStylesheetLoadingIssueDetails
- type AutofillAddress
- type AutofillAddressField
- type AutofillAddressFields
- type AutofillAddressFormFilled
- type AutofillAddressUI
- type AutofillCreditCard
- type AutofillDisable
- type AutofillEnable
- type AutofillFilledField
- type AutofillFillingStrategy
- type AutofillSetAddresses
- type AutofillTrigger
- type BackgroundServiceBackgroundServiceEvent
- type BackgroundServiceBackgroundServiceEventReceived
- type BackgroundServiceClearEvents
- type BackgroundServiceEventMetadata
- type BackgroundServiceRecordingStateChanged
- type BackgroundServiceServiceName
- type BackgroundServiceSetRecording
- type BackgroundServiceStartObserving
- type BackgroundServiceStopObserving
- type BrowserAddPrivacySandboxEnrollmentOverride
- type BrowserBounds
- type BrowserBrowserCommandID
- type BrowserBrowserContextID
- type BrowserBucket
- type BrowserCancelDownload
- type BrowserClose
- type BrowserCrash
- type BrowserCrashGpuProcess
- type BrowserDownloadProgress
- type BrowserDownloadProgressState
- type BrowserDownloadWillBegin
- type BrowserExecuteBrowserCommand
- type BrowserGetBrowserCommandLine
- type BrowserGetBrowserCommandLineResult
- type BrowserGetHistogram
- type BrowserGetHistogramResult
- type BrowserGetHistograms
- type BrowserGetHistogramsResult
- type BrowserGetVersion
- type BrowserGetVersionResult
- type BrowserGetWindowBounds
- type BrowserGetWindowBoundsResult
- type BrowserGetWindowForTarget
- type BrowserGetWindowForTargetResult
- type BrowserGrantPermissions
- type BrowserHistogram
- type BrowserPermissionDescriptor
- type BrowserPermissionSetting
- type BrowserPermissionType
- type BrowserResetPermissions
- type BrowserSetDockTile
- type BrowserSetDownloadBehavior
- type BrowserSetDownloadBehaviorBehavior
- type BrowserSetPermission
- type BrowserSetWindowBounds
- type BrowserWindowID
- type BrowserWindowState
- type CSSAddRule
- type CSSAddRuleResult
- type CSSCSSComputedStyleProperty
- type CSSCSSContainerQuery
- type CSSCSSFontPaletteValuesRule
- type CSSCSSKeyframeRule
- type CSSCSSKeyframesRule
- type CSSCSSLayer
- type CSSCSSLayerData
- type CSSCSSMedia
- type CSSCSSMediaSource
- type CSSCSSPositionFallbackRule
- type CSSCSSPositionTryRule
- type CSSCSSProperty
- type CSSCSSPropertyRegistration
- type CSSCSSPropertyRule
- type CSSCSSRule
- type CSSCSSRuleType
- type CSSCSSScope
- type CSSCSSStyle
- type CSSCSSStyleSheetHeader
- type CSSCSSSupports
- type CSSCSSTryRule
- type CSSCollectClassNames
- type CSSCollectClassNamesResult
- type CSSCreateStyleSheet
- type CSSCreateStyleSheetResult
- type CSSDisable
- type CSSEnable
- type CSSFontFace
- type CSSFontVariationAxis
- type CSSFontsUpdated
- type CSSForcePseudoState
- type CSSGetBackgroundColors
- type CSSGetBackgroundColorsResult
- type CSSGetComputedStyleForNode
- type CSSGetComputedStyleForNodeResult
- type CSSGetInlineStylesForNode
- type CSSGetInlineStylesForNodeResult
- type CSSGetLayersForNode
- type CSSGetLayersForNodeResult
- type CSSGetLocationForSelector
- type CSSGetLocationForSelectorResult
- type CSSGetMatchedStylesForNode
- type CSSGetMatchedStylesForNodeResult
- type CSSGetMediaQueries
- type CSSGetMediaQueriesResult
- type CSSGetPlatformFontsForNode
- type CSSGetPlatformFontsForNodeResult
- type CSSGetStyleSheetText
- type CSSGetStyleSheetTextResult
- type CSSInheritedPseudoElementMatches
- type CSSInheritedStyleEntry
- type CSSMediaQuery
- type CSSMediaQueryExpression
- type CSSMediaQueryResultChanged
- type CSSPlatformFontUsage
- type CSSPseudoElementMatches
- type CSSRuleMatch
- type CSSRuleUsage
- type CSSSelectorList
- type CSSSetContainerQueryText
- type CSSSetContainerQueryTextResult
- type CSSSetEffectivePropertyValueForNode
- type CSSSetKeyframeKey
- type CSSSetKeyframeKeyResult
- type CSSSetLocalFontsEnabled
- type CSSSetMediaText
- type CSSSetMediaTextResult
- type CSSSetPropertyRulePropertyName
- type CSSSetPropertyRulePropertyNameResult
- type CSSSetRuleSelector
- type CSSSetRuleSelectorResult
- type CSSSetScopeText
- type CSSSetScopeTextResult
- type CSSSetStyleSheetText
- type CSSSetStyleSheetTextResult
- type CSSSetStyleTexts
- type CSSSetStyleTextsResult
- type CSSSetSupportsText
- type CSSSetSupportsTextResult
- type CSSShorthandEntry
- type CSSSourceRange
- type CSSSpecificity
- type CSSStartRuleUsageTracking
- type CSSStopRuleUsageTracking
- type CSSStopRuleUsageTrackingResult
- type CSSStyleDeclarationEdit
- type CSSStyleSheetAdded
- type CSSStyleSheetChanged
- type CSSStyleSheetID
- type CSSStyleSheetOrigin
- type CSSStyleSheetRemoved
- type CSSTakeComputedStyleUpdates
- type CSSTakeComputedStyleUpdatesResult
- type CSSTakeCoverageDelta
- type CSSTakeCoverageDeltaResult
- type CSSTrackComputedStyleUpdates
- type CSSValue
- type CacheStorageCache
- type CacheStorageCacheID
- type CacheStorageCachedResponse
- type CacheStorageCachedResponseType
- type CacheStorageDataEntry
- type CacheStorageDeleteCache
- type CacheStorageDeleteEntry
- type CacheStorageHeader
- type CacheStorageRequestCacheNames
- type CacheStorageRequestCacheNamesResult
- type CacheStorageRequestCachedResponse
- type CacheStorageRequestCachedResponseResult
- type CacheStorageRequestEntries
- type CacheStorageRequestEntriesResult
- type CastDisable
- type CastEnable
- type CastIssueUpdated
- type CastSetSinkToUse
- type CastSink
- type CastSinksUpdated
- type CastStartDesktopMirroring
- type CastStartTabMirroring
- type CastStopCasting
- type Client
- type ConsoleClearMessages
- type ConsoleConsoleMessage
- type ConsoleConsoleMessageLevel
- type ConsoleConsoleMessageSource
- type ConsoleDisable
- type ConsoleEnable
- type ConsoleMessageAdded
- type Contextable
- type DOMAttributeModified
- type DOMAttributeRemoved
- type DOMBackendNode
- type DOMBackendNodeID
- type DOMBoxModel
- type DOMCSSComputedStyleProperty
- type DOMCharacterDataModified
- type DOMChildNodeCountUpdated
- type DOMChildNodeInserted
- type DOMChildNodeRemoved
- type DOMCollectClassNamesFromSubtree
- type DOMCollectClassNamesFromSubtreeResult
- type DOMCompatibilityMode
- type DOMCopyTo
- type DOMCopyToResult
- type DOMDebuggerCSPViolationType
- type DOMDebuggerDOMBreakpointType
- type DOMDebuggerEventListener
- type DOMDebuggerGetEventListeners
- type DOMDebuggerGetEventListenersResult
- type DOMDebuggerRemoveDOMBreakpoint
- type DOMDebuggerRemoveEventListenerBreakpoint
- type DOMDebuggerRemoveInstrumentationBreakpoint
- type DOMDebuggerRemoveXHRBreakpoint
- type DOMDebuggerSetBreakOnCSPViolation
- type DOMDebuggerSetDOMBreakpoint
- type DOMDebuggerSetEventListenerBreakpoint
- type DOMDebuggerSetInstrumentationBreakpoint
- type DOMDebuggerSetXHRBreakpoint
- type DOMDescribeNode
- type DOMDescribeNodeResult
- type DOMDisable
- type DOMDiscardSearchResults
- type DOMDistributedNodesUpdated
- type DOMDocumentUpdated
- type DOMEnable
- type DOMEnableIncludeWhitespace
- type DOMFocus
- type DOMGetAnchorElement
- type DOMGetAnchorElementResult
- type DOMGetAttributes
- type DOMGetAttributesResult
- type DOMGetBoxModel
- type DOMGetBoxModelResult
- type DOMGetContainerForNode
- type DOMGetContainerForNodeResult
- type DOMGetContentQuads
- type DOMGetContentQuadsResult
- type DOMGetDocument
- type DOMGetDocumentResult
- type DOMGetElementByRelation
- type DOMGetElementByRelationRelation
- type DOMGetElementByRelationResult
- type DOMGetFileInfo
- type DOMGetFileInfoResult
- type DOMGetFlattenedDocument
- type DOMGetFlattenedDocumentResult
- type DOMGetFrameOwner
- type DOMGetFrameOwnerResult
- type DOMGetNodeForLocation
- type DOMGetNodeForLocationResult
- type DOMGetNodeStackTraces
- type DOMGetNodeStackTracesResult
- type DOMGetNodesForSubtreeByStyle
- type DOMGetNodesForSubtreeByStyleResult
- type DOMGetOuterHTML
- type DOMGetOuterHTMLResult
- type DOMGetQueryingDescendantsForContainer
- type DOMGetQueryingDescendantsForContainerResult
- type DOMGetRelayoutBoundary
- type DOMGetRelayoutBoundaryResult
- type DOMGetSearchResults
- type DOMGetSearchResultsResult
- type DOMGetTopLayerElements
- type DOMGetTopLayerElementsResult
- type DOMHideHighlight
- type DOMHighlightNode
- type DOMHighlightRect
- type DOMInlineStyleInvalidated
- type DOMLogicalAxes
- type DOMMarkUndoableState
- type DOMMoveTo
- type DOMMoveToResult
- type DOMNode
- type DOMNodeID
- type DOMPerformSearch
- type DOMPerformSearchResult
- type DOMPhysicalAxes
- type DOMPseudoElementAdded
- type DOMPseudoElementRemoved
- type DOMPseudoType
- type DOMPushNodeByPathToFrontend
- type DOMPushNodeByPathToFrontendResult
- type DOMPushNodesByBackendIDsToFrontend
- type DOMPushNodesByBackendIDsToFrontendResult
- type DOMQuad
- type DOMQuerySelector
- type DOMQuerySelectorAll
- type DOMQuerySelectorAllResult
- type DOMQuerySelectorResult
- type DOMRGBA
- type DOMRect
- type DOMRedo
- type DOMRemoveAttribute
- type DOMRemoveNode
- type DOMRequestChildNodes
- type DOMRequestNode
- type DOMRequestNodeResult
- type DOMResolveNode
- type DOMResolveNodeResult
- type DOMScrollIntoViewIfNeeded
- type DOMScrollOrientation
- type DOMSetAttributeValue
- type DOMSetAttributesAsText
- type DOMSetChildNodes
- type DOMSetFileInputFiles
- type DOMSetInspectedNode
- type DOMSetNodeName
- type DOMSetNodeNameResult
- type DOMSetNodeStackTracesEnabled
- type DOMSetNodeValue
- type DOMSetOuterHTML
- type DOMShadowRootPopped
- type DOMShadowRootPushed
- type DOMShadowRootType
- type DOMShapeOutsideInfo
- type DOMSnapshotArrayOfStrings
- type DOMSnapshotCaptureSnapshot
- type DOMSnapshotCaptureSnapshotResult
- type DOMSnapshotComputedStyle
- type DOMSnapshotDOMNode
- type DOMSnapshotDisable
- type DOMSnapshotDocumentSnapshot
- type DOMSnapshotEnable
- type DOMSnapshotGetSnapshot
- type DOMSnapshotGetSnapshotResult
- type DOMSnapshotInlineTextBox
- type DOMSnapshotLayoutTreeNode
- type DOMSnapshotLayoutTreeSnapshot
- type DOMSnapshotNameValue
- type DOMSnapshotNodeTreeSnapshot
- type DOMSnapshotRareBooleanData
- type DOMSnapshotRareIntegerData
- type DOMSnapshotRareStringData
- type DOMSnapshotRectangle
- type DOMSnapshotStringIndex
- type DOMSnapshotTextBoxSnapshot
- type DOMStorageClear
- type DOMStorageDisable
- type DOMStorageDomStorageItemAdded
- type DOMStorageDomStorageItemRemoved
- type DOMStorageDomStorageItemUpdated
- type DOMStorageDomStorageItemsCleared
- type DOMStorageEnable
- type DOMStorageGetDOMStorageItems
- type DOMStorageGetDOMStorageItemsResult
- type DOMStorageItem
- type DOMStorageRemoveDOMStorageItem
- type DOMStorageSerializedStorageKey
- type DOMStorageSetDOMStorageItem
- type DOMStorageStorageID
- type DOMTopLayerElementsUpdated
- type DOMUndo
- type DatabaseAddDatabase
- type DatabaseDatabase
- type DatabaseDatabaseID
- type DatabaseDisable
- type DatabaseEnable
- type DatabaseError
- type DatabaseExecuteSQL
- type DatabaseExecuteSQLResult
- type DatabaseGetDatabaseTableNames
- type DatabaseGetDatabaseTableNamesResult
- type DebuggerBreakLocation
- type DebuggerBreakLocationType
- type DebuggerBreakpointID
- type DebuggerBreakpointResolved
- type DebuggerCallFrame
- type DebuggerCallFrameID
- type DebuggerContinueToLocation
- type DebuggerContinueToLocationTargetCallFrames
- type DebuggerDebugSymbols
- type DebuggerDebugSymbolsType
- type DebuggerDisable
- type DebuggerDisassembleWasmModule
- type DebuggerDisassembleWasmModuleResult
- type DebuggerEnable
- type DebuggerEnableResult
- type DebuggerEvaluateOnCallFrame
- type DebuggerEvaluateOnCallFrameResult
- type DebuggerGetPossibleBreakpoints
- type DebuggerGetPossibleBreakpointsResult
- type DebuggerGetScriptSource
- type DebuggerGetScriptSourceResult
- type DebuggerGetStackTrace
- type DebuggerGetStackTraceResult
- type DebuggerGetWasmBytecode
- type DebuggerGetWasmBytecodeResult
- type DebuggerLocation
- type DebuggerLocationRange
- type DebuggerNextWasmDisassemblyChunk
- type DebuggerNextWasmDisassemblyChunkResult
- type DebuggerPause
- type DebuggerPauseOnAsyncCall
- type DebuggerPaused
- type DebuggerPausedReason
- type DebuggerRemoveBreakpoint
- type DebuggerRestartFrame
- type DebuggerRestartFrameMode
- type DebuggerRestartFrameResult
- type DebuggerResume
- type DebuggerResumed
- type DebuggerScope
- type DebuggerScopeType
- type DebuggerScriptFailedToParse
- type DebuggerScriptLanguage
- type DebuggerScriptParsed
- type DebuggerScriptPosition
- type DebuggerSearchInContent
- type DebuggerSearchInContentResult
- type DebuggerSearchMatch
- type DebuggerSetAsyncCallStackDepth
- type DebuggerSetBlackboxPatterns
- type DebuggerSetBlackboxedRanges
- type DebuggerSetBreakpoint
- type DebuggerSetBreakpointByURL
- type DebuggerSetBreakpointByURLResult
- type DebuggerSetBreakpointOnFunctionCall
- type DebuggerSetBreakpointOnFunctionCallResult
- type DebuggerSetBreakpointResult
- type DebuggerSetBreakpointsActive
- type DebuggerSetInstrumentationBreakpoint
- type DebuggerSetInstrumentationBreakpointInstrumentation
- type DebuggerSetInstrumentationBreakpointResult
- type DebuggerSetPauseOnExceptions
- type DebuggerSetPauseOnExceptionsState
- type DebuggerSetReturnValue
- type DebuggerSetScriptSource
- type DebuggerSetScriptSourceResult
- type DebuggerSetScriptSourceResultStatus
- type DebuggerSetSkipAllPauses
- type DebuggerSetVariableValue
- type DebuggerStepInto
- type DebuggerStepOut
- type DebuggerStepOver
- type DebuggerWasmDisassemblyChunk
- type DeviceAccessCancelPrompt
- type DeviceAccessDeviceID
- type DeviceAccessDeviceRequestPrompted
- type DeviceAccessDisable
- type DeviceAccessEnable
- type DeviceAccessPromptDevice
- type DeviceAccessRequestID
- type DeviceAccessSelectPrompt
- type DeviceOrientationClearDeviceOrientationOverride
- type DeviceOrientationSetDeviceOrientationOverride
- type EmulationCanEmulate
- type EmulationCanEmulateResult
- type EmulationClearDeviceMetricsOverride
- type EmulationClearDevicePostureOverride
- type EmulationClearGeolocationOverride
- type EmulationClearIdleOverride
- type EmulationDevicePosture
- type EmulationDevicePostureType
- type EmulationDisabledImageType
- type EmulationDisplayFeature
- type EmulationDisplayFeatureOrientation
- type EmulationGetOverriddenSensorInformation
- type EmulationGetOverriddenSensorInformationResult
- type EmulationMediaFeature
- type EmulationResetPageScaleFactor
- type EmulationScreenOrientation
- type EmulationScreenOrientationType
- type EmulationSensorMetadata
- type EmulationSensorReading
- type EmulationSensorReadingQuaternion
- type EmulationSensorReadingSingle
- type EmulationSensorReadingXYZ
- type EmulationSensorType
- type EmulationSetAutoDarkModeOverride
- type EmulationSetAutomationOverride
- type EmulationSetCPUThrottlingRate
- type EmulationSetDefaultBackgroundColorOverride
- type EmulationSetDeviceMetricsOverride
- type EmulationSetDevicePostureOverride
- type EmulationSetDisabledImageTypes
- type EmulationSetDocumentCookieDisabled
- type EmulationSetEmitTouchEventsForMouse
- type EmulationSetEmitTouchEventsForMouseConfiguration
- type EmulationSetEmulatedMedia
- type EmulationSetEmulatedVisionDeficiency
- type EmulationSetEmulatedVisionDeficiencyType
- type EmulationSetFocusEmulationEnabled
- type EmulationSetGeolocationOverride
- type EmulationSetHardwareConcurrencyOverride
- type EmulationSetIdleOverride
- type EmulationSetLocaleOverride
- type EmulationSetNavigatorOverrides
- type EmulationSetPageScaleFactor
- type EmulationSetScriptExecutionDisabled
- type EmulationSetScrollbarsHidden
- type EmulationSetSensorOverrideEnabled
- type EmulationSetSensorOverrideReadings
- type EmulationSetTimezoneOverride
- type EmulationSetTouchEmulationEnabled
- type EmulationSetUserAgentOverride
- type EmulationSetVirtualTimePolicy
- type EmulationSetVirtualTimePolicyResult
- type EmulationSetVisibleSize
- type EmulationUserAgentBrandVersion
- type EmulationUserAgentMetadata
- type EmulationVirtualTimeBudgetExpired
- type EmulationVirtualTimePolicy
- type Event
- type EventBreakpointsDisable
- type EventBreakpointsRemoveInstrumentationBreakpoint
- type EventBreakpointsSetInstrumentationBreakpoint
- type ExtensionsLoadUnpacked
- type ExtensionsLoadUnpackedResult
- type FedCmAccount
- type FedCmAccountURLType
- type FedCmClickDialogButton
- type FedCmDialogButton
- type FedCmDialogClosed
- type FedCmDialogShown
- type FedCmDialogType
- type FedCmDisable
- type FedCmDismissDialog
- type FedCmEnable
- type FedCmLoginState
- type FedCmOpenURL
- type FedCmResetCooldown
- type FedCmSelectAccount
- type FetchAuthChallenge
- type FetchAuthChallengeResponse
- type FetchAuthChallengeResponseResponse
- type FetchAuthChallengeSource
- type FetchAuthRequired
- type FetchContinueRequest
- type FetchContinueResponse
- type FetchContinueWithAuth
- type FetchDisable
- type FetchEnable
- type FetchFailRequest
- type FetchFulfillRequest
- type FetchGetResponseBody
- type FetchGetResponseBodyResult
- type FetchHeaderEntry
- type FetchRequestID
- type FetchRequestPattern
- type FetchRequestPaused
- type FetchRequestStage
- type FetchTakeResponseBodyAsStream
- type FetchTakeResponseBodyAsStreamResult
- type HeadlessExperimentalBeginFrame
- type HeadlessExperimentalBeginFrameResult
- type HeadlessExperimentalDisable
- type HeadlessExperimentalEnable
- type HeadlessExperimentalScreenshotParams
- type HeadlessExperimentalScreenshotParamsFormat
- type HeapProfilerAddHeapSnapshotChunk
- type HeapProfilerAddInspectedHeapObject
- type HeapProfilerCollectGarbage
- type HeapProfilerDisable
- type HeapProfilerEnable
- type HeapProfilerGetHeapObjectID
- type HeapProfilerGetHeapObjectIDResult
- type HeapProfilerGetObjectByHeapObjectID
- type HeapProfilerGetObjectByHeapObjectIDResult
- type HeapProfilerGetSamplingProfile
- type HeapProfilerGetSamplingProfileResult
- type HeapProfilerHeapSnapshotObjectID
- type HeapProfilerHeapStatsUpdate
- type HeapProfilerLastSeenObjectID
- type HeapProfilerReportHeapSnapshotProgress
- type HeapProfilerResetProfiles
- type HeapProfilerSamplingHeapProfile
- type HeapProfilerSamplingHeapProfileNode
- type HeapProfilerSamplingHeapProfileSample
- type HeapProfilerStartSampling
- type HeapProfilerStartTrackingHeapObjects
- type HeapProfilerStopSampling
- type HeapProfilerStopSamplingResult
- type HeapProfilerStopTrackingHeapObjects
- type HeapProfilerTakeHeapSnapshot
- type IOClose
- type IORead
- type IOReadResult
- type IOResolveBlob
- type IOResolveBlobResult
- type IOStreamHandle
- type IndexedDBClearObjectStore
- type IndexedDBDataEntry
- type IndexedDBDatabaseWithObjectStores
- type IndexedDBDeleteDatabase
- type IndexedDBDeleteObjectStoreEntries
- type IndexedDBDisable
- type IndexedDBEnable
- type IndexedDBGetMetadata
- type IndexedDBGetMetadataResult
- type IndexedDBKey
- type IndexedDBKeyPath
- type IndexedDBKeyPathType
- type IndexedDBKeyRange
- type IndexedDBKeyType
- type IndexedDBObjectStore
- type IndexedDBObjectStoreIndex
- type IndexedDBRequestData
- type IndexedDBRequestDataResult
- type IndexedDBRequestDatabase
- type IndexedDBRequestDatabaseNames
- type IndexedDBRequestDatabaseNamesResult
- type IndexedDBRequestDatabaseResult
- type InputCancelDragging
- type InputDispatchDragEvent
- type InputDispatchDragEventType
- type InputDispatchKeyEvent
- type InputDispatchKeyEventType
- type InputDispatchMouseEvent
- type InputDispatchMouseEventPointerType
- type InputDispatchMouseEventType
- type InputDispatchTouchEvent
- type InputDispatchTouchEventType
- type InputDragData
- type InputDragDataItem
- type InputDragIntercepted
- type InputEmulateTouchFromMouseEvent
- type InputEmulateTouchFromMouseEventType
- type InputGestureSourceType
- type InputImeSetComposition
- type InputInsertText
- type InputMouseButton
- type InputSetIgnoreInputEvents
- type InputSetInterceptDrags
- type InputSynthesizePinchGesture
- type InputSynthesizeScrollGesture
- type InputSynthesizeTapGesture
- type InputTouchPoint
- type InspectorDetached
- type InspectorDisable
- type InspectorEnable
- type InspectorTargetCrashed
- type InspectorTargetReloadedAfterCrash
- type LayerTreeCompositingReasons
- type LayerTreeCompositingReasonsResult
- type LayerTreeDisable
- type LayerTreeEnable
- type LayerTreeLayer
- type LayerTreeLayerID
- type LayerTreeLayerPainted
- type LayerTreeLayerTreeDidChange
- type LayerTreeLoadSnapshot
- type LayerTreeLoadSnapshotResult
- type LayerTreeMakeSnapshot
- type LayerTreeMakeSnapshotResult
- type LayerTreePaintProfile
- type LayerTreePictureTile
- type LayerTreeProfileSnapshot
- type LayerTreeProfileSnapshotResult
- type LayerTreeReleaseSnapshot
- type LayerTreeReplaySnapshot
- type LayerTreeReplaySnapshotResult
- type LayerTreeScrollRect
- type LayerTreeScrollRectType
- type LayerTreeSnapshotCommandLog
- type LayerTreeSnapshotCommandLogResult
- type LayerTreeSnapshotID
- type LayerTreeStickyPositionConstraint
- type LogClear
- type LogDisable
- type LogEnable
- type LogEntryAdded
- type LogLogEntry
- type LogLogEntryCategory
- type LogLogEntryLevel
- type LogLogEntrySource
- type LogStartViolationsReport
- type LogStopViolationsReport
- type LogViolationSetting
- type LogViolationSettingName
- type MediaDisable
- type MediaEnable
- type MediaPlayerError
- type MediaPlayerErrorSourceLocation
- type MediaPlayerErrorsRaised
- type MediaPlayerEvent
- type MediaPlayerEventsAdded
- type MediaPlayerID
- type MediaPlayerMessage
- type MediaPlayerMessageLevel
- type MediaPlayerMessagesLogged
- type MediaPlayerPropertiesChanged
- type MediaPlayerProperty
- type MediaPlayersCreated
- type MediaTimestamp
- type MemoryForciblyPurgeJavaScriptMemory
- type MemoryGetAllTimeSamplingProfile
- type MemoryGetAllTimeSamplingProfileResult
- type MemoryGetBrowserSamplingProfile
- type MemoryGetBrowserSamplingProfileResult
- type MemoryGetDOMCounters
- type MemoryGetDOMCountersResult
- type MemoryGetSamplingProfile
- type MemoryGetSamplingProfileResult
- type MemoryModule
- type MemoryPrepareForLeakDetection
- type MemoryPressureLevel
- type MemorySamplingProfile
- type MemorySamplingProfileNode
- type MemorySetPressureNotificationsSuppressed
- type MemorySimulatePressureNotification
- type MemoryStartSampling
- type MemoryStopSampling
- type MonotonicTime
- type NetworkAlternateProtocolUsage
- type NetworkAssociatedCookie
- type NetworkAuthChallenge
- type NetworkAuthChallengeResponse
- type NetworkAuthChallengeResponseResponse
- type NetworkAuthChallengeSource
- type NetworkBlockedReason
- type NetworkBlockedSetCookieWithReason
- type NetworkCachedResource
- type NetworkCanClearBrowserCache
- type NetworkCanClearBrowserCacheResult
- type NetworkCanClearBrowserCookies
- type NetworkCanClearBrowserCookiesResult
- type NetworkCanEmulateNetworkConditions
- type NetworkCanEmulateNetworkConditionsResult
- type NetworkCertificateTransparencyCompliance
- type NetworkClearAcceptedEncodingsOverride
- type NetworkClearBrowserCache
- type NetworkClearBrowserCookies
- type NetworkClientSecurityState
- type NetworkConnectTiming
- type NetworkConnectionType
- type NetworkContentEncoding
- type NetworkContentSecurityPolicySource
- type NetworkContentSecurityPolicyStatus
- type NetworkContinueInterceptedRequest
- type NetworkCookie
- type NetworkCookieBlockedReason
- type NetworkCookieExemptionReason
- type NetworkCookieParam
- type NetworkCookiePartitionKey
- type NetworkCookiePriority
- type NetworkCookieSameSite
- type NetworkCookieSourceScheme
- type NetworkCorsError
- type NetworkCorsErrorStatus
- type NetworkCrossOriginEmbedderPolicyStatus
- type NetworkCrossOriginEmbedderPolicyValue
- type NetworkCrossOriginOpenerPolicyStatus
- type NetworkCrossOriginOpenerPolicyValue
- type NetworkDataReceived
- type NetworkDeleteCookies
- type NetworkDisable
- type NetworkEmulateNetworkConditions
- type NetworkEnable
- type NetworkEnableReportingAPI
- type NetworkErrorReason
- type NetworkEventSourceMessageReceived
- type NetworkExemptedSetCookieWithReason
- type NetworkGetAllCookies
- type NetworkGetAllCookiesResult
- type NetworkGetCertificate
- type NetworkGetCertificateResult
- type NetworkGetCookies
- type NetworkGetCookiesResult
- type NetworkGetRequestPostData
- type NetworkGetRequestPostDataResult
- type NetworkGetResponseBody
- type NetworkGetResponseBodyForInterception
- type NetworkGetResponseBodyForInterceptionResult
- type NetworkGetResponseBodyResult
- type NetworkGetSecurityIsolationStatus
- type NetworkGetSecurityIsolationStatusResult
- type NetworkHeaders
- type NetworkIPAddressSpace
- type NetworkInitiator
- type NetworkInitiatorType
- type NetworkInterceptionID
- type NetworkInterceptionStage
- type NetworkLoadNetworkResource
- type NetworkLoadNetworkResourceOptions
- type NetworkLoadNetworkResourcePageResult
- type NetworkLoadNetworkResourceResult
- type NetworkLoaderID
- type NetworkLoadingFailed
- type NetworkLoadingFinished
- type NetworkPolicyUpdated
- type NetworkPostDataEntry
- type NetworkPrivateNetworkRequestPolicy
- type NetworkReplayXHR
- type NetworkReportID
- type NetworkReportStatus
- type NetworkReportingAPIEndpoint
- type NetworkReportingAPIEndpointsChangedForOrigin
- type NetworkReportingAPIReport
- type NetworkReportingAPIReportAdded
- type NetworkReportingAPIReportUpdated
- type NetworkRequest
- type NetworkRequestID
- type NetworkRequestIntercepted
- type NetworkRequestPattern
- type NetworkRequestReferrerPolicy
- type NetworkRequestServedFromCache
- type NetworkRequestWillBeSent
- type NetworkRequestWillBeSentExtraInfo
- type NetworkResourceChangedPriority
- type NetworkResourcePriority
- type NetworkResourceTiming
- type NetworkResourceType
- type NetworkResponse
- type NetworkResponseReceived
- type NetworkResponseReceivedEarlyHints
- type NetworkResponseReceivedExtraInfo
- type NetworkSearchInResponseBody
- type NetworkSearchInResponseBodyResult
- type NetworkSecurityDetails
- type NetworkSecurityIsolationStatus
- type NetworkServiceWorkerResponseSource
- type NetworkServiceWorkerRouterInfo
- type NetworkServiceWorkerRouterSource
- type NetworkSetAcceptedEncodings
- type NetworkSetAttachDebugStack
- type NetworkSetBlockedURLs
- type NetworkSetBypassServiceWorker
- type NetworkSetCacheDisabled
- type NetworkSetCookie
- type NetworkSetCookieBlockedReason
- type NetworkSetCookieResult
- type NetworkSetCookies
- type NetworkSetExtraHTTPHeaders
- type NetworkSetRequestInterception
- type NetworkSetUserAgentOverride
- type NetworkSignedCertificateTimestamp
- type NetworkSignedExchangeError
- type NetworkSignedExchangeErrorField
- type NetworkSignedExchangeHeader
- type NetworkSignedExchangeInfo
- type NetworkSignedExchangeReceived
- type NetworkSignedExchangeSignature
- type NetworkStreamResourceContent
- type NetworkStreamResourceContentResult
- type NetworkSubresourceWebBundleInnerResponseError
- type NetworkSubresourceWebBundleInnerResponseParsed
- type NetworkSubresourceWebBundleMetadataError
- type NetworkSubresourceWebBundleMetadataReceived
- type NetworkTakeResponseBodyForInterceptionAsStream
- type NetworkTakeResponseBodyForInterceptionAsStreamResult
- type NetworkTrustTokenOperationDone
- type NetworkTrustTokenOperationDoneStatus
- type NetworkTrustTokenOperationType
- type NetworkTrustTokenParams
- type NetworkTrustTokenParamsRefreshPolicy
- type NetworkWebSocketClosed
- type NetworkWebSocketCreated
- type NetworkWebSocketFrame
- type NetworkWebSocketFrameError
- type NetworkWebSocketFrameReceived
- type NetworkWebSocketFrameSent
- type NetworkWebSocketHandshakeResponseReceived
- type NetworkWebSocketRequest
- type NetworkWebSocketResponse
- type NetworkWebSocketWillSendHandshakeRequest
- type NetworkWebTransportClosed
- type NetworkWebTransportConnectionEstablished
- type NetworkWebTransportCreated
- type OverlayBoxStyle
- type OverlayColorFormat
- type OverlayContainerQueryContainerHighlightConfig
- type OverlayContainerQueryHighlightConfig
- type OverlayContrastAlgorithm
- type OverlayDisable
- type OverlayEnable
- type OverlayFlexContainerHighlightConfig
- type OverlayFlexItemHighlightConfig
- type OverlayFlexNodeHighlightConfig
- type OverlayGetGridHighlightObjectsForTest
- type OverlayGetGridHighlightObjectsForTestResult
- type OverlayGetHighlightObjectForTest
- type OverlayGetHighlightObjectForTestResult
- type OverlayGetSourceOrderHighlightObjectForTest
- type OverlayGetSourceOrderHighlightObjectForTestResult
- type OverlayGridHighlightConfig
- type OverlayGridNodeHighlightConfig
- type OverlayHideHighlight
- type OverlayHighlightConfig
- type OverlayHighlightFrame
- type OverlayHighlightNode
- type OverlayHighlightQuad
- type OverlayHighlightRect
- type OverlayHighlightSourceOrder
- type OverlayHingeConfig
- type OverlayInspectMode
- type OverlayInspectModeCanceled
- type OverlayInspectNodeRequested
- type OverlayIsolatedElementHighlightConfig
- type OverlayIsolationModeHighlightConfig
- type OverlayLineStyle
- type OverlayLineStylePattern
- type OverlayNodeHighlightRequested
- type OverlayScreenshotRequested
- type OverlayScrollSnapContainerHighlightConfig
- type OverlayScrollSnapHighlightConfig
- type OverlaySetInspectMode
- type OverlaySetPausedInDebuggerMessage
- type OverlaySetShowAdHighlights
- type OverlaySetShowContainerQueryOverlays
- type OverlaySetShowDebugBorders
- type OverlaySetShowFPSCounter
- type OverlaySetShowFlexOverlays
- type OverlaySetShowGridOverlays
- type OverlaySetShowHinge
- type OverlaySetShowHitTestBorders
- type OverlaySetShowIsolatedElements
- type OverlaySetShowLayoutShiftRegions
- type OverlaySetShowPaintRects
- type OverlaySetShowScrollBottleneckRects
- type OverlaySetShowScrollSnapOverlays
- type OverlaySetShowViewportSizeOnResize
- type OverlaySetShowWebVitals
- type OverlaySetShowWindowControlsOverlay
- type OverlaySourceOrderConfig
- type OverlayWindowControlsOverlayConfig
- type PWAChangeAppUserSettings
- type PWADisplayMode
- type PWAFileHandler
- type PWAFileHandlerAccept
- type PWAGetOsAppState
- type PWAGetOsAppStateResult
- type PWAInstall
- type PWALaunch
- type PWALaunchFilesInApp
- type PWALaunchFilesInAppResult
- type PWALaunchResult
- type PWAOpenCurrentPageInApp
- type PWAUninstall
- type PageAdFrameExplanation
- type PageAdFrameStatus
- type PageAdFrameType
- type PageAdScriptID
- type PageAddCompilationCache
- type PageAddScriptToEvaluateOnLoad
- type PageAddScriptToEvaluateOnLoadResult
- type PageAddScriptToEvaluateOnNewDocument
- type PageAddScriptToEvaluateOnNewDocumentResult
- type PageAppManifestError
- type PageAppManifestParsedProperties
- type PageAutoResponseMode
- type PageBackForwardCacheBlockingDetails
- type PageBackForwardCacheNotRestoredExplanation
- type PageBackForwardCacheNotRestoredExplanationTree
- type PageBackForwardCacheNotRestoredReason
- type PageBackForwardCacheNotRestoredReasonType
- type PageBackForwardCacheNotUsed
- type PageBringToFront
- type PageCaptureScreenshot
- type PageCaptureScreenshotFormat
- type PageCaptureScreenshotResult
- type PageCaptureSnapshot
- type PageCaptureSnapshotFormat
- type PageCaptureSnapshotResult
- type PageClearCompilationCache
- type PageClearDeviceMetricsOverride
- type PageClearDeviceOrientationOverride
- type PageClearGeolocationOverride
- type PageClientNavigationDisposition
- type PageClientNavigationReason
- type PageClose
- type PageCompilationCacheParams
- type PageCompilationCacheProduced
- type PageCrash
- type PageCreateIsolatedWorld
- type PageCreateIsolatedWorldResult
- type PageCrossOriginIsolatedContextType
- type PageDeleteCookie
- type PageDialogType
- type PageDisable
- type PageDocumentOpened
- type PageDomContentEventFired
- type PageDownloadProgress
- type PageDownloadProgressState
- type PageDownloadWillBegin
- type PageEnable
- type PageFileChooserOpened
- type PageFileChooserOpenedMode
- type PageFileFilter
- type PageFileHandler
- type PageFontFamilies
- type PageFontSizes
- type PageFrame
- type PageFrameAttached
- type PageFrameClearedScheduledNavigation
- type PageFrameDetached
- type PageFrameDetachedReason
- type PageFrameID
- type PageFrameNavigated
- type PageFrameRequestedNavigation
- type PageFrameResized
- type PageFrameResource
- type PageFrameResourceTree
- type PageFrameScheduledNavigation
- type PageFrameStartedLoading
- type PageFrameStoppedLoading
- type PageFrameTree
- type PageGatedAPIFeatures
- type PageGenerateTestReport
- type PageGetAdScriptID
- type PageGetAdScriptIDResult
- type PageGetAppID
- type PageGetAppIDResult
- type PageGetAppManifest
- type PageGetAppManifestResult
- type PageGetFrameTree
- type PageGetFrameTreeResult
- type PageGetInstallabilityErrors
- type PageGetInstallabilityErrorsResult
- type PageGetLayoutMetrics
- type PageGetLayoutMetricsResult
- type PageGetManifestIcons
- type PageGetManifestIconsResult
- type PageGetNavigationHistory
- type PageGetNavigationHistoryResult
- type PageGetOriginTrials
- type PageGetOriginTrialsResult
- type PageGetPermissionsPolicyState
- type PageGetPermissionsPolicyStateResult
- type PageGetResourceContent
- type PageGetResourceContentResult
- type PageGetResourceTree
- type PageGetResourceTreeResult
- type PageHandleJavaScriptDialog
- type PageImageResource
- type PageInstallabilityError
- type PageInstallabilityErrorArgument
- type PageInterstitialHidden
- type PageInterstitialShown
- type PageJavascriptDialogClosed
- type PageJavascriptDialogOpening
- type PageLaunchHandler
- type PageLayoutViewport
- type PageLifecycleEvent
- type PageLifecycleEventName
- type PageLoadEventFired
- type PageNavigate
- type PageNavigateResult
- type PageNavigateToHistoryEntry
- type PageNavigatedWithinDocument
- type PageNavigationEntry
- type PageNavigationType
- type PageOriginTrial
- type PageOriginTrialStatus
- type PageOriginTrialToken
- type PageOriginTrialTokenStatus
- type PageOriginTrialTokenWithStatus
- type PageOriginTrialUsageRestriction
- type PagePermissionsPolicyBlockLocator
- type PagePermissionsPolicyBlockReason
- type PagePermissionsPolicyFeature
- type PagePermissionsPolicyFeatureState
- type PagePrintToPDF
- type PagePrintToPDFResult
- type PagePrintToPDFTransferMode
- type PageProduceCompilationCache
- type PageProtocolHandler
- type PageReferrerPolicy
- type PageRelatedApplication
- type PageReload
- type PageRemoveScriptToEvaluateOnLoad
- type PageRemoveScriptToEvaluateOnNewDocument
- type PageResetNavigationHistory
- type PageScopeExtension
- type PageScreencastFrame
- type PageScreencastFrameAck
- type PageScreencastFrameMetadata
- type PageScreencastVisibilityChanged
- type PageScreenshot
- type PageScriptFontFamilies
- type PageScriptIdentifier
- type PageSearchInResource
- type PageSearchInResourceResult
- type PageSecureContextType
- type PageSetAdBlockingEnabled
- type PageSetBypassCSP
- type PageSetDeviceMetricsOverride
- type PageSetDeviceOrientationOverride
- type PageSetDocumentContent
- type PageSetDownloadBehavior
- type PageSetDownloadBehaviorBehavior
- type PageSetFontFamilies
- type PageSetFontSizes
- type PageSetGeolocationOverride
- type PageSetInterceptFileChooserDialog
- type PageSetLifecycleEventsEnabled
- type PageSetPrerenderingAllowed
- type PageSetRPHRegistrationMode
- type PageSetSPCTransactionMode
- type PageSetTouchEmulationEnabled
- type PageSetTouchEmulationEnabledConfiguration
- type PageSetWebLifecycleState
- type PageSetWebLifecycleStateState
- type PageShareTarget
- type PageShortcut
- type PageStartScreencast
- type PageStartScreencastFormat
- type PageStopLoading
- type PageStopScreencast
- type PageTransitionType
- type PageViewport
- type PageVisualViewport
- type PageWaitForDebugger
- type PageWebAppManifest
- type PageWindowOpen
- type PerformanceDisable
- type PerformanceEnable
- type PerformanceEnableTimeDomain
- type PerformanceGetMetrics
- type PerformanceGetMetricsResult
- type PerformanceMetric
- type PerformanceMetrics
- type PerformanceSetTimeDomain
- type PerformanceSetTimeDomainTimeDomain
- type PerformanceTimelineEnable
- type PerformanceTimelineLargestContentfulPaint
- type PerformanceTimelineLayoutShift
- type PerformanceTimelineLayoutShiftAttribution
- type PerformanceTimelineTimelineEvent
- type PerformanceTimelineTimelineEventAdded
- type Point
- type PreloadDisable
- type PreloadEnable
- type PreloadPrefetchStatus
- type PreloadPrefetchStatusUpdated
- type PreloadPreloadEnabledStateUpdated
- type PreloadPreloadingAttemptKey
- type PreloadPreloadingAttemptSource
- type PreloadPreloadingAttemptSourcesUpdated
- type PreloadPreloadingStatus
- type PreloadPrerenderFinalStatus
- type PreloadPrerenderMismatchedHeaders
- type PreloadPrerenderStatusUpdated
- type PreloadRuleSet
- type PreloadRuleSetErrorType
- type PreloadRuleSetID
- type PreloadRuleSetRemoved
- type PreloadRuleSetUpdated
- type PreloadSpeculationAction
- type PreloadSpeculationTargetHint
- type ProfilerConsoleProfileFinished
- type ProfilerConsoleProfileStarted
- type ProfilerCoverageRange
- type ProfilerDisable
- type ProfilerEnable
- type ProfilerFunctionCoverage
- type ProfilerGetBestEffortCoverage
- type ProfilerGetBestEffortCoverageResult
- type ProfilerPositionTickInfo
- type ProfilerPreciseCoverageDeltaUpdate
- type ProfilerProfile
- type ProfilerProfileNode
- type ProfilerScriptCoverage
- type ProfilerSetSamplingInterval
- type ProfilerStart
- type ProfilerStartPreciseCoverage
- type ProfilerStartPreciseCoverageResult
- type ProfilerStop
- type ProfilerStopPreciseCoverage
- type ProfilerStopResult
- type ProfilerTakePreciseCoverage
- type ProfilerTakePreciseCoverageResult
- type Request
- type RuntimeAddBinding
- type RuntimeAwaitPromise
- type RuntimeAwaitPromiseResult
- type RuntimeBindingCalled
- type RuntimeCallArgument
- type RuntimeCallFrame
- type RuntimeCallFunctionOn
- type RuntimeCallFunctionOnResult
- type RuntimeCompileScript
- type RuntimeCompileScriptResult
- type RuntimeConsoleAPICalled
- type RuntimeConsoleAPICalledType
- type RuntimeCustomPreview
- type RuntimeDeepSerializedValue
- type RuntimeDeepSerializedValueType
- type RuntimeDisable
- type RuntimeDiscardConsoleEntries
- type RuntimeEnable
- type RuntimeEntryPreview
- type RuntimeEvaluate
- type RuntimeEvaluateResult
- type RuntimeExceptionDetails
- type RuntimeExceptionRevoked
- type RuntimeExceptionThrown
- type RuntimeExecutionContextCreated
- type RuntimeExecutionContextDescription
- type RuntimeExecutionContextDestroyed
- type RuntimeExecutionContextID
- type RuntimeExecutionContextsCleared
- type RuntimeGetExceptionDetails
- type RuntimeGetExceptionDetailsResult
- type RuntimeGetHeapUsage
- type RuntimeGetHeapUsageResult
- type RuntimeGetIsolateID
- type RuntimeGetIsolateIDResult
- type RuntimeGetProperties
- type RuntimeGetPropertiesResult
- type RuntimeGlobalLexicalScopeNames
- type RuntimeGlobalLexicalScopeNamesResult
- type RuntimeInspectRequested
- type RuntimeInternalPropertyDescriptor
- type RuntimeObjectPreview
- type RuntimeObjectPreviewSubtype
- type RuntimeObjectPreviewType
- type RuntimePrivatePropertyDescriptor
- type RuntimePropertyDescriptor
- type RuntimePropertyPreview
- type RuntimePropertyPreviewSubtype
- type RuntimePropertyPreviewType
- type RuntimeQueryObjects
- type RuntimeQueryObjectsResult
- type RuntimeReleaseObject
- type RuntimeReleaseObjectGroup
- type RuntimeRemoteObject
- type RuntimeRemoteObjectID
- type RuntimeRemoteObjectSubtype
- type RuntimeRemoteObjectType
- type RuntimeRemoveBinding
- type RuntimeRunIfWaitingForDebugger
- type RuntimeRunScript
- type RuntimeRunScriptResult
- type RuntimeScriptID
- type RuntimeSerializationOptions
- type RuntimeSerializationOptionsSerialization
- type RuntimeSetAsyncCallStackDepth
- type RuntimeSetCustomObjectFormatterEnabled
- type RuntimeSetMaxCallStackSizeToCapture
- type RuntimeStackTrace
- type RuntimeStackTraceID
- type RuntimeTerminateExecution
- type RuntimeTimeDelta
- type RuntimeTimestamp
- type RuntimeUniqueDebuggerID
- type RuntimeUnserializableValue
- type SchemaDomain
- type SchemaGetDomains
- type SchemaGetDomainsResult
- type SecurityCertificateError
- type SecurityCertificateErrorAction
- type SecurityCertificateID
- type SecurityCertificateSecurityState
- type SecurityDisable
- type SecurityEnable
- type SecurityHandleCertificateError
- type SecurityInsecureContentStatus
- type SecurityMixedContentType
- type SecuritySafetyTipInfo
- type SecuritySafetyTipStatus
- type SecuritySecurityState
- type SecuritySecurityStateChanged
- type SecuritySecurityStateExplanation
- type SecuritySetIgnoreCertificateErrors
- type SecuritySetOverrideCertificateErrors
- type SecurityVisibleSecurityState
- type SecurityVisibleSecurityStateChanged
- type ServiceWorkerDeliverPushMessage
- type ServiceWorkerDisable
- type ServiceWorkerDispatchPeriodicSyncEvent
- type ServiceWorkerDispatchSyncEvent
- type ServiceWorkerEnable
- type ServiceWorkerInspectWorker
- type ServiceWorkerRegistrationID
- type ServiceWorkerServiceWorkerErrorMessage
- type ServiceWorkerServiceWorkerRegistration
- type ServiceWorkerServiceWorkerVersion
- type ServiceWorkerServiceWorkerVersionRunningStatus
- type ServiceWorkerServiceWorkerVersionStatus
- type ServiceWorkerSetForceUpdateOnPageLoad
- type ServiceWorkerSkipWaiting
- type ServiceWorkerStartWorker
- type ServiceWorkerStopAllWorkers
- type ServiceWorkerStopWorker
- type ServiceWorkerUnregister
- type ServiceWorkerUpdateRegistration
- type ServiceWorkerWorkerErrorReported
- type ServiceWorkerWorkerRegistrationUpdated
- type ServiceWorkerWorkerVersionUpdated
- type Sessionable
- type Shape
- type StorageAttributionReportingAggregatableDedupKey
- type StorageAttributionReportingAggregatableResult
- type StorageAttributionReportingAggregatableTriggerData
- type StorageAttributionReportingAggregatableValueDictEntry
- type StorageAttributionReportingAggregatableValueEntry
- type StorageAttributionReportingAggregationKeysEntry
- type StorageAttributionReportingEventLevelResult
- type StorageAttributionReportingEventReportWindows
- type StorageAttributionReportingEventTriggerData
- type StorageAttributionReportingFilterConfig
- type StorageAttributionReportingFilterDataEntry
- type StorageAttributionReportingFilterPair
- type StorageAttributionReportingSourceRegistered
- type StorageAttributionReportingSourceRegistration
- type StorageAttributionReportingSourceRegistrationResult
- type StorageAttributionReportingSourceRegistrationTimeConfig
- type StorageAttributionReportingSourceType
- type StorageAttributionReportingTriggerDataMatching
- type StorageAttributionReportingTriggerRegistered
- type StorageAttributionReportingTriggerRegistration
- type StorageAttributionReportingTriggerSpec
- type StorageCacheStorageContentUpdated
- type StorageCacheStorageListUpdated
- type StorageClearCookies
- type StorageClearDataForOrigin
- type StorageClearDataForStorageKey
- type StorageClearSharedStorageEntries
- type StorageClearTrustTokens
- type StorageClearTrustTokensResult
- type StorageDeleteSharedStorageEntry
- type StorageDeleteStorageBucket
- type StorageGetCookies
- type StorageGetCookiesResult
- type StorageGetInterestGroupDetails
- type StorageGetInterestGroupDetailsResult
- type StorageGetRelatedWebsiteSets
- type StorageGetRelatedWebsiteSetsResult
- type StorageGetSharedStorageEntries
- type StorageGetSharedStorageEntriesResult
- type StorageGetSharedStorageMetadata
- type StorageGetSharedStorageMetadataResult
- type StorageGetStorageKeyForFrame
- type StorageGetStorageKeyForFrameResult
- type StorageGetTrustTokens
- type StorageGetTrustTokensResult
- type StorageGetUsageAndQuota
- type StorageGetUsageAndQuotaResult
- type StorageIndexedDBContentUpdated
- type StorageIndexedDBListUpdated
- type StorageInterestGroupAccessType
- type StorageInterestGroupAccessed
- type StorageInterestGroupAuctionEventOccurred
- type StorageInterestGroupAuctionEventType
- type StorageInterestGroupAuctionFetchType
- type StorageInterestGroupAuctionID
- type StorageInterestGroupAuctionNetworkRequestCreated
- type StorageOverrideQuotaForOrigin
- type StorageRelatedWebsiteSet
- type StorageResetSharedStorageBudget
- type StorageRunBounceTrackingMitigations
- type StorageRunBounceTrackingMitigationsResult
- type StorageSendPendingAttributionReports
- type StorageSendPendingAttributionReportsResult
- type StorageSerializedStorageKey
- type StorageSetAttributionReportingLocalTestingMode
- type StorageSetAttributionReportingTracking
- type StorageSetCookies
- type StorageSetInterestGroupAuctionTracking
- type StorageSetInterestGroupTracking
- type StorageSetSharedStorageEntry
- type StorageSetSharedStorageTracking
- type StorageSetStorageBucketTracking
- type StorageSharedStorageAccessParams
- type StorageSharedStorageAccessType
- type StorageSharedStorageAccessed
- type StorageSharedStorageEntry
- type StorageSharedStorageMetadata
- type StorageSharedStorageReportingMetadata
- type StorageSharedStorageURLWithMetadata
- type StorageSignedInt64AsBase10
- type StorageStorageBucket
- type StorageStorageBucketCreatedOrUpdated
- type StorageStorageBucketDeleted
- type StorageStorageBucketInfo
- type StorageStorageBucketsDurability
- type StorageStorageType
- type StorageTrackCacheStorageForOrigin
- type StorageTrackCacheStorageForStorageKey
- type StorageTrackIndexedDBForOrigin
- type StorageTrackIndexedDBForStorageKey
- type StorageTrustTokens
- type StorageUnsignedInt128AsBase16
- type StorageUnsignedInt64AsBase10
- type StorageUntrackCacheStorageForOrigin
- type StorageUntrackCacheStorageForStorageKey
- type StorageUntrackIndexedDBForOrigin
- type StorageUntrackIndexedDBForStorageKey
- type StorageUsageForType
- type SystemInfoGPUDevice
- type SystemInfoGPUInfo
- type SystemInfoGetFeatureState
- type SystemInfoGetFeatureStateResult
- type SystemInfoGetInfo
- type SystemInfoGetInfoResult
- type SystemInfoGetProcessInfo
- type SystemInfoGetProcessInfoResult
- type SystemInfoImageDecodeAcceleratorCapability
- type SystemInfoImageType
- type SystemInfoProcessInfo
- type SystemInfoSize
- type SystemInfoSubsamplingFormat
- type SystemInfoVideoDecodeAcceleratorCapability
- type SystemInfoVideoEncodeAcceleratorCapability
- type TargetActivateTarget
- type TargetAttachToBrowserTarget
- type TargetAttachToBrowserTargetResult
- type TargetAttachToTarget
- type TargetAttachToTargetResult
- type TargetAttachedToTarget
- type TargetAutoAttachRelated
- type TargetCloseTarget
- type TargetCloseTargetResult
- type TargetCreateBrowserContext
- type TargetCreateBrowserContextResult
- type TargetCreateTarget
- type TargetCreateTargetResult
- type TargetDetachFromTarget
- type TargetDetachedFromTarget
- type TargetDisposeBrowserContext
- type TargetExposeDevToolsProtocol
- type TargetFilterEntry
- type TargetGetBrowserContexts
- type TargetGetBrowserContextsResult
- type TargetGetTargetInfo
- type TargetGetTargetInfoResult
- type TargetGetTargets
- type TargetGetTargetsResult
- type TargetReceivedMessageFromTarget
- type TargetRemoteLocation
- type TargetSendMessageToTarget
- type TargetSessionID
- type TargetSetAutoAttach
- type TargetSetDiscoverTargets
- type TargetSetRemoteLocations
- type TargetTargetCrashed
- type TargetTargetCreated
- type TargetTargetDestroyed
- type TargetTargetFilter
- type TargetTargetID
- type TargetTargetInfo
- type TargetTargetInfoChanged
- type TargetTargetInfoType
- type TetheringAccepted
- type TetheringBind
- type TetheringUnbind
- type TimeSinceEpoch
- type TracingBufferUsage
- type TracingDataCollected
- type TracingEnd
- type TracingGetCategories
- type TracingGetCategoriesResult
- type TracingMemoryDumpConfig
- type TracingMemoryDumpLevelOfDetail
- type TracingRecordClockSyncMarker
- type TracingRequestMemoryDump
- type TracingRequestMemoryDumpResult
- type TracingStart
- type TracingStartTransferMode
- type TracingStreamCompression
- type TracingStreamFormat
- type TracingTraceConfig
- type TracingTraceConfigRecordMode
- type TracingTracingBackend
- type TracingTracingComplete
- type WebAudioAudioListener
- type WebAudioAudioListenerCreated
- type WebAudioAudioListenerWillBeDestroyed
- type WebAudioAudioNode
- type WebAudioAudioNodeCreated
- type WebAudioAudioNodeWillBeDestroyed
- type WebAudioAudioParam
- type WebAudioAudioParamCreated
- type WebAudioAudioParamWillBeDestroyed
- type WebAudioAutomationRate
- type WebAudioBaseAudioContext
- type WebAudioChannelCountMode
- type WebAudioChannelInterpretation
- type WebAudioContextChanged
- type WebAudioContextCreated
- type WebAudioContextRealtimeData
- type WebAudioContextState
- type WebAudioContextType
- type WebAudioContextWillBeDestroyed
- type WebAudioDisable
- type WebAudioEnable
- type WebAudioGetRealtimeData
- type WebAudioGetRealtimeDataResult
- type WebAudioGraphObjectID
- type WebAudioNodeParamConnected
- type WebAudioNodeParamDisconnected
- type WebAudioNodeType
- type WebAudioNodesConnected
- type WebAudioNodesDisconnected
- type WebAudioParamType
- type WebAuthnAddCredential
- type WebAuthnAddVirtualAuthenticator
- type WebAuthnAddVirtualAuthenticatorResult
- type WebAuthnAuthenticatorID
- type WebAuthnAuthenticatorProtocol
- type WebAuthnAuthenticatorTransport
- type WebAuthnClearCredentials
- type WebAuthnCredential
- type WebAuthnCredentialAdded
- type WebAuthnCredentialAsserted
- type WebAuthnCtap2Version
- type WebAuthnDisable
- type WebAuthnEnable
- type WebAuthnGetCredential
- type WebAuthnGetCredentialResult
- type WebAuthnGetCredentials
- type WebAuthnGetCredentialsResult
- type WebAuthnRemoveCredential
- type WebAuthnRemoveVirtualAuthenticator
- type WebAuthnSetAutomaticPresenceSimulation
- type WebAuthnSetCredentialProperties
- type WebAuthnSetResponseOverrideBits
- type WebAuthnSetUserVerified
- type WebAuthnVirtualAuthenticatorOptions
Constants ¶
const Version = "v1.3"
Version of cdp protocol.
Variables ¶
This section is empty.
Functions ¶
func GetType ¶
GetType from method name of this package, such as proto.GetType("Page.enable") will return the type of proto.PageEnable.
func ParseMethodName ¶
ParseMethodName to domain and name.
func PatternToReg ¶
PatternToReg FetchRequestPattern.URLPattern to regular expression.
Types ¶
type AccessibilityAXNode ¶
type AccessibilityAXNode struct { // NodeID Unique identifier for this node. NodeID AccessibilityAXNodeID `json:"nodeId"` // Ignored Whether this node is ignored for accessibility Ignored bool `json:"ignored"` // IgnoredReasons (optional) Collection of reasons why this node is hidden. IgnoredReasons []*AccessibilityAXProperty `json:"ignoredReasons,omitempty"` // Role (optional) This `Node`'s role, whether explicit or implicit. Role *AccessibilityAXValue `json:"role,omitempty"` // ChromeRole (optional) This `Node`'s Chrome raw role. ChromeRole *AccessibilityAXValue `json:"chromeRole,omitempty"` // Name (optional) The accessible name for this `Node`. Name *AccessibilityAXValue `json:"name,omitempty"` // Description (optional) The accessible description for this `Node`. Description *AccessibilityAXValue `json:"description,omitempty"` // Value (optional) The value for this `Node`. Value *AccessibilityAXValue `json:"value,omitempty"` // Properties (optional) All other properties Properties []*AccessibilityAXProperty `json:"properties,omitempty"` // ParentID (optional) ID for this node's parent. ParentID AccessibilityAXNodeID `json:"parentId,omitempty"` // ChildIDs (optional) IDs for each of this node's child nodes. ChildIDs []AccessibilityAXNodeID `json:"childIds,omitempty"` // BackendDOMNodeID (optional) The backend ID for the associated DOM node, if any. BackendDOMNodeID DOMBackendNodeID `json:"backendDOMNodeId,omitempty"` // FrameID (optional) The frame ID for the frame associated with this nodes document. FrameID PageFrameID `json:"frameId,omitempty"` }
AccessibilityAXNode A node in the accessibility tree.
type AccessibilityAXNodeID ¶
type AccessibilityAXNodeID string
AccessibilityAXNodeID Unique accessibility node identifier.
type AccessibilityAXProperty ¶
type AccessibilityAXProperty struct { // Name The name of this property. Name AccessibilityAXPropertyName `json:"name"` // Value The value of this property. Value *AccessibilityAXValue `json:"value"` }
AccessibilityAXProperty ...
type AccessibilityAXPropertyName ¶
type AccessibilityAXPropertyName string
AccessibilityAXPropertyName Values of AXProperty name: - from 'busy' to 'roledescription': states which apply to every AX node - from 'live' to 'root': attributes which apply to nodes in live regions - from 'autocomplete' to 'valuetext': attributes which apply to widgets - from 'checked' to 'selected': states which apply to widgets - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.
const ( // AccessibilityAXPropertyNameBusy enum const. AccessibilityAXPropertyNameBusy AccessibilityAXPropertyName = "busy" // AccessibilityAXPropertyNameDisabled enum const. AccessibilityAXPropertyNameDisabled AccessibilityAXPropertyName = "disabled" // AccessibilityAXPropertyNameEditable enum const. AccessibilityAXPropertyNameEditable AccessibilityAXPropertyName = "editable" // AccessibilityAXPropertyNameFocusable enum const. AccessibilityAXPropertyNameFocusable AccessibilityAXPropertyName = "focusable" // AccessibilityAXPropertyNameFocused enum const. AccessibilityAXPropertyNameFocused AccessibilityAXPropertyName = "focused" // AccessibilityAXPropertyNameHidden enum const. AccessibilityAXPropertyNameHidden AccessibilityAXPropertyName = "hidden" // AccessibilityAXPropertyNameHiddenRoot enum const. AccessibilityAXPropertyNameHiddenRoot AccessibilityAXPropertyName = "hiddenRoot" // AccessibilityAXPropertyNameInvalid enum const. AccessibilityAXPropertyNameInvalid AccessibilityAXPropertyName = "invalid" // AccessibilityAXPropertyNameKeyshortcuts enum const. AccessibilityAXPropertyNameKeyshortcuts AccessibilityAXPropertyName = "keyshortcuts" // AccessibilityAXPropertyNameSettable enum const. AccessibilityAXPropertyNameSettable AccessibilityAXPropertyName = "settable" // AccessibilityAXPropertyNameRoledescription enum const. AccessibilityAXPropertyNameRoledescription AccessibilityAXPropertyName = "roledescription" // AccessibilityAXPropertyNameLive enum const. AccessibilityAXPropertyNameLive AccessibilityAXPropertyName = "live" // AccessibilityAXPropertyNameAtomic enum const. AccessibilityAXPropertyNameAtomic AccessibilityAXPropertyName = "atomic" // AccessibilityAXPropertyNameRelevant enum const. AccessibilityAXPropertyNameRelevant AccessibilityAXPropertyName = "relevant" // AccessibilityAXPropertyNameRoot enum const. AccessibilityAXPropertyNameRoot AccessibilityAXPropertyName = "root" // AccessibilityAXPropertyNameAutocomplete enum const. AccessibilityAXPropertyNameAutocomplete AccessibilityAXPropertyName = "autocomplete" // AccessibilityAXPropertyNameHasPopup enum const. AccessibilityAXPropertyNameHasPopup AccessibilityAXPropertyName = "hasPopup" // AccessibilityAXPropertyNameLevel enum const. AccessibilityAXPropertyNameLevel AccessibilityAXPropertyName = "level" // AccessibilityAXPropertyNameMultiselectable enum const. AccessibilityAXPropertyNameMultiselectable AccessibilityAXPropertyName = "multiselectable" // AccessibilityAXPropertyNameOrientation enum const. AccessibilityAXPropertyNameOrientation AccessibilityAXPropertyName = "orientation" // AccessibilityAXPropertyNameMultiline enum const. AccessibilityAXPropertyNameMultiline AccessibilityAXPropertyName = "multiline" // AccessibilityAXPropertyNameReadonly enum const. AccessibilityAXPropertyNameReadonly AccessibilityAXPropertyName = "readonly" // AccessibilityAXPropertyNameRequired enum const. AccessibilityAXPropertyNameRequired AccessibilityAXPropertyName = "required" // AccessibilityAXPropertyNameValuemin enum const. AccessibilityAXPropertyNameValuemin AccessibilityAXPropertyName = "valuemin" // AccessibilityAXPropertyNameValuemax enum const. AccessibilityAXPropertyNameValuemax AccessibilityAXPropertyName = "valuemax" // AccessibilityAXPropertyNameValuetext enum const. AccessibilityAXPropertyNameValuetext AccessibilityAXPropertyName = "valuetext" // AccessibilityAXPropertyNameChecked enum const. AccessibilityAXPropertyNameChecked AccessibilityAXPropertyName = "checked" // AccessibilityAXPropertyNameExpanded enum const. AccessibilityAXPropertyNameExpanded AccessibilityAXPropertyName = "expanded" // AccessibilityAXPropertyNameModal enum const. AccessibilityAXPropertyNameModal AccessibilityAXPropertyName = "modal" // AccessibilityAXPropertyNamePressed enum const. AccessibilityAXPropertyNamePressed AccessibilityAXPropertyName = "pressed" // AccessibilityAXPropertyNameSelected enum const. AccessibilityAXPropertyNameSelected AccessibilityAXPropertyName = "selected" // AccessibilityAXPropertyNameActivedescendant enum const. AccessibilityAXPropertyNameActivedescendant AccessibilityAXPropertyName = "activedescendant" // AccessibilityAXPropertyNameControls enum const. AccessibilityAXPropertyNameControls AccessibilityAXPropertyName = "controls" // AccessibilityAXPropertyNameDescribedby enum const. AccessibilityAXPropertyNameDescribedby AccessibilityAXPropertyName = "describedby" // AccessibilityAXPropertyNameDetails enum const. AccessibilityAXPropertyNameDetails AccessibilityAXPropertyName = "details" // AccessibilityAXPropertyNameErrormessage enum const. AccessibilityAXPropertyNameErrormessage AccessibilityAXPropertyName = "errormessage" // AccessibilityAXPropertyNameFlowto enum const. AccessibilityAXPropertyNameFlowto AccessibilityAXPropertyName = "flowto" // AccessibilityAXPropertyNameLabelledby enum const. AccessibilityAXPropertyNameLabelledby AccessibilityAXPropertyName = "labelledby" // AccessibilityAXPropertyNameOwns enum const. AccessibilityAXPropertyNameOwns AccessibilityAXPropertyName = "owns" // AccessibilityAXPropertyNameURL enum const. AccessibilityAXPropertyNameURL AccessibilityAXPropertyName = "url" )
type AccessibilityAXRelatedNode ¶
type AccessibilityAXRelatedNode struct { // BackendDOMNodeID The BackendNodeId of the related DOM node. BackendDOMNodeID DOMBackendNodeID `json:"backendDOMNodeId"` // Idref (optional) The IDRef value provided, if any. Idref string `json:"idref,omitempty"` // Text (optional) The text alternative of this node in the current context. Text string `json:"text,omitempty"` }
AccessibilityAXRelatedNode ...
type AccessibilityAXValue ¶
type AccessibilityAXValue struct { // Type The type of this value. Type AccessibilityAXValueType `json:"type"` // Value (optional) The computed value of this property. Value gson.JSON `json:"value,omitempty"` // RelatedNodes (optional) One or more related nodes, if applicable. RelatedNodes []*AccessibilityAXRelatedNode `json:"relatedNodes,omitempty"` // Sources (optional) The sources which contributed to the computation of this property. Sources []*AccessibilityAXValueSource `json:"sources,omitempty"` }
AccessibilityAXValue A single computed AX property.
type AccessibilityAXValueNativeSourceType ¶
type AccessibilityAXValueNativeSourceType string
AccessibilityAXValueNativeSourceType Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
const ( // AccessibilityAXValueNativeSourceTypeDescription enum const. AccessibilityAXValueNativeSourceTypeDescription AccessibilityAXValueNativeSourceType = "description" AccessibilityAXValueNativeSourceTypeFigcaption AccessibilityAXValueNativeSourceType = "figcaption" // AccessibilityAXValueNativeSourceTypeLabel enum const. AccessibilityAXValueNativeSourceTypeLabel AccessibilityAXValueNativeSourceType = "label" // AccessibilityAXValueNativeSourceTypeLabelfor enum const. AccessibilityAXValueNativeSourceTypeLabelfor AccessibilityAXValueNativeSourceType = "labelfor" // AccessibilityAXValueNativeSourceTypeLabelwrapped enum const. AccessibilityAXValueNativeSourceTypeLabelwrapped AccessibilityAXValueNativeSourceType = "labelwrapped" // AccessibilityAXValueNativeSourceTypeLegend enum const. AccessibilityAXValueNativeSourceTypeLegend AccessibilityAXValueNativeSourceType = "legend" // AccessibilityAXValueNativeSourceTypeRubyannotation enum const. AccessibilityAXValueNativeSourceTypeRubyannotation AccessibilityAXValueNativeSourceType = "rubyannotation" AccessibilityAXValueNativeSourceTypeTablecaption AccessibilityAXValueNativeSourceType = "tablecaption" // AccessibilityAXValueNativeSourceTypeTitle enum const. AccessibilityAXValueNativeSourceTypeTitle AccessibilityAXValueNativeSourceType = "title" // AccessibilityAXValueNativeSourceTypeOther enum const. AccessibilityAXValueNativeSourceTypeOther AccessibilityAXValueNativeSourceType = "other" )
type AccessibilityAXValueSource ¶
type AccessibilityAXValueSource struct { // Type What type of source this is. Type AccessibilityAXValueSourceType `json:"type"` // Value (optional) The value of this property source. Value *AccessibilityAXValue `json:"value,omitempty"` // Attribute (optional) The name of the relevant attribute, if any. Attribute string `json:"attribute,omitempty"` // AttributeValue (optional) The value of the relevant attribute, if any. AttributeValue *AccessibilityAXValue `json:"attributeValue,omitempty"` // Superseded (optional) Whether this source is superseded by a higher priority source. Superseded bool `json:"superseded,omitempty"` // NativeSource (optional) The native markup source for this value, e.g. a `<label>` element. NativeSource AccessibilityAXValueNativeSourceType `json:"nativeSource,omitempty"` // NativeSourceValue (optional) The value, such as a node or node list, of the native source. NativeSourceValue *AccessibilityAXValue `json:"nativeSourceValue,omitempty"` // Invalid (optional) Whether the value for this property is invalid. Invalid bool `json:"invalid,omitempty"` // InvalidReason (optional) Reason for the value being invalid, if it is. InvalidReason string `json:"invalidReason,omitempty"` }
AccessibilityAXValueSource A single source for a computed AX property.
type AccessibilityAXValueSourceType ¶
type AccessibilityAXValueSourceType string
AccessibilityAXValueSourceType Enum of possible property sources.
const ( // AccessibilityAXValueSourceTypeAttribute enum const. AccessibilityAXValueSourceTypeAttribute AccessibilityAXValueSourceType = "attribute" // AccessibilityAXValueSourceTypeImplicit enum const. AccessibilityAXValueSourceTypeImplicit AccessibilityAXValueSourceType = "implicit" // AccessibilityAXValueSourceTypeStyle enum const. AccessibilityAXValueSourceTypeStyle AccessibilityAXValueSourceType = "style" // AccessibilityAXValueSourceTypeContents enum const. AccessibilityAXValueSourceTypeContents AccessibilityAXValueSourceType = "contents" // AccessibilityAXValueSourceTypePlaceholder enum const. AccessibilityAXValueSourceTypePlaceholder AccessibilityAXValueSourceType = "placeholder" // AccessibilityAXValueSourceTypeRelatedElement enum const. AccessibilityAXValueSourceTypeRelatedElement AccessibilityAXValueSourceType = "relatedElement" )
type AccessibilityAXValueType ¶
type AccessibilityAXValueType string
AccessibilityAXValueType Enum of possible property types.
const ( // AccessibilityAXValueTypeBoolean enum const. AccessibilityAXValueTypeBoolean AccessibilityAXValueType = "boolean" // AccessibilityAXValueTypeTristate enum const. AccessibilityAXValueTypeTristate AccessibilityAXValueType = "tristate" // AccessibilityAXValueTypeBooleanOrUndefined enum const. AccessibilityAXValueTypeBooleanOrUndefined AccessibilityAXValueType = "booleanOrUndefined" // AccessibilityAXValueTypeIdref enum const. AccessibilityAXValueTypeIdref AccessibilityAXValueType = "idref" // AccessibilityAXValueTypeIdrefList enum const. AccessibilityAXValueTypeIdrefList AccessibilityAXValueType = "idrefList" // AccessibilityAXValueTypeInteger enum const. AccessibilityAXValueTypeInteger AccessibilityAXValueType = "integer" // AccessibilityAXValueTypeNode enum const. AccessibilityAXValueTypeNode AccessibilityAXValueType = "node" // AccessibilityAXValueTypeNodeList enum const. AccessibilityAXValueTypeNodeList AccessibilityAXValueType = "nodeList" // AccessibilityAXValueTypeNumber enum const. AccessibilityAXValueTypeNumber AccessibilityAXValueType = "number" // AccessibilityAXValueTypeString enum const. AccessibilityAXValueTypeString AccessibilityAXValueType = "string" // AccessibilityAXValueTypeComputedString enum const. AccessibilityAXValueTypeComputedString AccessibilityAXValueType = "computedString" // AccessibilityAXValueTypeToken enum const. AccessibilityAXValueTypeToken AccessibilityAXValueType = "token" // AccessibilityAXValueTypeTokenList enum const. AccessibilityAXValueTypeTokenList AccessibilityAXValueType = "tokenList" // AccessibilityAXValueTypeDomRelation enum const. AccessibilityAXValueTypeDomRelation AccessibilityAXValueType = "domRelation" // AccessibilityAXValueTypeRole enum const. AccessibilityAXValueTypeRole AccessibilityAXValueType = "role" // AccessibilityAXValueTypeInternalRole enum const. AccessibilityAXValueTypeInternalRole AccessibilityAXValueType = "internalRole" // AccessibilityAXValueTypeValueUndefined enum const. AccessibilityAXValueTypeValueUndefined AccessibilityAXValueType = "valueUndefined" )
type AccessibilityDisable ¶
type AccessibilityDisable struct{}
AccessibilityDisable Disables the accessibility domain.
func (AccessibilityDisable) Call ¶
func (m AccessibilityDisable) Call(c Client) error
Call sends the request.
func (AccessibilityDisable) ProtoReq ¶ added in v0.74.0
func (m AccessibilityDisable) ProtoReq() string
ProtoReq name.
type AccessibilityEnable ¶
type AccessibilityEnable struct{}
AccessibilityEnable 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 (AccessibilityEnable) Call ¶
func (m AccessibilityEnable) Call(c Client) error
Call sends the request.
func (AccessibilityEnable) ProtoReq ¶ added in v0.74.0
func (m AccessibilityEnable) ProtoReq() string
ProtoReq name.
type AccessibilityGetAXNodeAndAncestors ¶ added in v0.102.0
type AccessibilityGetAXNodeAndAncestors struct { // NodeID (optional) Identifier of the node to get. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node to get. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper to get. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
AccessibilityGetAXNodeAndAncestors (experimental) Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously.
func (AccessibilityGetAXNodeAndAncestors) Call ¶ added in v0.102.0
func (m AccessibilityGetAXNodeAndAncestors) Call(c Client) (*AccessibilityGetAXNodeAndAncestorsResult, error)
Call the request.
func (AccessibilityGetAXNodeAndAncestors) ProtoReq ¶ added in v0.102.0
func (m AccessibilityGetAXNodeAndAncestors) ProtoReq() string
ProtoReq name.
type AccessibilityGetAXNodeAndAncestorsResult ¶ added in v0.102.0
type AccessibilityGetAXNodeAndAncestorsResult struct { // Nodes ... Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityGetAXNodeAndAncestorsResult (experimental) ...
type AccessibilityGetChildAXNodes ¶ added in v0.90.0
type AccessibilityGetChildAXNodes struct { // ID ... ID AccessibilityAXNodeID `json:"id"` // FrameID (optional) The frame in whose document the node resides. // If omitted, the root frame is used. FrameID PageFrameID `json:"frameId,omitempty"` }
AccessibilityGetChildAXNodes (experimental) Fetches a particular accessibility node by AXNodeId. Requires `enable()` to have been called previously.
func (AccessibilityGetChildAXNodes) Call ¶ added in v0.90.0
func (m AccessibilityGetChildAXNodes) Call(c Client) (*AccessibilityGetChildAXNodesResult, error)
Call the request.
func (AccessibilityGetChildAXNodes) ProtoReq ¶ added in v0.90.0
func (m AccessibilityGetChildAXNodes) ProtoReq() string
ProtoReq name.
type AccessibilityGetChildAXNodesResult ¶ added in v0.90.0
type AccessibilityGetChildAXNodesResult struct { // Nodes ... Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityGetChildAXNodesResult (experimental) ...
type AccessibilityGetFullAXTree ¶
type AccessibilityGetFullAXTree struct { // Depth (optional) The maximum depth at which descendants of the root node should be retrieved. // If omitted, the full tree is returned. Depth *int `json:"depth,omitempty"` // FrameID (optional) The frame for whose document the AX tree should be retrieved. // If omitted, the root frame is used. FrameID PageFrameID `json:"frameId,omitempty"` }
AccessibilityGetFullAXTree (experimental) Fetches the entire accessibility tree for the root Document.
func (AccessibilityGetFullAXTree) Call ¶
func (m AccessibilityGetFullAXTree) Call(c Client) (*AccessibilityGetFullAXTreeResult, error)
Call the request.
func (AccessibilityGetFullAXTree) ProtoReq ¶ added in v0.74.0
func (m AccessibilityGetFullAXTree) ProtoReq() string
ProtoReq name.
type AccessibilityGetFullAXTreeResult ¶
type AccessibilityGetFullAXTreeResult struct { // Nodes ... Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityGetFullAXTreeResult (experimental) ...
type AccessibilityGetPartialAXTree ¶
type AccessibilityGetPartialAXTree struct { // NodeID (optional) Identifier of the node to get the partial accessibility tree for. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node to get the partial accessibility tree for. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper to get the partial accessibility tree for. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // FetchRelatives (optional) Whether to fetch this node's ancestors, siblings and children. Defaults to true. FetchRelatives bool `json:"fetchRelatives,omitempty"` }
AccessibilityGetPartialAXTree (experimental) Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
func (AccessibilityGetPartialAXTree) Call ¶
func (m AccessibilityGetPartialAXTree) Call(c Client) (*AccessibilityGetPartialAXTreeResult, error)
Call the request.
func (AccessibilityGetPartialAXTree) ProtoReq ¶ added in v0.74.0
func (m AccessibilityGetPartialAXTree) ProtoReq() string
ProtoReq name.
type AccessibilityGetPartialAXTreeResult ¶
type AccessibilityGetPartialAXTreeResult struct { // Nodes The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and // children, if requested. Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityGetPartialAXTreeResult (experimental) ...
type AccessibilityGetRootAXNode ¶ added in v0.102.0
type AccessibilityGetRootAXNode struct { // FrameID (optional) The frame in whose document the node resides. // If omitted, the root frame is used. FrameID PageFrameID `json:"frameId,omitempty"` }
AccessibilityGetRootAXNode (experimental) Fetches the root node. Requires `enable()` to have been called previously.
func (AccessibilityGetRootAXNode) Call ¶ added in v0.102.0
func (m AccessibilityGetRootAXNode) Call(c Client) (*AccessibilityGetRootAXNodeResult, error)
Call the request.
func (AccessibilityGetRootAXNode) ProtoReq ¶ added in v0.102.0
func (m AccessibilityGetRootAXNode) ProtoReq() string
ProtoReq name.
type AccessibilityGetRootAXNodeResult ¶ added in v0.102.0
type AccessibilityGetRootAXNodeResult struct { // Node ... Node *AccessibilityAXNode `json:"node"` }
AccessibilityGetRootAXNodeResult (experimental) ...
type AccessibilityLoadComplete ¶ added in v0.102.0
type AccessibilityLoadComplete struct { // Root New document root node. Root *AccessibilityAXNode `json:"root"` }
AccessibilityLoadComplete (experimental) The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.
func (AccessibilityLoadComplete) ProtoEvent ¶ added in v0.102.0
func (evt AccessibilityLoadComplete) ProtoEvent() string
ProtoEvent name.
type AccessibilityNodesUpdated ¶ added in v0.102.0
type AccessibilityNodesUpdated struct { // Nodes Updated node data. Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityNodesUpdated (experimental) The nodesUpdated event is sent every time a previously requested node has changed the in tree.
func (AccessibilityNodesUpdated) ProtoEvent ¶ added in v0.102.0
func (evt AccessibilityNodesUpdated) ProtoEvent() string
ProtoEvent name.
type AccessibilityQueryAXTree ¶ added in v0.82.3
type AccessibilityQueryAXTree struct { // NodeID (optional) Identifier of the node for the root to query. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node for the root to query. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper for the root to query. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // AccessibleName (optional) Find nodes with this computed name. AccessibleName string `json:"accessibleName,omitempty"` // Role (optional) Find nodes with this computed role. Role string `json:"role,omitempty"` }
AccessibilityQueryAXTree (experimental) 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 match 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 (AccessibilityQueryAXTree) Call ¶ added in v0.82.3
func (m AccessibilityQueryAXTree) Call(c Client) (*AccessibilityQueryAXTreeResult, error)
Call the request.
func (AccessibilityQueryAXTree) ProtoReq ¶ added in v0.82.3
func (m AccessibilityQueryAXTree) ProtoReq() string
ProtoReq name.
type AccessibilityQueryAXTreeResult ¶ added in v0.82.3
type AccessibilityQueryAXTreeResult struct { // Nodes A list of `Accessibility.AXNode` matching the specified attributes, // including nodes that are ignored for accessibility. Nodes []*AccessibilityAXNode `json:"nodes"` }
AccessibilityQueryAXTreeResult (experimental) ...
type AnimationAnimation ¶
type AnimationAnimation struct { // ID `Animation`'s id. ID string `json:"id"` // Name `Animation`'s name. Name string `json:"name"` // PausedState `Animation`'s internal paused state. PausedState bool `json:"pausedState"` // PlayState `Animation`'s play state. PlayState string `json:"playState"` // PlaybackRate `Animation`'s playback rate. PlaybackRate float64 `json:"playbackRate"` // StartTime `Animation`'s start time. // Milliseconds for time based animations and // percentage [0 - 100] for scroll driven animations // (i.e. when viewOrScrollTimeline exists). StartTime float64 `json:"startTime"` // CurrentTime `Animation`'s current time. CurrentTime float64 `json:"currentTime"` // Type Animation type of `Animation`. Type AnimationAnimationType `json:"type"` // Source (optional) `Animation`'s source animation node. Source *AnimationAnimationEffect `json:"source,omitempty"` // CSSID (optional) A unique ID for `Animation` representing the sources that triggered this CSS // animation/transition. CSSID string `json:"cssId,omitempty"` // ViewOrScrollTimeline (optional) View or scroll timeline ViewOrScrollTimeline *AnimationViewOrScrollTimeline `json:"viewOrScrollTimeline,omitempty"` }
AnimationAnimation Animation instance.
type AnimationAnimationCanceled ¶
type AnimationAnimationCanceled struct { // ID Id of the animation that was cancelled. ID string `json:"id"` }
AnimationAnimationCanceled Event for when an animation has been cancelled.
func (AnimationAnimationCanceled) ProtoEvent ¶ added in v0.72.0
func (evt AnimationAnimationCanceled) ProtoEvent() string
ProtoEvent name.
type AnimationAnimationCreated ¶
type AnimationAnimationCreated struct { // ID Id of the animation that was created. ID string `json:"id"` }
AnimationAnimationCreated Event for each animation that has been created.
func (AnimationAnimationCreated) ProtoEvent ¶ added in v0.72.0
func (evt AnimationAnimationCreated) ProtoEvent() string
ProtoEvent name.
type AnimationAnimationEffect ¶
type AnimationAnimationEffect struct { // Delay `AnimationEffect`'s delay. Delay float64 `json:"delay"` // EndDelay `AnimationEffect`'s end delay. EndDelay float64 `json:"endDelay"` // IterationStart `AnimationEffect`'s iteration start. IterationStart float64 `json:"iterationStart"` // Iterations `AnimationEffect`'s iterations. Iterations float64 `json:"iterations"` // Duration `AnimationEffect`'s iteration duration. // Milliseconds for time based animations and // percentage [0 - 100] for scroll driven animations // (i.e. when viewOrScrollTimeline exists). Duration float64 `json:"duration"` // Direction `AnimationEffect`'s playback direction. Direction string `json:"direction"` // Fill `AnimationEffect`'s fill mode. Fill string `json:"fill"` // BackendNodeID (optional) `AnimationEffect`'s target node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // KeyframesRule (optional) `AnimationEffect`'s keyframes. KeyframesRule *AnimationKeyframesRule `json:"keyframesRule,omitempty"` // Easing `AnimationEffect`'s timing function. Easing string `json:"easing"` }
AnimationAnimationEffect AnimationEffect instance.
type AnimationAnimationStarted ¶
type AnimationAnimationStarted struct { // Animation that was started. Animation *AnimationAnimation `json:"animation"` }
AnimationAnimationStarted Event for animation that has been started.
func (AnimationAnimationStarted) ProtoEvent ¶ added in v0.72.0
func (evt AnimationAnimationStarted) ProtoEvent() string
ProtoEvent name.
type AnimationAnimationType ¶
type AnimationAnimationType string
AnimationAnimationType enum.
const ( // AnimationAnimationTypeCSSTransition enum const. AnimationAnimationTypeCSSTransition AnimationAnimationType = "CSSTransition" // AnimationAnimationTypeCSSAnimation enum const. AnimationAnimationTypeCSSAnimation AnimationAnimationType = "CSSAnimation" // AnimationAnimationTypeWebAnimation enum const. AnimationAnimationTypeWebAnimation AnimationAnimationType = "WebAnimation" )
type AnimationAnimationUpdated ¶ added in v0.116.0
type AnimationAnimationUpdated struct { // Animation that was updated. Animation *AnimationAnimation `json:"animation"` }
AnimationAnimationUpdated Event for animation that has been updated.
func (AnimationAnimationUpdated) ProtoEvent ¶ added in v0.116.0
func (evt AnimationAnimationUpdated) ProtoEvent() string
ProtoEvent name.
type AnimationDisable ¶
type AnimationDisable struct{}
AnimationDisable Disables animation domain notifications.
func (AnimationDisable) Call ¶
func (m AnimationDisable) Call(c Client) error
Call sends the request.
func (AnimationDisable) ProtoReq ¶ added in v0.74.0
func (m AnimationDisable) ProtoReq() string
ProtoReq name.
type AnimationEnable ¶
type AnimationEnable struct{}
AnimationEnable Enables animation domain notifications.
func (AnimationEnable) ProtoReq ¶ added in v0.74.0
func (m AnimationEnable) ProtoReq() string
ProtoReq name.
type AnimationGetCurrentTime ¶
type AnimationGetCurrentTime struct { // ID Id of animation. ID string `json:"id"` }
AnimationGetCurrentTime Returns the current time of the an animation.
func (AnimationGetCurrentTime) Call ¶
func (m AnimationGetCurrentTime) Call(c Client) (*AnimationGetCurrentTimeResult, error)
Call the request.
func (AnimationGetCurrentTime) ProtoReq ¶ added in v0.74.0
func (m AnimationGetCurrentTime) ProtoReq() string
ProtoReq name.
type AnimationGetCurrentTimeResult ¶
type AnimationGetCurrentTimeResult struct { // CurrentTime Current time of the page. CurrentTime float64 `json:"currentTime"` }
AnimationGetCurrentTimeResult ...
type AnimationGetPlaybackRate ¶
type AnimationGetPlaybackRate struct{}
AnimationGetPlaybackRate Gets the playback rate of the document timeline.
func (AnimationGetPlaybackRate) Call ¶
func (m AnimationGetPlaybackRate) Call(c Client) (*AnimationGetPlaybackRateResult, error)
Call the request.
func (AnimationGetPlaybackRate) ProtoReq ¶ added in v0.74.0
func (m AnimationGetPlaybackRate) ProtoReq() string
ProtoReq name.
type AnimationGetPlaybackRateResult ¶
type AnimationGetPlaybackRateResult struct { // PlaybackRate Playback rate for animations on page. PlaybackRate float64 `json:"playbackRate"` }
AnimationGetPlaybackRateResult ...
type AnimationKeyframeStyle ¶
type AnimationKeyframeStyle struct { // Offset Keyframe's time offset. Offset string `json:"offset"` // Easing `AnimationEffect`'s timing function. Easing string `json:"easing"` }
AnimationKeyframeStyle Keyframe Style.
type AnimationKeyframesRule ¶
type AnimationKeyframesRule struct { // Name (optional) CSS keyframed animation's name. Name string `json:"name,omitempty"` // Keyframes List of animation keyframes. Keyframes []*AnimationKeyframeStyle `json:"keyframes"` }
AnimationKeyframesRule Keyframes Rule.
type AnimationReleaseAnimations ¶
type AnimationReleaseAnimations struct { // Animations List of animation ids to seek. Animations []string `json:"animations"` }
AnimationReleaseAnimations Releases a set of animations to no longer be manipulated.
func (AnimationReleaseAnimations) Call ¶
func (m AnimationReleaseAnimations) Call(c Client) error
Call sends the request.
func (AnimationReleaseAnimations) ProtoReq ¶ added in v0.74.0
func (m AnimationReleaseAnimations) ProtoReq() string
ProtoReq name.
type AnimationResolveAnimation ¶
type AnimationResolveAnimation struct { // AnimationID Animation id. AnimationID string `json:"animationId"` }
AnimationResolveAnimation Gets the remote object of the Animation.
func (AnimationResolveAnimation) Call ¶
func (m AnimationResolveAnimation) Call(c Client) (*AnimationResolveAnimationResult, error)
Call the request.
func (AnimationResolveAnimation) ProtoReq ¶ added in v0.74.0
func (m AnimationResolveAnimation) ProtoReq() string
ProtoReq name.
type AnimationResolveAnimationResult ¶
type AnimationResolveAnimationResult struct { // RemoteObject Corresponding remote object. RemoteObject *RuntimeRemoteObject `json:"remoteObject"` }
AnimationResolveAnimationResult ...
type AnimationSeekAnimations ¶
type AnimationSeekAnimations struct { // Animations List of animation ids to seek. Animations []string `json:"animations"` // CurrentTime Set the current time of each animation. CurrentTime float64 `json:"currentTime"` }
AnimationSeekAnimations Seek a set of animations to a particular time within each animation.
func (AnimationSeekAnimations) Call ¶
func (m AnimationSeekAnimations) Call(c Client) error
Call sends the request.
func (AnimationSeekAnimations) ProtoReq ¶ added in v0.74.0
func (m AnimationSeekAnimations) ProtoReq() string
ProtoReq name.
type AnimationSetPaused ¶
type AnimationSetPaused struct { // Animations to set the pause state of. Animations []string `json:"animations"` // Paused state to set to. Paused bool `json:"paused"` }
AnimationSetPaused Sets the paused state of a set of animations.
func (AnimationSetPaused) Call ¶
func (m AnimationSetPaused) Call(c Client) error
Call sends the request.
func (AnimationSetPaused) ProtoReq ¶ added in v0.74.0
func (m AnimationSetPaused) ProtoReq() string
ProtoReq name.
type AnimationSetPlaybackRate ¶
type AnimationSetPlaybackRate struct { // PlaybackRate Playback rate for animations on page PlaybackRate float64 `json:"playbackRate"` }
AnimationSetPlaybackRate Sets the playback rate of the document timeline.
func (AnimationSetPlaybackRate) Call ¶
func (m AnimationSetPlaybackRate) Call(c Client) error
Call sends the request.
func (AnimationSetPlaybackRate) ProtoReq ¶ added in v0.74.0
func (m AnimationSetPlaybackRate) ProtoReq() string
ProtoReq name.
type AnimationSetTiming ¶
type AnimationSetTiming struct { // AnimationID Animation id. AnimationID string `json:"animationId"` // Duration of the animation. Duration float64 `json:"duration"` // Delay of the animation. Delay float64 `json:"delay"` }
AnimationSetTiming Sets the timing of an animation node.
func (AnimationSetTiming) Call ¶
func (m AnimationSetTiming) Call(c Client) error
Call sends the request.
func (AnimationSetTiming) ProtoReq ¶ added in v0.74.0
func (m AnimationSetTiming) ProtoReq() string
ProtoReq name.
type AnimationViewOrScrollTimeline ¶ added in v0.115.0
type AnimationViewOrScrollTimeline struct { // SourceNodeID (optional) Scroll container node SourceNodeID DOMBackendNodeID `json:"sourceNodeId,omitempty"` // StartOffset (optional) Represents the starting scroll position of the timeline // as a length offset in pixels from scroll origin. StartOffset *float64 `json:"startOffset,omitempty"` // EndOffset (optional) Represents the ending scroll position of the timeline // as a length offset in pixels from scroll origin. EndOffset *float64 `json:"endOffset,omitempty"` // SubjectNodeID (optional) The element whose principal box's visibility in the // scrollport defined the progress of the timeline. // Does not exist for animations with ScrollTimeline SubjectNodeID DOMBackendNodeID `json:"subjectNodeId,omitempty"` // Axis Orientation of the scroll Axis DOMScrollOrientation `json:"axis"` }
AnimationViewOrScrollTimeline Timeline instance.
type AuditsAffectedCookie ¶
type AuditsAffectedCookie struct { // Name The following three properties uniquely identify a cookie Name string `json:"name"` // Path ... Path string `json:"path"` // Domain ... Domain string `json:"domain"` }
AuditsAffectedCookie Information about a cookie that is affected by an inspector issue.
type AuditsAffectedFrame ¶ added in v0.48.0
type AuditsAffectedFrame struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
AuditsAffectedFrame Information about the frame affected by an inspector issue.
type AuditsAffectedRequest ¶ added in v0.48.0
type AuditsAffectedRequest struct { // RequestID The unique request id. RequestID NetworkRequestID `json:"requestId"` // URL (optional) ... URL string `json:"url,omitempty"` }
AuditsAffectedRequest Information about a request that is affected by an inspector issue.
type AuditsAttributionReportingIssueDetails ¶ added in v0.100.0
type AuditsAttributionReportingIssueDetails struct { // ViolationType ... ViolationType AuditsAttributionReportingIssueType `json:"violationType"` // Request (optional) ... Request *AuditsAffectedRequest `json:"request,omitempty"` // ViolatingNodeID (optional) ... ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"` // InvalidParameter (optional) ... InvalidParameter string `json:"invalidParameter,omitempty"` }
AuditsAttributionReportingIssueDetails Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api
type AuditsAttributionReportingIssueType ¶ added in v0.100.0
type AuditsAttributionReportingIssueType string
AuditsAttributionReportingIssueType ...
const ( // AuditsAttributionReportingIssueTypePermissionPolicyDisabled enum const. AuditsAttributionReportingIssueTypePermissionPolicyDisabled AuditsAttributionReportingIssueType = "PermissionPolicyDisabled" // AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin enum const. AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin AuditsAttributionReportingIssueType = "UntrustworthyReportingOrigin" // AuditsAttributionReportingIssueTypeInsecureContext enum const. AuditsAttributionReportingIssueTypeInsecureContext AuditsAttributionReportingIssueType = "InsecureContext" // AuditsAttributionReportingIssueTypeInvalidHeader enum const. AuditsAttributionReportingIssueTypeInvalidHeader AuditsAttributionReportingIssueType = "InvalidHeader" // AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader enum const. AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterTriggerHeader" // AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders enum const. AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders AuditsAttributionReportingIssueType = "SourceAndTriggerHeaders" // AuditsAttributionReportingIssueTypeSourceIgnored enum const. AuditsAttributionReportingIssueTypeSourceIgnored AuditsAttributionReportingIssueType = "SourceIgnored" // AuditsAttributionReportingIssueTypeTriggerIgnored enum const. AuditsAttributionReportingIssueTypeTriggerIgnored AuditsAttributionReportingIssueType = "TriggerIgnored" // AuditsAttributionReportingIssueTypeOsSourceIgnored enum const. AuditsAttributionReportingIssueTypeOsSourceIgnored AuditsAttributionReportingIssueType = "OsSourceIgnored" // AuditsAttributionReportingIssueTypeOsTriggerIgnored enum const. AuditsAttributionReportingIssueTypeOsTriggerIgnored AuditsAttributionReportingIssueType = "OsTriggerIgnored" // AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader enum const. AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsSourceHeader" // AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader enum const. AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsTriggerHeader" // AuditsAttributionReportingIssueTypeWebAndOsHeaders enum const. AuditsAttributionReportingIssueTypeWebAndOsHeaders AuditsAttributionReportingIssueType = "WebAndOsHeaders" // AuditsAttributionReportingIssueTypeNoWebOrOsSupport enum const. AuditsAttributionReportingIssueTypeNoWebOrOsSupport AuditsAttributionReportingIssueType = "NoWebOrOsSupport" AuditsAttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation AuditsAttributionReportingIssueType = "NavigationRegistrationWithoutTransientUserActivation" // AuditsAttributionReportingIssueTypeInvalidInfoHeader enum const. AuditsAttributionReportingIssueTypeInvalidInfoHeader AuditsAttributionReportingIssueType = "InvalidInfoHeader" // AuditsAttributionReportingIssueTypeNoRegisterSourceHeader enum const. AuditsAttributionReportingIssueTypeNoRegisterSourceHeader AuditsAttributionReportingIssueType = "NoRegisterSourceHeader" // AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader enum const. AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterTriggerHeader" // AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader enum const. AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader AuditsAttributionReportingIssueType = "NoRegisterOsSourceHeader" // AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader enum const. AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterOsTriggerHeader" )
type AuditsBlockedByResponseIssueDetails ¶ added in v0.52.0
type AuditsBlockedByResponseIssueDetails struct { // Request ... Request *AuditsAffectedRequest `json:"request"` // ParentFrame (optional) ... ParentFrame *AuditsAffectedFrame `json:"parentFrame,omitempty"` // BlockedFrame (optional) ... BlockedFrame *AuditsAffectedFrame `json:"blockedFrame,omitempty"` // Reason ... Reason AuditsBlockedByResponseReason `json:"reason"` }
AuditsBlockedByResponseIssueDetails Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.
type AuditsBlockedByResponseReason ¶ added in v0.52.0
type AuditsBlockedByResponseReason string
AuditsBlockedByResponseReason Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.
const ( // AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader enum const. AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader AuditsBlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader" AuditsBlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage AuditsBlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage" // AuditsBlockedByResponseReasonCorpNotSameOrigin enum const. AuditsBlockedByResponseReasonCorpNotSameOrigin AuditsBlockedByResponseReason = "CorpNotSameOrigin" // AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const. AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep" // AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip enum const. AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByDip" // AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip enum const. AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip" // AuditsBlockedByResponseReasonCorpNotSameSite enum const. AuditsBlockedByResponseReasonCorpNotSameSite AuditsBlockedByResponseReason = "CorpNotSameSite" )
type AuditsBounceTrackingIssueDetails ¶ added in v0.112.9
type AuditsBounceTrackingIssueDetails struct { // TrackingSites ... TrackingSites []string `json:"trackingSites"` }
AuditsBounceTrackingIssueDetails This issue warns about sites in the redirect chain of a finished navigation that may be flagged as trackers and have their state cleared if they don't receive a user interaction. Note that in this context 'site' means eTLD+1. For example, if the URL `https://example.test:80/bounce` was in the redirect chain, the site reported would be `example.test`.
type AuditsCheckContrast ¶ added in v0.93.0
type AuditsCheckContrast struct { // ReportAAA (optional) Whether to report WCAG AAA level issues. Default is false. ReportAAA bool `json:"reportAAA,omitempty"` }
AuditsCheckContrast Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
func (AuditsCheckContrast) Call ¶ added in v0.93.0
func (m AuditsCheckContrast) Call(c Client) error
Call sends the request.
func (AuditsCheckContrast) ProtoReq ¶ added in v0.93.0
func (m AuditsCheckContrast) ProtoReq() string
ProtoReq name.
type AuditsCheckFormsIssues ¶ added in v0.115.0
type AuditsCheckFormsIssues struct{}
AuditsCheckFormsIssues Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
func (AuditsCheckFormsIssues) Call ¶ added in v0.115.0
func (m AuditsCheckFormsIssues) Call(c Client) (*AuditsCheckFormsIssuesResult, error)
Call the request.
func (AuditsCheckFormsIssues) ProtoReq ¶ added in v0.115.0
func (m AuditsCheckFormsIssues) ProtoReq() string
ProtoReq name.
type AuditsCheckFormsIssuesResult ¶ added in v0.115.0
type AuditsCheckFormsIssuesResult struct { // FormIssues ... FormIssues []*AuditsGenericIssueDetails `json:"formIssues"` }
AuditsCheckFormsIssuesResult ...
type AuditsClientHintIssueDetails ¶ added in v0.102.0
type AuditsClientHintIssueDetails struct { // SourceCodeLocation ... SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // ClientHintIssueReason ... ClientHintIssueReason AuditsClientHintIssueReason `json:"clientHintIssueReason"` }
AuditsClientHintIssueDetails This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.
type AuditsClientHintIssueReason ¶ added in v0.102.0
type AuditsClientHintIssueReason string
AuditsClientHintIssueReason ...
const ( // AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin enum const. AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin AuditsClientHintIssueReason = "MetaTagAllowListInvalidOrigin" // AuditsClientHintIssueReasonMetaTagModifiedHTML enum const. AuditsClientHintIssueReasonMetaTagModifiedHTML AuditsClientHintIssueReason = "MetaTagModifiedHTML" )
type AuditsContentSecurityPolicyIssueDetails ¶ added in v0.72.0
type AuditsContentSecurityPolicyIssueDetails struct { // BlockedURL (optional) The url not included in allowed sources. BlockedURL string `json:"blockedURL,omitempty"` // ViolatedDirective Specific directive that is violated, causing the CSP issue. ViolatedDirective string `json:"violatedDirective"` // IsReportOnly ... IsReportOnly bool `json:"isReportOnly"` // ContentSecurityPolicyViolationType ... ContentSecurityPolicyViolationType AuditsContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"` // FrameAncestor (optional) ... FrameAncestor *AuditsAffectedFrame `json:"frameAncestor,omitempty"` // SourceCodeLocation (optional) ... SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation,omitempty"` // ViolatingNodeID (optional) ... ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"` }
AuditsContentSecurityPolicyIssueDetails ...
type AuditsContentSecurityPolicyViolationType ¶ added in v0.72.0
type AuditsContentSecurityPolicyViolationType string
AuditsContentSecurityPolicyViolationType ...
const ( // AuditsContentSecurityPolicyViolationTypeKInlineViolation enum const. AuditsContentSecurityPolicyViolationTypeKInlineViolation AuditsContentSecurityPolicyViolationType = "kInlineViolation" // AuditsContentSecurityPolicyViolationTypeKEvalViolation enum const. AuditsContentSecurityPolicyViolationTypeKEvalViolation AuditsContentSecurityPolicyViolationType = "kEvalViolation" // AuditsContentSecurityPolicyViolationTypeKURLViolation enum const. AuditsContentSecurityPolicyViolationTypeKURLViolation AuditsContentSecurityPolicyViolationType = "kURLViolation" // AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation enum const. AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation" // AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation enum const. AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation" // AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation enum const. AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation AuditsContentSecurityPolicyViolationType = "kWasmEvalViolation" )
type AuditsCookieDeprecationMetadataIssueDetails ¶ added in v0.115.0
type AuditsCookieDeprecationMetadataIssueDetails struct { // AllowedSites ... AllowedSites []string `json:"allowedSites"` // OptOutPercentage ... OptOutPercentage float64 `json:"optOutPercentage"` // IsOptOutTopLevel ... IsOptOutTopLevel bool `json:"isOptOutTopLevel"` // Operation ... Operation AuditsCookieOperation `json:"operation"` }
AuditsCookieDeprecationMetadataIssueDetails This issue warns about third-party sites that are accessing cookies on the current page, and have been permitted due to having a global metadata grant. Note that in this context 'site' means eTLD+1. For example, if the URL `https://example.test:80/web_page` was accessing cookies, the site reported would be `example.test`.
type AuditsCookieExclusionReason ¶ added in v0.103.0
type AuditsCookieExclusionReason string
AuditsCookieExclusionReason ...
const ( // AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax enum const. AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax AuditsCookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax" // AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure enum const. AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure AuditsCookieExclusionReason = "ExcludeSameSiteNoneInsecure" // AuditsCookieExclusionReasonExcludeSameSiteLax enum const. AuditsCookieExclusionReasonExcludeSameSiteLax AuditsCookieExclusionReason = "ExcludeSameSiteLax" // AuditsCookieExclusionReasonExcludeSameSiteStrict enum const. AuditsCookieExclusionReasonExcludeSameSiteStrict AuditsCookieExclusionReason = "ExcludeSameSiteStrict" // AuditsCookieExclusionReasonExcludeInvalidSameParty enum const. AuditsCookieExclusionReasonExcludeInvalidSameParty AuditsCookieExclusionReason = "ExcludeInvalidSameParty" // AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext enum const. AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext AuditsCookieExclusionReason = "ExcludeSamePartyCrossPartyContext" // AuditsCookieExclusionReasonExcludeDomainNonASCII enum const. AuditsCookieExclusionReasonExcludeDomainNonASCII AuditsCookieExclusionReason = "ExcludeDomainNonASCII" // AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet enum const. AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet AuditsCookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet" // AuditsCookieExclusionReasonExcludeThirdPartyPhaseout enum const. AuditsCookieExclusionReasonExcludeThirdPartyPhaseout AuditsCookieExclusionReason = "ExcludeThirdPartyPhaseout" )
type AuditsCookieIssueDetails ¶ added in v0.103.0
type AuditsCookieIssueDetails struct { // Cookie (optional) If AffectedCookie is not set then rawCookieLine contains the raw // Set-Cookie header string. This hints at a problem where the // cookie line is syntactically or semantically malformed in a way // that no valid cookie could be created. Cookie *AuditsAffectedCookie `json:"cookie,omitempty"` // RawCookieLine (optional) ... RawCookieLine string `json:"rawCookieLine,omitempty"` // CookieWarningReasons ... CookieWarningReasons []AuditsCookieWarningReason `json:"cookieWarningReasons"` // CookieExclusionReasons ... CookieExclusionReasons []AuditsCookieExclusionReason `json:"cookieExclusionReasons"` // Operation Optionally identifies the site-for-cookies and the cookie url, which // may be used by the front-end as additional context. Operation AuditsCookieOperation `json:"operation"` // SiteForCookies (optional) ... SiteForCookies string `json:"siteForCookies,omitempty"` // CookieURL (optional) ... CookieURL string `json:"cookieUrl,omitempty"` // Request (optional) ... Request *AuditsAffectedRequest `json:"request,omitempty"` }
AuditsCookieIssueDetails This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.
type AuditsCookieOperation ¶ added in v0.103.0
type AuditsCookieOperation string
AuditsCookieOperation ...
const ( // AuditsCookieOperationSetCookie enum const. AuditsCookieOperationSetCookie AuditsCookieOperation = "SetCookie" // AuditsCookieOperationReadCookie enum const. AuditsCookieOperationReadCookie AuditsCookieOperation = "ReadCookie" )
type AuditsCookieWarningReason ¶ added in v0.103.0
type AuditsCookieWarningReason string
AuditsCookieWarningReason ...
const ( // AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext enum const. AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext AuditsCookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext" // AuditsCookieWarningReasonWarnSameSiteNoneInsecure enum const. AuditsCookieWarningReasonWarnSameSiteNoneInsecure AuditsCookieWarningReason = "WarnSameSiteNoneInsecure" // AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe enum const. AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe AuditsCookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe" // AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict enum const. AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict" // AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict enum const. AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict" // AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax enum const. AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax" // AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict enum const. AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict" // AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax enum const. AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax" // AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize enum const. AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize AuditsCookieWarningReason = "WarnAttributeValueExceedsMaxSize" // AuditsCookieWarningReasonWarnDomainNonASCII enum const. AuditsCookieWarningReasonWarnDomainNonASCII AuditsCookieWarningReason = "WarnDomainNonASCII" // AuditsCookieWarningReasonWarnThirdPartyPhaseout enum const. AuditsCookieWarningReasonWarnThirdPartyPhaseout AuditsCookieWarningReason = "WarnThirdPartyPhaseout" // AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion enum const. AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion AuditsCookieWarningReason = "WarnCrossSiteRedirectDowngradeChangesInclusion" )
type AuditsCorsIssueDetails ¶ added in v0.93.0
type AuditsCorsIssueDetails struct { // CorsErrorStatus ... CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus"` // IsWarning ... IsWarning bool `json:"isWarning"` // Request ... Request *AuditsAffectedRequest `json:"request"` // Location (optional) ... Location *AuditsSourceCodeLocation `json:"location,omitempty"` // InitiatorOrigin (optional) ... InitiatorOrigin string `json:"initiatorOrigin,omitempty"` // ResourceIPAddressSpace (optional) ... ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace,omitempty"` // ClientSecurityState (optional) ... ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"` }
AuditsCorsIssueDetails Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.
type AuditsDeprecationIssueDetails ¶ added in v0.102.0
type AuditsDeprecationIssueDetails struct { // AffectedFrame (optional) ... AffectedFrame *AuditsAffectedFrame `json:"affectedFrame,omitempty"` // SourceCodeLocation ... SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // Type One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5 Type string `json:"type"` }
AuditsDeprecationIssueDetails This issue tracks information needed to print a deprecation message. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
type AuditsDisable ¶
type AuditsDisable struct{}
AuditsDisable Disables issues domain, prevents further issues from being reported to the client.
func (AuditsDisable) ProtoReq ¶ added in v0.74.0
func (m AuditsDisable) ProtoReq() string
ProtoReq name.
type AuditsEnable ¶
type AuditsEnable struct{}
AuditsEnable Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event.
func (AuditsEnable) ProtoReq ¶ added in v0.74.0
func (m AuditsEnable) ProtoReq() string
ProtoReq name.
type AuditsFailedRequestInfo ¶ added in v0.115.0
type AuditsFailedRequestInfo struct { // URL The URL that failed to load. URL string `json:"url"` // FailureMessage The failure message for the failed request. FailureMessage string `json:"failureMessage"` // RequestID (optional) ... RequestID NetworkRequestID `json:"requestId,omitempty"` }
AuditsFailedRequestInfo ...
type AuditsFederatedAuthRequestIssueDetails ¶ added in v0.102.1
type AuditsFederatedAuthRequestIssueDetails struct { // FederatedAuthRequestIssueReason ... FederatedAuthRequestIssueReason AuditsFederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"` }
AuditsFederatedAuthRequestIssueDetails ...
type AuditsFederatedAuthRequestIssueReason ¶ added in v0.102.1
type AuditsFederatedAuthRequestIssueReason string
AuditsFederatedAuthRequestIssueReason Represents the failure reason when a federated authentication reason fails. Should be updated alongside RequestIdTokenStatus in third_party/blink/public/mojom/devtools/inspector_issue.mojom to include all cases except for success.
const ( // AuditsFederatedAuthRequestIssueReasonShouldEmbargo enum const. AuditsFederatedAuthRequestIssueReasonShouldEmbargo AuditsFederatedAuthRequestIssueReason = "ShouldEmbargo" // AuditsFederatedAuthRequestIssueReasonTooManyRequests enum const. AuditsFederatedAuthRequestIssueReasonTooManyRequests AuditsFederatedAuthRequestIssueReason = "TooManyRequests" // AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound enum const. AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound AuditsFederatedAuthRequestIssueReason = "WellKnownHttpNotFound" // AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse enum const. AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse AuditsFederatedAuthRequestIssueReason = "WellKnownNoResponse" // AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse enum const. AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidResponse" // AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty enum const. AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty AuditsFederatedAuthRequestIssueReason = "WellKnownListEmpty" // AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType enum const. AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidContentType" // AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown enum const. AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown AuditsFederatedAuthRequestIssueReason = "ConfigNotInWellKnown" // AuditsFederatedAuthRequestIssueReasonWellKnownTooBig enum const. AuditsFederatedAuthRequestIssueReasonWellKnownTooBig AuditsFederatedAuthRequestIssueReason = "WellKnownTooBig" // AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound enum const. AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ConfigHttpNotFound" // AuditsFederatedAuthRequestIssueReasonConfigNoResponse enum const. AuditsFederatedAuthRequestIssueReasonConfigNoResponse AuditsFederatedAuthRequestIssueReason = "ConfigNoResponse" // AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse enum const. AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse AuditsFederatedAuthRequestIssueReason = "ConfigInvalidResponse" // AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType enum const. AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType AuditsFederatedAuthRequestIssueReason = "ConfigInvalidContentType" // AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound enum const. AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ClientMetadataHttpNotFound" // AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse enum const. AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataNoResponse" // AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse enum const. AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse" // AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType enum const. AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidContentType" // AuditsFederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy enum const. AuditsFederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy AuditsFederatedAuthRequestIssueReason = "IdpNotPotentiallyTrustworthy" // AuditsFederatedAuthRequestIssueReasonDisabledInSettings enum const. AuditsFederatedAuthRequestIssueReasonDisabledInSettings AuditsFederatedAuthRequestIssueReason = "DisabledInSettings" // AuditsFederatedAuthRequestIssueReasonDisabledInFlags enum const. AuditsFederatedAuthRequestIssueReasonDisabledInFlags AuditsFederatedAuthRequestIssueReason = "DisabledInFlags" // AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin enum const. AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin AuditsFederatedAuthRequestIssueReason = "ErrorFetchingSignin" // AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse enum const. AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse AuditsFederatedAuthRequestIssueReason = "InvalidSigninResponse" // AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound enum const. AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound AuditsFederatedAuthRequestIssueReason = "AccountsHttpNotFound" // AuditsFederatedAuthRequestIssueReasonAccountsNoResponse enum const. AuditsFederatedAuthRequestIssueReasonAccountsNoResponse AuditsFederatedAuthRequestIssueReason = "AccountsNoResponse" // AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse enum const. AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse AuditsFederatedAuthRequestIssueReason = "AccountsInvalidResponse" // AuditsFederatedAuthRequestIssueReasonAccountsListEmpty enum const. AuditsFederatedAuthRequestIssueReasonAccountsListEmpty AuditsFederatedAuthRequestIssueReason = "AccountsListEmpty" // AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType enum const. AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType AuditsFederatedAuthRequestIssueReason = "AccountsInvalidContentType" // AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound enum const. AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound AuditsFederatedAuthRequestIssueReason = "IdTokenHttpNotFound" // AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse enum const. AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse AuditsFederatedAuthRequestIssueReason = "IdTokenNoResponse" // AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse enum const. AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidResponse" // AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse enum const. AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenIdpErrorResponse" // AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse enum const. AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenCrossSiteIdpErrorResponse" // AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest enum const. AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidRequest" // AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType enum const. AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidContentType" // AuditsFederatedAuthRequestIssueReasonErrorIDToken enum const. AuditsFederatedAuthRequestIssueReasonErrorIDToken AuditsFederatedAuthRequestIssueReason = "ErrorIdToken" // AuditsFederatedAuthRequestIssueReasonCanceled enum const. AuditsFederatedAuthRequestIssueReasonCanceled AuditsFederatedAuthRequestIssueReason = "Canceled" // AuditsFederatedAuthRequestIssueReasonRpPageNotVisible enum const. AuditsFederatedAuthRequestIssueReasonRpPageNotVisible AuditsFederatedAuthRequestIssueReason = "RpPageNotVisible" // AuditsFederatedAuthRequestIssueReasonSilentMediationFailure enum const. AuditsFederatedAuthRequestIssueReasonSilentMediationFailure AuditsFederatedAuthRequestIssueReason = "SilentMediationFailure" // AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked enum const. AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked AuditsFederatedAuthRequestIssueReason = "ThirdPartyCookiesBlocked" // AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp enum const. AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthRequestIssueReason = "NotSignedInWithIdp" // AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation enum const. AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation AuditsFederatedAuthRequestIssueReason = "MissingTransientUserActivation" // AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode enum const. AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode AuditsFederatedAuthRequestIssueReason = "ReplacedByButtonMode" // AuditsFederatedAuthRequestIssueReasonInvalidFieldsSpecified enum const. AuditsFederatedAuthRequestIssueReasonInvalidFieldsSpecified AuditsFederatedAuthRequestIssueReason = "InvalidFieldsSpecified" // AuditsFederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque enum const. AuditsFederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque AuditsFederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque" // AuditsFederatedAuthRequestIssueReasonTypeNotMatching enum const. AuditsFederatedAuthRequestIssueReasonTypeNotMatching AuditsFederatedAuthRequestIssueReason = "TypeNotMatching" )
type AuditsFederatedAuthUserInfoRequestIssueDetails ¶ added in v0.115.0
type AuditsFederatedAuthUserInfoRequestIssueDetails struct { // FederatedAuthUserInfoRequestIssueReason ... FederatedAuthUserInfoRequestIssueReason AuditsFederatedAuthUserInfoRequestIssueReason `json:"federatedAuthUserInfoRequestIssueReason"` }
AuditsFederatedAuthUserInfoRequestIssueDetails ...
type AuditsFederatedAuthUserInfoRequestIssueReason ¶ added in v0.115.0
type AuditsFederatedAuthUserInfoRequestIssueReason string
AuditsFederatedAuthUserInfoRequestIssueReason Represents the failure reason when a getUserInfo() call fails. Should be updated alongside FederatedAuthUserInfoRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.
const ( // AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin AuditsFederatedAuthUserInfoRequestIssueReason = "NotSameOrigin" // AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe AuditsFederatedAuthUserInfoRequestIssueReason = "NotIframe" // AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy AuditsFederatedAuthUserInfoRequestIssueReason = "NotPotentiallyTrustworthy" // AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoApiPermission" // AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthUserInfoRequestIssueReason = "NotSignedInWithIdp" // AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoAccountSharingPermission" // AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown enum const. AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidConfigOrWellKnown" // AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse enum const. AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidAccountsResponse" // AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts enum const. AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts AuditsFederatedAuthUserInfoRequestIssueReason = "NoReturningUserFromFetchedAccounts" )
type AuditsGenericIssueDetails ¶ added in v0.102.0
type AuditsGenericIssueDetails struct { // ErrorType Issues with the same errorType are aggregated in the frontend. ErrorType AuditsGenericIssueErrorType `json:"errorType"` // FrameID (optional) ... FrameID PageFrameID `json:"frameId,omitempty"` // ViolatingNodeID (optional) ... ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"` // ViolatingNodeAttribute (optional) ... ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty"` // Request (optional) ... Request *AuditsAffectedRequest `json:"request,omitempty"` }
AuditsGenericIssueDetails Depending on the concrete errorType, different properties are set.
type AuditsGenericIssueErrorType ¶ added in v0.102.0
type AuditsGenericIssueErrorType string
AuditsGenericIssueErrorType ...
const ( // AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError enum const. AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError AuditsGenericIssueErrorType = "CrossOriginPortalPostMessageError" // AuditsGenericIssueErrorTypeFormLabelForNameError enum const. AuditsGenericIssueErrorTypeFormLabelForNameError AuditsGenericIssueErrorType = "FormLabelForNameError" // AuditsGenericIssueErrorTypeFormDuplicateIDForInputError enum const. AuditsGenericIssueErrorTypeFormDuplicateIDForInputError AuditsGenericIssueErrorType = "FormDuplicateIdForInputError" // AuditsGenericIssueErrorTypeFormInputWithNoLabelError enum const. AuditsGenericIssueErrorTypeFormInputWithNoLabelError AuditsGenericIssueErrorType = "FormInputWithNoLabelError" // AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError enum const. AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError AuditsGenericIssueErrorType = "FormAutocompleteAttributeEmptyError" // AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError enum const. AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError AuditsGenericIssueErrorType = "FormEmptyIdAndNameAttributesForInputError" // AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID enum const. AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID AuditsGenericIssueErrorType = "FormAriaLabelledByToNonExistingId" // AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError enum const. AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError AuditsGenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError" // AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput enum const. AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput AuditsGenericIssueErrorType = "FormLabelHasNeitherForNorNestedInput" // AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError enum const. AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError AuditsGenericIssueErrorType = "FormLabelForMatchesNonExistingIdError" // AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError enum const. AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError AuditsGenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError" // AuditsGenericIssueErrorTypeResponseWasBlockedByORB enum const. AuditsGenericIssueErrorTypeResponseWasBlockedByORB AuditsGenericIssueErrorType = "ResponseWasBlockedByORB" )
type AuditsGetEncodedResponse ¶
type AuditsGetEncodedResponse struct { // RequestID Identifier of the network request to get content for. RequestID NetworkRequestID `json:"requestId"` // Encoding The encoding to use. Encoding AuditsGetEncodedResponseEncoding `json:"encoding"` // Quality (optional) The quality of the encoding (0-1). (defaults to 1) Quality *float64 `json:"quality,omitempty"` // SizeOnly (optional) Whether to only return the size information (defaults to false). SizeOnly bool `json:"sizeOnly,omitempty"` }
AuditsGetEncodedResponse Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
func (AuditsGetEncodedResponse) Call ¶
func (m AuditsGetEncodedResponse) Call(c Client) (*AuditsGetEncodedResponseResult, error)
Call the request.
func (AuditsGetEncodedResponse) ProtoReq ¶ added in v0.74.0
func (m AuditsGetEncodedResponse) ProtoReq() string
ProtoReq name.
type AuditsGetEncodedResponseEncoding ¶
type AuditsGetEncodedResponseEncoding string
AuditsGetEncodedResponseEncoding enum.
const ( // AuditsGetEncodedResponseEncodingWebp enum const. AuditsGetEncodedResponseEncodingWebp AuditsGetEncodedResponseEncoding = "webp" // AuditsGetEncodedResponseEncodingJpeg enum const. AuditsGetEncodedResponseEncodingJpeg AuditsGetEncodedResponseEncoding = "jpeg" // AuditsGetEncodedResponseEncodingPng enum const. AuditsGetEncodedResponseEncodingPng AuditsGetEncodedResponseEncoding = "png" )
type AuditsGetEncodedResponseResult ¶
type AuditsGetEncodedResponseResult struct { // Body (optional) The encoded body as a base64 string. Omitted if sizeOnly is true. Body []byte `json:"body,omitempty"` // OriginalSize Size before re-encoding. OriginalSize int `json:"originalSize"` // EncodedSize Size after re-encoding. EncodedSize int `json:"encodedSize"` }
AuditsGetEncodedResponseResult ...
type AuditsHeavyAdIssueDetails ¶ added in v0.52.0
type AuditsHeavyAdIssueDetails struct { // Resolution The resolution status, either blocking the content or warning. Resolution AuditsHeavyAdResolutionStatus `json:"resolution"` // Reason The reason the ad was blocked, total network or cpu or peak cpu. Reason AuditsHeavyAdReason `json:"reason"` // Frame The frame that was blocked. Frame *AuditsAffectedFrame `json:"frame"` }
AuditsHeavyAdIssueDetails ...
type AuditsHeavyAdReason ¶ added in v0.52.0
type AuditsHeavyAdReason string
AuditsHeavyAdReason ...
const ( // AuditsHeavyAdReasonNetworkTotalLimit enum const. AuditsHeavyAdReasonNetworkTotalLimit AuditsHeavyAdReason = "NetworkTotalLimit" // AuditsHeavyAdReasonCPUTotalLimit enum const. AuditsHeavyAdReasonCPUTotalLimit AuditsHeavyAdReason = "CpuTotalLimit" // AuditsHeavyAdReasonCPUPeakLimit enum const. AuditsHeavyAdReasonCPUPeakLimit AuditsHeavyAdReason = "CpuPeakLimit" )
type AuditsHeavyAdResolutionStatus ¶ added in v0.52.0
type AuditsHeavyAdResolutionStatus string
AuditsHeavyAdResolutionStatus ...
const ( // AuditsHeavyAdResolutionStatusHeavyAdBlocked enum const. AuditsHeavyAdResolutionStatusHeavyAdBlocked AuditsHeavyAdResolutionStatus = "HeavyAdBlocked" // AuditsHeavyAdResolutionStatusHeavyAdWarning enum const. AuditsHeavyAdResolutionStatusHeavyAdWarning AuditsHeavyAdResolutionStatus = "HeavyAdWarning" )
type AuditsInspectorIssue ¶
type AuditsInspectorIssue struct { // Code ... Code AuditsInspectorIssueCode `json:"code"` // Details ... Details *AuditsInspectorIssueDetails `json:"details"` // IssueID (optional) A unique id for this issue. May be omitted if no other entity (e.g. // exception, CDP message, etc.) is referencing this issue. IssueID AuditsIssueID `json:"issueId,omitempty"` }
AuditsInspectorIssue An inspector issue reported from the back-end.
type AuditsInspectorIssueCode ¶
type AuditsInspectorIssueCode string
AuditsInspectorIssueCode A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.
const ( // AuditsInspectorIssueCodeCookieIssue enum const. AuditsInspectorIssueCodeCookieIssue AuditsInspectorIssueCode = "CookieIssue" // AuditsInspectorIssueCodeMixedContentIssue enum const. AuditsInspectorIssueCodeMixedContentIssue AuditsInspectorIssueCode = "MixedContentIssue" // AuditsInspectorIssueCodeBlockedByResponseIssue enum const. AuditsInspectorIssueCodeBlockedByResponseIssue AuditsInspectorIssueCode = "BlockedByResponseIssue" // AuditsInspectorIssueCodeHeavyAdIssue enum const. AuditsInspectorIssueCodeHeavyAdIssue AuditsInspectorIssueCode = "HeavyAdIssue" // AuditsInspectorIssueCodeContentSecurityPolicyIssue enum const. AuditsInspectorIssueCodeContentSecurityPolicyIssue AuditsInspectorIssueCode = "ContentSecurityPolicyIssue" AuditsInspectorIssueCodeSharedArrayBufferIssue AuditsInspectorIssueCode = "SharedArrayBufferIssue" // AuditsInspectorIssueCodeLowTextContrastIssue enum const. AuditsInspectorIssueCodeLowTextContrastIssue AuditsInspectorIssueCode = "LowTextContrastIssue" // AuditsInspectorIssueCodeCorsIssue enum const. AuditsInspectorIssueCodeCorsIssue AuditsInspectorIssueCode = "CorsIssue" // AuditsInspectorIssueCodeAttributionReportingIssue enum const. AuditsInspectorIssueCodeAttributionReportingIssue AuditsInspectorIssueCode = "AttributionReportingIssue" // AuditsInspectorIssueCodeQuirksModeIssue enum const. AuditsInspectorIssueCodeQuirksModeIssue AuditsInspectorIssueCode = "QuirksModeIssue" AuditsInspectorIssueCodeNavigatorUserAgentIssue AuditsInspectorIssueCode = "NavigatorUserAgentIssue" // AuditsInspectorIssueCodeGenericIssue enum const. AuditsInspectorIssueCodeGenericIssue AuditsInspectorIssueCode = "GenericIssue" // AuditsInspectorIssueCodeDeprecationIssue enum const. AuditsInspectorIssueCodeDeprecationIssue AuditsInspectorIssueCode = "DeprecationIssue" // AuditsInspectorIssueCodeClientHintIssue enum const. AuditsInspectorIssueCodeClientHintIssue AuditsInspectorIssueCode = "ClientHintIssue" // AuditsInspectorIssueCodeFederatedAuthRequestIssue enum const. AuditsInspectorIssueCodeFederatedAuthRequestIssue AuditsInspectorIssueCode = "FederatedAuthRequestIssue" // AuditsInspectorIssueCodeBounceTrackingIssue enum const. AuditsInspectorIssueCodeBounceTrackingIssue AuditsInspectorIssueCode = "BounceTrackingIssue" // AuditsInspectorIssueCodeCookieDeprecationMetadataIssue enum const. AuditsInspectorIssueCodeCookieDeprecationMetadataIssue AuditsInspectorIssueCode = "CookieDeprecationMetadataIssue" // AuditsInspectorIssueCodeStylesheetLoadingIssue enum const. AuditsInspectorIssueCodeStylesheetLoadingIssue AuditsInspectorIssueCode = "StylesheetLoadingIssue" // AuditsInspectorIssueCodeFederatedAuthUserInfoRequestIssue enum const. AuditsInspectorIssueCodeFederatedAuthUserInfoRequestIssue AuditsInspectorIssueCode = "FederatedAuthUserInfoRequestIssue" // AuditsInspectorIssueCodePropertyRuleIssue enum const. AuditsInspectorIssueCodePropertyRuleIssue AuditsInspectorIssueCode = "PropertyRuleIssue" AuditsInspectorIssueCodeSharedDictionaryIssue AuditsInspectorIssueCode = "SharedDictionaryIssue" )
type AuditsInspectorIssueDetails ¶
type AuditsInspectorIssueDetails struct { // CookieIssueDetails (optional) ... CookieIssueDetails *AuditsCookieIssueDetails `json:"cookieIssueDetails,omitempty"` // MixedContentIssueDetails (optional) ... MixedContentIssueDetails *AuditsMixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"` // BlockedByResponseIssueDetails (optional) ... BlockedByResponseIssueDetails *AuditsBlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"` // HeavyAdIssueDetails (optional) ... HeavyAdIssueDetails *AuditsHeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"` // ContentSecurityPolicyIssueDetails (optional) ... ContentSecurityPolicyIssueDetails *AuditsContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` SharedArrayBufferIssueDetails *AuditsSharedArrayBufferIssueDetails `json:"sharedArrayBufferIssueDetails,omitempty"` // LowTextContrastIssueDetails (optional) ... LowTextContrastIssueDetails *AuditsLowTextContrastIssueDetails `json:"lowTextContrastIssueDetails,omitempty"` // CorsIssueDetails (optional) ... CorsIssueDetails *AuditsCorsIssueDetails `json:"corsIssueDetails,omitempty"` // AttributionReportingIssueDetails (optional) ... AttributionReportingIssueDetails *AuditsAttributionReportingIssueDetails `json:"attributionReportingIssueDetails,omitempty"` // QuirksModeIssueDetails (optional) ... QuirksModeIssueDetails *AuditsQuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty"` NavigatorUserAgentIssueDetails *AuditsNavigatorUserAgentIssueDetails `json:"navigatorUserAgentIssueDetails,omitempty"` // GenericIssueDetails (optional) ... GenericIssueDetails *AuditsGenericIssueDetails `json:"genericIssueDetails,omitempty"` // DeprecationIssueDetails (optional) ... DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"` // ClientHintIssueDetails (optional) ... ClientHintIssueDetails *AuditsClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"` // FederatedAuthRequestIssueDetails (optional) ... FederatedAuthRequestIssueDetails *AuditsFederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"` // BounceTrackingIssueDetails (optional) ... BounceTrackingIssueDetails *AuditsBounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty"` // CookieDeprecationMetadataIssueDetails (optional) ... CookieDeprecationMetadataIssueDetails *AuditsCookieDeprecationMetadataIssueDetails `json:"cookieDeprecationMetadataIssueDetails,omitempty"` // StylesheetLoadingIssueDetails (optional) ... StylesheetLoadingIssueDetails *AuditsStylesheetLoadingIssueDetails `json:"stylesheetLoadingIssueDetails,omitempty"` // PropertyRuleIssueDetails (optional) ... PropertyRuleIssueDetails *AuditsPropertyRuleIssueDetails `json:"propertyRuleIssueDetails,omitempty"` // FederatedAuthUserInfoRequestIssueDetails (optional) ... FederatedAuthUserInfoRequestIssueDetails *AuditsFederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty"` SharedDictionaryIssueDetails *AuditsSharedDictionaryIssueDetails `json:"sharedDictionaryIssueDetails,omitempty"` }
AuditsInspectorIssueDetails This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.
type AuditsIssueAdded ¶
type AuditsIssueAdded struct { // Issue ... Issue *AuditsInspectorIssue `json:"issue"` }
AuditsIssueAdded ...
func (AuditsIssueAdded) ProtoEvent ¶ added in v0.72.0
func (evt AuditsIssueAdded) ProtoEvent() string
ProtoEvent name.
type AuditsIssueID ¶ added in v0.101.5
type AuditsIssueID string
AuditsIssueID A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue.
type AuditsLowTextContrastIssueDetails ¶ added in v0.93.0
type AuditsLowTextContrastIssueDetails struct { // ViolatingNodeID ... ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId"` // ViolatingNodeSelector ... ViolatingNodeSelector string `json:"violatingNodeSelector"` // ContrastRatio ... ContrastRatio float64 `json:"contrastRatio"` // ThresholdAA ... ThresholdAA float64 `json:"thresholdAA"` // ThresholdAAA ... ThresholdAAA float64 `json:"thresholdAAA"` // FontSize ... FontSize string `json:"fontSize"` // FontWeight ... FontWeight string `json:"fontWeight"` }
AuditsLowTextContrastIssueDetails ...
type AuditsMixedContentIssueDetails ¶ added in v0.48.0
type AuditsMixedContentIssueDetails struct { // ResourceType (optional) The type of resource causing the mixed content issue (css, js, iframe, // form,...). Marked as optional because it is mapped to from // blink::mojom::RequestContextType, which will be replaced // by network::mojom::RequestDestination ResourceType AuditsMixedContentResourceType `json:"resourceType,omitempty"` // ResolutionStatus The way the mixed content issue is being resolved. ResolutionStatus AuditsMixedContentResolutionStatus `json:"resolutionStatus"` // InsecureURL The unsafe http url causing the mixed content issue. InsecureURL string `json:"insecureURL"` // MainResourceURL The url responsible for the call to an unsafe url. MainResourceURL string `json:"mainResourceURL"` // Request (optional) The mixed content request. // Does not always exist (e.g. for unsafe form submission urls). Request *AuditsAffectedRequest `json:"request,omitempty"` // Frame (optional) Optional because not every mixed content issue is necessarily linked to a frame. Frame *AuditsAffectedFrame `json:"frame,omitempty"` }
AuditsMixedContentIssueDetails ...
type AuditsMixedContentResolutionStatus ¶ added in v0.48.0
type AuditsMixedContentResolutionStatus string
AuditsMixedContentResolutionStatus ...
const ( // AuditsMixedContentResolutionStatusMixedContentBlocked enum const. AuditsMixedContentResolutionStatusMixedContentBlocked AuditsMixedContentResolutionStatus = "MixedContentBlocked" // AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded enum const. AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded AuditsMixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded" // AuditsMixedContentResolutionStatusMixedContentWarning enum const. AuditsMixedContentResolutionStatusMixedContentWarning AuditsMixedContentResolutionStatus = "MixedContentWarning" )
type AuditsMixedContentResourceType ¶ added in v0.48.0
type AuditsMixedContentResourceType string
AuditsMixedContentResourceType ...
const ( // AuditsMixedContentResourceTypeAttributionSrc enum const. AuditsMixedContentResourceTypeAttributionSrc AuditsMixedContentResourceType = "AttributionSrc" // AuditsMixedContentResourceTypeAudio enum const. AuditsMixedContentResourceTypeAudio AuditsMixedContentResourceType = "Audio" // AuditsMixedContentResourceTypeBeacon enum const. AuditsMixedContentResourceTypeBeacon AuditsMixedContentResourceType = "Beacon" // AuditsMixedContentResourceTypeCSPReport enum const. AuditsMixedContentResourceTypeCSPReport AuditsMixedContentResourceType = "CSPReport" // AuditsMixedContentResourceTypeDownload enum const. AuditsMixedContentResourceTypeDownload AuditsMixedContentResourceType = "Download" // AuditsMixedContentResourceTypeEventSource enum const. AuditsMixedContentResourceTypeEventSource AuditsMixedContentResourceType = "EventSource" // AuditsMixedContentResourceTypeFavicon enum const. AuditsMixedContentResourceTypeFavicon AuditsMixedContentResourceType = "Favicon" // AuditsMixedContentResourceTypeFont enum const. AuditsMixedContentResourceTypeFont AuditsMixedContentResourceType = "Font" // AuditsMixedContentResourceTypeForm enum const. AuditsMixedContentResourceTypeForm AuditsMixedContentResourceType = "Form" // AuditsMixedContentResourceTypeFrame enum const. AuditsMixedContentResourceTypeFrame AuditsMixedContentResourceType = "Frame" // AuditsMixedContentResourceTypeImage enum const. AuditsMixedContentResourceTypeImage AuditsMixedContentResourceType = "Image" // AuditsMixedContentResourceTypeImport enum const. AuditsMixedContentResourceTypeImport AuditsMixedContentResourceType = "Import" // AuditsMixedContentResourceTypeJSON enum const. AuditsMixedContentResourceTypeJSON AuditsMixedContentResourceType = "JSON" // AuditsMixedContentResourceTypeManifest enum const. AuditsMixedContentResourceTypeManifest AuditsMixedContentResourceType = "Manifest" // AuditsMixedContentResourceTypePing enum const. AuditsMixedContentResourceTypePing AuditsMixedContentResourceType = "Ping" // AuditsMixedContentResourceTypePluginData enum const. AuditsMixedContentResourceTypePluginData AuditsMixedContentResourceType = "PluginData" // AuditsMixedContentResourceTypePluginResource enum const. AuditsMixedContentResourceTypePluginResource AuditsMixedContentResourceType = "PluginResource" // AuditsMixedContentResourceTypePrefetch enum const. AuditsMixedContentResourceTypePrefetch AuditsMixedContentResourceType = "Prefetch" // AuditsMixedContentResourceTypeResource enum const. AuditsMixedContentResourceTypeResource AuditsMixedContentResourceType = "Resource" // AuditsMixedContentResourceTypeScript enum const. AuditsMixedContentResourceTypeScript AuditsMixedContentResourceType = "Script" // AuditsMixedContentResourceTypeServiceWorker enum const. AuditsMixedContentResourceTypeServiceWorker AuditsMixedContentResourceType = "ServiceWorker" AuditsMixedContentResourceTypeSharedWorker AuditsMixedContentResourceType = "SharedWorker" // AuditsMixedContentResourceTypeSpeculationRules enum const. AuditsMixedContentResourceTypeSpeculationRules AuditsMixedContentResourceType = "SpeculationRules" // AuditsMixedContentResourceTypeStylesheet enum const. AuditsMixedContentResourceTypeStylesheet AuditsMixedContentResourceType = "Stylesheet" // AuditsMixedContentResourceTypeTrack enum const. AuditsMixedContentResourceTypeTrack AuditsMixedContentResourceType = "Track" // AuditsMixedContentResourceTypeVideo enum const. AuditsMixedContentResourceTypeVideo AuditsMixedContentResourceType = "Video" // AuditsMixedContentResourceTypeWorker enum const. AuditsMixedContentResourceTypeWorker AuditsMixedContentResourceType = "Worker" // AuditsMixedContentResourceTypeXMLHTTPRequest enum const. AuditsMixedContentResourceTypeXMLHTTPRequest AuditsMixedContentResourceType = "XMLHttpRequest" // AuditsMixedContentResourceTypeXSLT enum const. AuditsMixedContentResourceTypeXSLT AuditsMixedContentResourceType = "XSLT" )
type AuditsNavigatorUserAgentIssueDetails ¶ added in v0.101.5
type AuditsNavigatorUserAgentIssueDetails struct { string `json:"url"` Location *AuditsSourceCodeLocation `json:"location,omitempty"` }URL
AuditsNavigatorUserAgentIssueDetails (deprecated) ...
type AuditsPropertyRuleIssueDetails ¶ added in v0.115.0
type AuditsPropertyRuleIssueDetails struct { // SourceCodeLocation Source code position of the property rule. SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // PropertyRuleIssueReason Reason why the property rule was discarded. PropertyRuleIssueReason AuditsPropertyRuleIssueReason `json:"propertyRuleIssueReason"` // PropertyValue (optional) The value of the property rule property that failed to parse PropertyValue string `json:"propertyValue,omitempty"` }
AuditsPropertyRuleIssueDetails This issue warns about errors in property rules that lead to property registrations being ignored.
type AuditsPropertyRuleIssueReason ¶ added in v0.115.0
type AuditsPropertyRuleIssueReason string
AuditsPropertyRuleIssueReason ...
const ( // AuditsPropertyRuleIssueReasonInvalidSyntax enum const. AuditsPropertyRuleIssueReasonInvalidSyntax AuditsPropertyRuleIssueReason = "InvalidSyntax" // AuditsPropertyRuleIssueReasonInvalidInitialValue enum const. AuditsPropertyRuleIssueReasonInvalidInitialValue AuditsPropertyRuleIssueReason = "InvalidInitialValue" // AuditsPropertyRuleIssueReasonInvalidInherits enum const. AuditsPropertyRuleIssueReasonInvalidInherits AuditsPropertyRuleIssueReason = "InvalidInherits" // AuditsPropertyRuleIssueReasonInvalidName enum const. AuditsPropertyRuleIssueReasonInvalidName AuditsPropertyRuleIssueReason = "InvalidName" )
type AuditsQuirksModeIssueDetails ¶ added in v0.100.0
type AuditsQuirksModeIssueDetails struct { // IsLimitedQuirksMode If false, it means the document's mode is "quirks" // instead of "limited-quirks". IsLimitedQuirksMode bool `json:"isLimitedQuirksMode"` // DocumentNodeID ... DocumentNodeID DOMBackendNodeID `json:"documentNodeId"` // URL ... URL string `json:"url"` // FrameID ... FrameID PageFrameID `json:"frameId"` // LoaderID ... LoaderID NetworkLoaderID `json:"loaderId"` }
AuditsQuirksModeIssueDetails Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.
type AuditsSharedArrayBufferIssueDetails ¶ added in v0.90.0
type AuditsSharedArrayBufferIssueDetails struct { AuditsSourceCodeLocation `json:"sourceCodeLocation"` IsWarning bool `json:"isWarning"` Type AuditsSharedArrayBufferIssueType `json:"type"` }SourceCodeLocation *
AuditsSharedArrayBufferIssueDetails Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.
type AuditsSharedArrayBufferIssueType ¶ added in v0.90.0
type AuditsSharedArrayBufferIssueType string
AuditsSharedArrayBufferIssueType ...
const ( AuditsSharedArrayBufferIssueType = "TransferIssue" AuditsSharedArrayBufferIssueTypeCreationIssue AuditsSharedArrayBufferIssueType = "CreationIssue" )AuditsSharedArrayBufferIssueTypeTransferIssue
type AuditsSharedDictionaryError ¶ added in v0.116.0
type AuditsSharedDictionaryError string
AuditsSharedDictionaryError ...
const ( AuditsSharedDictionaryError = "UseErrorCrossOriginNoCorsRequest" AuditsSharedDictionaryErrorUseErrorDictionaryLoadFailure AuditsSharedDictionaryError = "UseErrorDictionaryLoadFailure" AuditsSharedDictionaryErrorUseErrorMatchingDictionaryNotUsed AuditsSharedDictionaryError = "UseErrorMatchingDictionaryNotUsed" AuditsSharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader AuditsSharedDictionaryError = "UseErrorUnexpectedContentDictionaryHeader" AuditsSharedDictionaryErrorWriteErrorCossOriginNoCorsRequest AuditsSharedDictionaryError = "WriteErrorCossOriginNoCorsRequest" AuditsSharedDictionaryErrorWriteErrorDisallowedBySettings AuditsSharedDictionaryError = "WriteErrorDisallowedBySettings" AuditsSharedDictionaryErrorWriteErrorExpiredResponse AuditsSharedDictionaryError = "WriteErrorExpiredResponse" AuditsSharedDictionaryErrorWriteErrorFeatureDisabled AuditsSharedDictionaryError = "WriteErrorFeatureDisabled" AuditsSharedDictionaryErrorWriteErrorInsufficientResources AuditsSharedDictionaryError = "WriteErrorInsufficientResources" AuditsSharedDictionaryErrorWriteErrorInvalidMatchField AuditsSharedDictionaryError = "WriteErrorInvalidMatchField" AuditsSharedDictionaryErrorWriteErrorInvalidStructuredHeader AuditsSharedDictionaryError = "WriteErrorInvalidStructuredHeader" AuditsSharedDictionaryErrorWriteErrorNavigationRequest AuditsSharedDictionaryError = "WriteErrorNavigationRequest" AuditsSharedDictionaryErrorWriteErrorNoMatchField AuditsSharedDictionaryError = "WriteErrorNoMatchField" AuditsSharedDictionaryErrorWriteErrorNonListMatchDestField AuditsSharedDictionaryError = "WriteErrorNonListMatchDestField" AuditsSharedDictionaryErrorWriteErrorNonSecureContext AuditsSharedDictionaryError = "WriteErrorNonSecureContext" AuditsSharedDictionaryErrorWriteErrorNonStringIDField AuditsSharedDictionaryError = "WriteErrorNonStringIdField" AuditsSharedDictionaryErrorWriteErrorNonStringInMatchDestList AuditsSharedDictionaryError = "WriteErrorNonStringInMatchDestList" AuditsSharedDictionaryErrorWriteErrorNonStringMatchField AuditsSharedDictionaryError = "WriteErrorNonStringMatchField" AuditsSharedDictionaryErrorWriteErrorNonTokenTypeField AuditsSharedDictionaryError = "WriteErrorNonTokenTypeField" AuditsSharedDictionaryErrorWriteErrorRequestAborted AuditsSharedDictionaryError = "WriteErrorRequestAborted" AuditsSharedDictionaryErrorWriteErrorShuttingDown AuditsSharedDictionaryError = "WriteErrorShuttingDown" AuditsSharedDictionaryErrorWriteErrorTooLongIDField AuditsSharedDictionaryError = "WriteErrorTooLongIdField" AuditsSharedDictionaryErrorWriteErrorUnsupportedType AuditsSharedDictionaryError = "WriteErrorUnsupportedType" )AuditsSharedDictionaryErrorUseErrorCrossOriginNoCorsRequest
type AuditsSharedDictionaryIssueDetails ¶ added in v0.116.0
type AuditsSharedDictionaryIssueDetails struct { AuditsSharedDictionaryError `json:"sharedDictionaryError"` Request *AuditsAffectedRequest `json:"request"` }SharedDictionaryError
AuditsSharedDictionaryIssueDetails ...
type AuditsSourceCodeLocation ¶ added in v0.72.0
type AuditsSourceCodeLocation struct { // ScriptID (optional) ... ScriptID RuntimeScriptID `json:"scriptId,omitempty"` // URL ... URL string `json:"url"` // LineNumber ... LineNumber int `json:"lineNumber"` // ColumnNumber ... ColumnNumber int `json:"columnNumber"` }
AuditsSourceCodeLocation ...
type AuditsStyleSheetLoadingIssueReason ¶ added in v0.115.0
type AuditsStyleSheetLoadingIssueReason string
AuditsStyleSheetLoadingIssueReason ...
const ( // AuditsStyleSheetLoadingIssueReasonLateImportRule enum const. AuditsStyleSheetLoadingIssueReasonLateImportRule AuditsStyleSheetLoadingIssueReason = "LateImportRule" // AuditsStyleSheetLoadingIssueReasonRequestFailed enum const. AuditsStyleSheetLoadingIssueReasonRequestFailed AuditsStyleSheetLoadingIssueReason = "RequestFailed" )
type AuditsStylesheetLoadingIssueDetails ¶ added in v0.115.0
type AuditsStylesheetLoadingIssueDetails struct { // SourceCodeLocation Source code position that referenced the failing stylesheet. SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // StyleSheetLoadingIssueReason Reason why the stylesheet couldn't be loaded. StyleSheetLoadingIssueReason AuditsStyleSheetLoadingIssueReason `json:"styleSheetLoadingIssueReason"` // FailedRequestInfo (optional) Contains additional info when the failure was due to a request. FailedRequestInfo *AuditsFailedRequestInfo `json:"failedRequestInfo,omitempty"` }
AuditsStylesheetLoadingIssueDetails This issue warns when a referenced stylesheet couldn't be loaded.
type AutofillAddress ¶ added in v0.115.0
type AutofillAddress struct { // Fields fields and values defining an address. Fields []*AutofillAddressField `json:"fields"` }
AutofillAddress ...
type AutofillAddressField ¶ added in v0.115.0
type AutofillAddressField struct { // Name address field name, for example GIVEN_NAME. Name string `json:"name"` // Value address field value, for example Jon Doe. Value string `json:"value"` }
AutofillAddressField ...
type AutofillAddressFields ¶ added in v0.115.0
type AutofillAddressFields struct { // Fields ... Fields []*AutofillAddressField `json:"fields"` }
AutofillAddressFields A list of address fields.
type AutofillAddressFormFilled ¶ added in v0.115.0
type AutofillAddressFormFilled struct { // FilledFields Information about the fields that were filled FilledFields []*AutofillFilledField `json:"filledFields"` // AddressUI An UI representation of the address used to fill the form. // Consists of a 2D array where each child represents an address/profile line. AddressUI *AutofillAddressUI `json:"addressUi"` }
AutofillAddressFormFilled Emitted when an address form is filled.
func (AutofillAddressFormFilled) ProtoEvent ¶ added in v0.115.0
func (evt AutofillAddressFormFilled) ProtoEvent() string
ProtoEvent name.
type AutofillAddressUI ¶ added in v0.115.0
type AutofillAddressUI struct { // AddressFields A two dimension array containing the representation of values from an address profile. AddressFields []*AutofillAddressFields `json:"addressFields"` }
AutofillAddressUI Defines how an address can be displayed like in chrome://settings/addresses. Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such. The following address UI for instance: [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]] should allow the receiver to render: Jon Doe Munich 81456.
type AutofillCreditCard ¶ added in v0.115.0
type AutofillCreditCard struct { // Number 16-digit credit card number. Number string `json:"number"` // Name of the credit card owner. Name string `json:"name"` // ExpiryMonth 2-digit expiry month. ExpiryMonth string `json:"expiryMonth"` // ExpiryYear 4-digit expiry year. ExpiryYear string `json:"expiryYear"` // Cvc 3-digit card verification code. Cvc string `json:"cvc"` }
AutofillCreditCard ...
type AutofillDisable ¶ added in v0.115.0
type AutofillDisable struct{}
AutofillDisable Disables autofill domain notifications.
func (AutofillDisable) Call ¶ added in v0.115.0
func (m AutofillDisable) Call(c Client) error
Call sends the request.
func (AutofillDisable) ProtoReq ¶ added in v0.115.0
func (m AutofillDisable) ProtoReq() string
ProtoReq name.
type AutofillEnable ¶ added in v0.115.0
type AutofillEnable struct{}
AutofillEnable Enables autofill domain notifications.
func (AutofillEnable) Call ¶ added in v0.115.0
func (m AutofillEnable) Call(c Client) error
Call sends the request.
func (AutofillEnable) ProtoReq ¶ added in v0.115.0
func (m AutofillEnable) ProtoReq() string
ProtoReq name.
type AutofillFilledField ¶ added in v0.115.0
type AutofillFilledField struct { // HTMLType The type of the field, e.g text, password etc. HTMLType string `json:"htmlType"` // ID the html id ID string `json:"id"` // Name the html name Name string `json:"name"` // Value the field value Value string `json:"value"` // AutofillType The actual field type, e.g FAMILY_NAME AutofillType string `json:"autofillType"` // FillingStrategy The filling strategy FillingStrategy AutofillFillingStrategy `json:"fillingStrategy"` // FrameID The frame the field belongs to FrameID PageFrameID `json:"frameId"` // FieldID The form field's DOM node FieldID DOMBackendNodeID `json:"fieldId"` }
AutofillFilledField ...
type AutofillFillingStrategy ¶ added in v0.115.0
type AutofillFillingStrategy string
AutofillFillingStrategy Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.
const ( // AutofillFillingStrategyAutocompleteAttribute enum const. AutofillFillingStrategyAutocompleteAttribute AutofillFillingStrategy = "autocompleteAttribute" // AutofillFillingStrategyAutofillInferred enum const. AutofillFillingStrategyAutofillInferred AutofillFillingStrategy = "autofillInferred" )
type AutofillSetAddresses ¶ added in v0.115.0
type AutofillSetAddresses struct { // Addresses ... Addresses []*AutofillAddress `json:"addresses"` }
AutofillSetAddresses Set addresses so that developers can verify their forms implementation.
func (AutofillSetAddresses) Call ¶ added in v0.115.0
func (m AutofillSetAddresses) Call(c Client) error
Call sends the request.
func (AutofillSetAddresses) ProtoReq ¶ added in v0.115.0
func (m AutofillSetAddresses) ProtoReq() string
ProtoReq name.
type AutofillTrigger ¶ added in v0.115.0
type AutofillTrigger struct { // FieldID Identifies a field that serves as an anchor for autofill. FieldID DOMBackendNodeID `json:"fieldId"` // FrameID (optional) Identifies the frame that field belongs to. FrameID PageFrameID `json:"frameId,omitempty"` // Card Credit card information to fill out the form. Credit card data is not saved. Card *AutofillCreditCard `json:"card"` }
AutofillTrigger Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.
func (AutofillTrigger) Call ¶ added in v0.115.0
func (m AutofillTrigger) Call(c Client) error
Call sends the request.
func (AutofillTrigger) ProtoReq ¶ added in v0.115.0
func (m AutofillTrigger) ProtoReq() string
ProtoReq name.
type BackgroundServiceBackgroundServiceEvent ¶
type BackgroundServiceBackgroundServiceEvent struct { // Timestamp of the event (in seconds). Timestamp TimeSinceEpoch `json:"timestamp"` // Origin The origin this event belongs to. Origin string `json:"origin"` // ServiceWorkerRegistrationID The Service Worker ID that initiated the event. ServiceWorkerRegistrationID ServiceWorkerRegistrationID `json:"serviceWorkerRegistrationId"` // Service The Background Service this event belongs to. Service BackgroundServiceServiceName `json:"service"` // EventName A description of the event. EventName string `json:"eventName"` // InstanceID An identifier that groups related events together. InstanceID string `json:"instanceId"` // EventMetadata A list of event-specific information. EventMetadata []*BackgroundServiceEventMetadata `json:"eventMetadata"` // StorageKey Storage key this event belongs to. StorageKey string `json:"storageKey"` }
BackgroundServiceBackgroundServiceEvent ...
type BackgroundServiceBackgroundServiceEventReceived ¶
type BackgroundServiceBackgroundServiceEventReceived struct { // BackgroundServiceEvent ... BackgroundServiceEvent *BackgroundServiceBackgroundServiceEvent `json:"backgroundServiceEvent"` }
BackgroundServiceBackgroundServiceEventReceived Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
func (BackgroundServiceBackgroundServiceEventReceived) ProtoEvent ¶ added in v0.72.0
func (evt BackgroundServiceBackgroundServiceEventReceived) ProtoEvent() string
ProtoEvent name.
type BackgroundServiceClearEvents ¶
type BackgroundServiceClearEvents struct { // Service ... Service BackgroundServiceServiceName `json:"service"` }
BackgroundServiceClearEvents Clears all stored data for the service.
func (BackgroundServiceClearEvents) Call ¶
func (m BackgroundServiceClearEvents) Call(c Client) error
Call sends the request.
func (BackgroundServiceClearEvents) ProtoReq ¶ added in v0.74.0
func (m BackgroundServiceClearEvents) ProtoReq() string
ProtoReq name.
type BackgroundServiceEventMetadata ¶
type BackgroundServiceEventMetadata struct { // Key ... Key string `json:"key"` // Value ... Value string `json:"value"` }
BackgroundServiceEventMetadata A key-value pair for additional event information to pass along.
type BackgroundServiceRecordingStateChanged ¶
type BackgroundServiceRecordingStateChanged struct { // IsRecording ... IsRecording bool `json:"isRecording"` // Service ... Service BackgroundServiceServiceName `json:"service"` }
BackgroundServiceRecordingStateChanged Called when the recording state for the service has been updated.
func (BackgroundServiceRecordingStateChanged) ProtoEvent ¶ added in v0.72.0
func (evt BackgroundServiceRecordingStateChanged) ProtoEvent() string
ProtoEvent name.
type BackgroundServiceServiceName ¶
type BackgroundServiceServiceName string
BackgroundServiceServiceName The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.
const ( // BackgroundServiceServiceNameBackgroundFetch enum const. BackgroundServiceServiceNameBackgroundFetch BackgroundServiceServiceName = "backgroundFetch" // BackgroundServiceServiceNameBackgroundSync enum const. BackgroundServiceServiceNameBackgroundSync BackgroundServiceServiceName = "backgroundSync" // BackgroundServiceServiceNamePushMessaging enum const. BackgroundServiceServiceNamePushMessaging BackgroundServiceServiceName = "pushMessaging" // BackgroundServiceServiceNameNotifications enum const. BackgroundServiceServiceNameNotifications BackgroundServiceServiceName = "notifications" // BackgroundServiceServiceNamePaymentHandler enum const. BackgroundServiceServiceNamePaymentHandler BackgroundServiceServiceName = "paymentHandler" // BackgroundServiceServiceNamePeriodicBackgroundSync enum const. BackgroundServiceServiceNamePeriodicBackgroundSync BackgroundServiceServiceName = "periodicBackgroundSync" )
type BackgroundServiceSetRecording ¶
type BackgroundServiceSetRecording struct { // ShouldRecord ... ShouldRecord bool `json:"shouldRecord"` // Service ... Service BackgroundServiceServiceName `json:"service"` }
BackgroundServiceSetRecording Set the recording state for the service.
func (BackgroundServiceSetRecording) Call ¶
func (m BackgroundServiceSetRecording) Call(c Client) error
Call sends the request.
func (BackgroundServiceSetRecording) ProtoReq ¶ added in v0.74.0
func (m BackgroundServiceSetRecording) ProtoReq() string
ProtoReq name.
type BackgroundServiceStartObserving ¶
type BackgroundServiceStartObserving struct { // Service ... Service BackgroundServiceServiceName `json:"service"` }
BackgroundServiceStartObserving Enables event updates for the service.
func (BackgroundServiceStartObserving) Call ¶
func (m BackgroundServiceStartObserving) Call(c Client) error
Call sends the request.
func (BackgroundServiceStartObserving) ProtoReq ¶ added in v0.74.0
func (m BackgroundServiceStartObserving) ProtoReq() string
ProtoReq name.
type BackgroundServiceStopObserving ¶
type BackgroundServiceStopObserving struct { // Service ... Service BackgroundServiceServiceName `json:"service"` }
BackgroundServiceStopObserving Disables event updates for the service.
func (BackgroundServiceStopObserving) Call ¶
func (m BackgroundServiceStopObserving) Call(c Client) error
Call sends the request.
func (BackgroundServiceStopObserving) ProtoReq ¶ added in v0.74.0
func (m BackgroundServiceStopObserving) ProtoReq() string
ProtoReq name.
type BrowserAddPrivacySandboxEnrollmentOverride ¶ added in v0.115.0
type BrowserAddPrivacySandboxEnrollmentOverride struct { // URL ... URL string `json:"url"` }
BrowserAddPrivacySandboxEnrollmentOverride Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
func (BrowserAddPrivacySandboxEnrollmentOverride) Call ¶ added in v0.115.0
func (m BrowserAddPrivacySandboxEnrollmentOverride) Call(c Client) error
Call sends the request.
func (BrowserAddPrivacySandboxEnrollmentOverride) ProtoReq ¶ added in v0.115.0
func (m BrowserAddPrivacySandboxEnrollmentOverride) ProtoReq() string
ProtoReq name.
type BrowserBounds ¶
type BrowserBounds struct { // Left (optional) The offset from the left edge of the screen to the window in pixels. Left *int `json:"left,omitempty"` // Top (optional) The offset from the top edge of the screen to the window in pixels. Top *int `json:"top,omitempty"` // Width (optional) The window width in pixels. Width *int `json:"width,omitempty"` // Height (optional) The window height in pixels. Height *int `json:"height,omitempty"` // WindowState (optional) The window state. Default to normal. WindowState BrowserWindowState `json:"windowState,omitempty"` }
BrowserBounds (experimental) Browser window bounds information.
type BrowserBrowserCommandID ¶ added in v0.90.0
type BrowserBrowserCommandID string
BrowserBrowserCommandID (experimental) Browser command ids used by executeBrowserCommand.
const ( // BrowserBrowserCommandIDOpenTabSearch enum const. BrowserBrowserCommandIDOpenTabSearch BrowserBrowserCommandID = "openTabSearch" // BrowserBrowserCommandIDCloseTabSearch enum const. BrowserBrowserCommandIDCloseTabSearch BrowserBrowserCommandID = "closeTabSearch" )
type BrowserBrowserContextID ¶
type BrowserBrowserContextID string
BrowserBrowserContextID (experimental) ...
type BrowserBucket ¶
type BrowserBucket struct { // Low Minimum value (inclusive). Low int `json:"low"` // High Maximum value (exclusive). High int `json:"high"` // Count Number of samples. Count int `json:"count"` }
BrowserBucket (experimental) Chrome histogram bucket.
type BrowserCancelDownload ¶ added in v0.97.5
type BrowserCancelDownload struct { // GUID Global unique identifier of the download. GUID string `json:"guid"` // BrowserContextID (optional) BrowserContext to perform the action in. When omitted, default browser context is used. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
BrowserCancelDownload (experimental) Cancel a download if in progress.
func (BrowserCancelDownload) Call ¶ added in v0.97.5
func (m BrowserCancelDownload) Call(c Client) error
Call sends the request.
func (BrowserCancelDownload) ProtoReq ¶ added in v0.97.5
func (m BrowserCancelDownload) ProtoReq() string
ProtoReq name.
type BrowserClose ¶
type BrowserClose struct{}
BrowserClose Close browser gracefully.
func (BrowserClose) ProtoReq ¶ added in v0.74.0
func (m BrowserClose) ProtoReq() string
ProtoReq name.
type BrowserCrash ¶
type BrowserCrash struct{}
BrowserCrash (experimental) Crashes browser on the main thread.
func (BrowserCrash) ProtoReq ¶ added in v0.74.0
func (m BrowserCrash) ProtoReq() string
ProtoReq name.
type BrowserCrashGpuProcess ¶
type BrowserCrashGpuProcess struct{}
BrowserCrashGpuProcess (experimental) Crashes GPU process.
func (BrowserCrashGpuProcess) Call ¶
func (m BrowserCrashGpuProcess) Call(c Client) error
Call sends the request.
func (BrowserCrashGpuProcess) ProtoReq ¶ added in v0.74.0
func (m BrowserCrashGpuProcess) ProtoReq() string
ProtoReq name.
type BrowserDownloadProgress ¶ added in v0.100.0
type BrowserDownloadProgress struct { // GUID Global unique identifier of the download. GUID string `json:"guid"` // TotalBytes Total expected bytes to download. TotalBytes float64 `json:"totalBytes"` // ReceivedBytes Total bytes received. ReceivedBytes float64 `json:"receivedBytes"` // State Download status. State BrowserDownloadProgressState `json:"state"` }
BrowserDownloadProgress (experimental) Fired when download makes progress. Last call has |done| == true.
func (BrowserDownloadProgress) ProtoEvent ¶ added in v0.100.0
func (evt BrowserDownloadProgress) ProtoEvent() string
ProtoEvent name.
type BrowserDownloadProgressState ¶ added in v0.100.0
type BrowserDownloadProgressState string
BrowserDownloadProgressState enum.
const ( // BrowserDownloadProgressStateInProgress enum const. BrowserDownloadProgressStateInProgress BrowserDownloadProgressState = "inProgress" // BrowserDownloadProgressStateCompleted enum const. BrowserDownloadProgressStateCompleted BrowserDownloadProgressState = "completed" // BrowserDownloadProgressStateCanceled enum const. BrowserDownloadProgressStateCanceled BrowserDownloadProgressState = "canceled" )
type BrowserDownloadWillBegin ¶ added in v0.100.0
type BrowserDownloadWillBegin struct { // FrameID Id of the frame that caused the download to begin. FrameID PageFrameID `json:"frameId"` // GUID Global unique identifier of the download. GUID string `json:"guid"` // URL of the resource being downloaded. URL string `json:"url"` // SuggestedFilename Suggested file name of the resource (the actual name of the file saved on disk may differ). SuggestedFilename string `json:"suggestedFilename"` }
BrowserDownloadWillBegin (experimental) Fired when page is about to start a download.
func (BrowserDownloadWillBegin) ProtoEvent ¶ added in v0.100.0
func (evt BrowserDownloadWillBegin) ProtoEvent() string
ProtoEvent name.
type BrowserExecuteBrowserCommand ¶ added in v0.90.0
type BrowserExecuteBrowserCommand struct { // CommandID ... CommandID BrowserBrowserCommandID `json:"commandId"` }
BrowserExecuteBrowserCommand (experimental) Invoke custom browser commands used by telemetry.
func (BrowserExecuteBrowserCommand) Call ¶ added in v0.90.0
func (m BrowserExecuteBrowserCommand) Call(c Client) error
Call sends the request.
func (BrowserExecuteBrowserCommand) ProtoReq ¶ added in v0.90.0
func (m BrowserExecuteBrowserCommand) ProtoReq() string
ProtoReq name.
type BrowserGetBrowserCommandLine ¶
type BrowserGetBrowserCommandLine struct{}
BrowserGetBrowserCommandLine (experimental) Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.
func (BrowserGetBrowserCommandLine) Call ¶
func (m BrowserGetBrowserCommandLine) Call(c Client) (*BrowserGetBrowserCommandLineResult, error)
Call the request.
func (BrowserGetBrowserCommandLine) ProtoReq ¶ added in v0.74.0
func (m BrowserGetBrowserCommandLine) ProtoReq() string
ProtoReq name.
type BrowserGetBrowserCommandLineResult ¶
type BrowserGetBrowserCommandLineResult struct { // Arguments Commandline parameters Arguments []string `json:"arguments"` }
BrowserGetBrowserCommandLineResult (experimental) ...
type BrowserGetHistogram ¶
type BrowserGetHistogram struct { // Name Requested histogram name. Name string `json:"name"` // Delta (optional) If true, retrieve delta since last delta call. Delta bool `json:"delta,omitempty"` }
BrowserGetHistogram (experimental) Get a Chrome histogram by name.
func (BrowserGetHistogram) Call ¶
func (m BrowserGetHistogram) Call(c Client) (*BrowserGetHistogramResult, error)
Call the request.
func (BrowserGetHistogram) ProtoReq ¶ added in v0.74.0
func (m BrowserGetHistogram) ProtoReq() string
ProtoReq name.
type BrowserGetHistogramResult ¶
type BrowserGetHistogramResult struct { // Histogram. Histogram *BrowserHistogram `json:"histogram"` }
BrowserGetHistogramResult (experimental) ...
type BrowserGetHistograms ¶
type BrowserGetHistograms struct { // Query (optional) Requested substring in name. Only histograms which have query as a // substring in their name are extracted. An empty or absent query returns // all histograms. Query string `json:"query,omitempty"` // Delta (optional) If true, retrieve delta since last delta call. Delta bool `json:"delta,omitempty"` }
BrowserGetHistograms (experimental) Get Chrome histograms.
func (BrowserGetHistograms) Call ¶
func (m BrowserGetHistograms) Call(c Client) (*BrowserGetHistogramsResult, error)
Call the request.
func (BrowserGetHistograms) ProtoReq ¶ added in v0.74.0
func (m BrowserGetHistograms) ProtoReq() string
ProtoReq name.
type BrowserGetHistogramsResult ¶
type BrowserGetHistogramsResult struct { // Histograms. Histograms []*BrowserHistogram `json:"histograms"` }
BrowserGetHistogramsResult (experimental) ...
type BrowserGetVersion ¶
type BrowserGetVersion struct{}
BrowserGetVersion Returns version information.
func (BrowserGetVersion) Call ¶
func (m BrowserGetVersion) Call(c Client) (*BrowserGetVersionResult, error)
Call the request.
func (BrowserGetVersion) ProtoReq ¶ added in v0.74.0
func (m BrowserGetVersion) ProtoReq() string
ProtoReq name.
type BrowserGetVersionResult ¶
type BrowserGetVersionResult struct { // ProtocolVersion Protocol version. ProtocolVersion string `json:"protocolVersion"` // Product name. Product string `json:"product"` // Revision Product revision. Revision string `json:"revision"` // UserAgent User-Agent. UserAgent string `json:"userAgent"` // JsVersion V8 version. JsVersion string `json:"jsVersion"` }
BrowserGetVersionResult ...
type BrowserGetWindowBounds ¶
type BrowserGetWindowBounds struct { // WindowID Browser window id. WindowID BrowserWindowID `json:"windowId"` }
BrowserGetWindowBounds (experimental) Get position and size of the browser window.
func (BrowserGetWindowBounds) Call ¶
func (m BrowserGetWindowBounds) Call(c Client) (*BrowserGetWindowBoundsResult, error)
Call the request.
func (BrowserGetWindowBounds) ProtoReq ¶ added in v0.74.0
func (m BrowserGetWindowBounds) ProtoReq() string
ProtoReq name.
type BrowserGetWindowBoundsResult ¶
type BrowserGetWindowBoundsResult struct { // Bounds information of the window. When window state is 'minimized', the restored window // position and size are returned. Bounds *BrowserBounds `json:"bounds"` }
BrowserGetWindowBoundsResult (experimental) ...
type BrowserGetWindowForTarget ¶
type BrowserGetWindowForTarget struct { // TargetID (optional) Devtools agent host id. If called as a part of the session, associated targetId is used. TargetID TargetTargetID `json:"targetId,omitempty"` }
BrowserGetWindowForTarget (experimental) Get the browser window that contains the devtools target.
func (BrowserGetWindowForTarget) Call ¶
func (m BrowserGetWindowForTarget) Call(c Client) (*BrowserGetWindowForTargetResult, error)
Call the request.
func (BrowserGetWindowForTarget) ProtoReq ¶ added in v0.74.0
func (m BrowserGetWindowForTarget) ProtoReq() string
ProtoReq name.
type BrowserGetWindowForTargetResult ¶
type BrowserGetWindowForTargetResult struct { // WindowID Browser window id. WindowID BrowserWindowID `json:"windowId"` // Bounds information of the window. When window state is 'minimized', the restored window // position and size are returned. Bounds *BrowserBounds `json:"bounds"` }
BrowserGetWindowForTargetResult (experimental) ...
type BrowserGrantPermissions ¶
type BrowserGrantPermissions struct { // Permissions ... Permissions []BrowserPermissionType `json:"permissions"` // Origin (optional) Origin the permission applies to, all origins if not specified. Origin string `json:"origin,omitempty"` // BrowserContextID (optional) BrowserContext to override permissions. When omitted, default browser context is used. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
BrowserGrantPermissions (experimental) Grant specific permissions to the given origin and reject all others.
func (BrowserGrantPermissions) Call ¶
func (m BrowserGrantPermissions) Call(c Client) error
Call sends the request.
func (BrowserGrantPermissions) ProtoReq ¶ added in v0.74.0
func (m BrowserGrantPermissions) ProtoReq() string
ProtoReq name.
type BrowserHistogram ¶
type BrowserHistogram struct { // Name. Name string `json:"name"` // Sum of sample values. Sum int `json:"sum"` // Count Total number of samples. Count int `json:"count"` // Buckets. Buckets []*BrowserBucket `json:"buckets"` }
BrowserHistogram (experimental) Chrome histogram.
type BrowserPermissionDescriptor ¶
type BrowserPermissionDescriptor struct { // Name of permission. // See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names. Name string `json:"name"` // Sysex (optional) For "midi" permission, may also specify sysex control. Sysex bool `json:"sysex,omitempty"` // UserVisibleOnly (optional) For "push" permission, may specify userVisibleOnly. // Note that userVisibleOnly = true is the only currently supported type. UserVisibleOnly bool `json:"userVisibleOnly,omitempty"` // AllowWithoutSanitization (optional) For "clipboard" permission, may specify allowWithoutSanitization. AllowWithoutSanitization bool `json:"allowWithoutSanitization,omitempty"` // AllowWithoutGesture (optional) For "fullscreen" permission, must specify allowWithoutGesture:true. AllowWithoutGesture bool `json:"allowWithoutGesture,omitempty"` // PanTiltZoom (optional) For "camera" permission, may specify panTiltZoom. PanTiltZoom bool `json:"panTiltZoom,omitempty"` }
BrowserPermissionDescriptor (experimental) Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor.
type BrowserPermissionSetting ¶
type BrowserPermissionSetting string
BrowserPermissionSetting (experimental) ...
const ( // BrowserPermissionSettingGranted enum const. BrowserPermissionSettingGranted BrowserPermissionSetting = "granted" // BrowserPermissionSettingDenied enum const. BrowserPermissionSettingDenied BrowserPermissionSetting = "denied" // BrowserPermissionSettingPrompt enum const. BrowserPermissionSettingPrompt BrowserPermissionSetting = "prompt" )
type BrowserPermissionType ¶
type BrowserPermissionType string
BrowserPermissionType (experimental) ...
const ( // BrowserPermissionTypeAccessibilityEvents enum const. BrowserPermissionTypeAccessibilityEvents BrowserPermissionType = "accessibilityEvents" // BrowserPermissionTypeAudioCapture enum const. BrowserPermissionTypeAudioCapture BrowserPermissionType = "audioCapture" // BrowserPermissionTypeBackgroundSync enum const. BrowserPermissionTypeBackgroundSync BrowserPermissionType = "backgroundSync" // BrowserPermissionTypeBackgroundFetch enum const. BrowserPermissionTypeBackgroundFetch BrowserPermissionType = "backgroundFetch" // BrowserPermissionTypeCapturedSurfaceControl enum const. BrowserPermissionTypeCapturedSurfaceControl BrowserPermissionType = "capturedSurfaceControl" // BrowserPermissionTypeClipboardReadWrite enum const. BrowserPermissionTypeClipboardReadWrite BrowserPermissionType = "clipboardReadWrite" // BrowserPermissionTypeClipboardSanitizedWrite enum const. BrowserPermissionTypeClipboardSanitizedWrite BrowserPermissionType = "clipboardSanitizedWrite" // BrowserPermissionTypeDisplayCapture enum const. BrowserPermissionTypeDisplayCapture BrowserPermissionType = "displayCapture" // BrowserPermissionTypeDurableStorage enum const. BrowserPermissionTypeDurableStorage BrowserPermissionType = "durableStorage" // BrowserPermissionTypeFlash enum const. BrowserPermissionTypeFlash BrowserPermissionType = "flash" // BrowserPermissionTypeGeolocation enum const. BrowserPermissionTypeGeolocation BrowserPermissionType = "geolocation" // BrowserPermissionTypeIdleDetection enum const. BrowserPermissionTypeIdleDetection BrowserPermissionType = "idleDetection" // BrowserPermissionTypeLocalFonts enum const. BrowserPermissionTypeLocalFonts BrowserPermissionType = "localFonts" // BrowserPermissionTypeMidi enum const. BrowserPermissionTypeMidi BrowserPermissionType = "midi" // BrowserPermissionTypeMidiSysex enum const. BrowserPermissionTypeMidiSysex BrowserPermissionType = "midiSysex" // BrowserPermissionTypeNfc enum const. BrowserPermissionTypeNfc BrowserPermissionType = "nfc" // BrowserPermissionTypeNotifications enum const. BrowserPermissionTypeNotifications BrowserPermissionType = "notifications" // BrowserPermissionTypePaymentHandler enum const. BrowserPermissionTypePaymentHandler BrowserPermissionType = "paymentHandler" // BrowserPermissionTypePeriodicBackgroundSync enum const. BrowserPermissionTypePeriodicBackgroundSync BrowserPermissionType = "periodicBackgroundSync" // BrowserPermissionTypeProtectedMediaIdentifier enum const. BrowserPermissionTypeProtectedMediaIdentifier BrowserPermissionType = "protectedMediaIdentifier" // BrowserPermissionTypeSensors enum const. BrowserPermissionTypeSensors BrowserPermissionType = "sensors" // BrowserPermissionTypeStorageAccess enum const. BrowserPermissionTypeStorageAccess BrowserPermissionType = "storageAccess" // BrowserPermissionTypeSpeakerSelection enum const. BrowserPermissionTypeSpeakerSelection BrowserPermissionType = "speakerSelection" // BrowserPermissionTypeTopLevelStorageAccess enum const. BrowserPermissionTypeTopLevelStorageAccess BrowserPermissionType = "topLevelStorageAccess" // BrowserPermissionTypeVideoCapture enum const. BrowserPermissionTypeVideoCapture BrowserPermissionType = "videoCapture" // BrowserPermissionTypeVideoCapturePanTiltZoom enum const. BrowserPermissionTypeVideoCapturePanTiltZoom BrowserPermissionType = "videoCapturePanTiltZoom" // BrowserPermissionTypeWakeLockScreen enum const. BrowserPermissionTypeWakeLockScreen BrowserPermissionType = "wakeLockScreen" // BrowserPermissionTypeWakeLockSystem enum const. BrowserPermissionTypeWakeLockSystem BrowserPermissionType = "wakeLockSystem" // BrowserPermissionTypeWindowManagement enum const. BrowserPermissionTypeWindowManagement BrowserPermissionType = "windowManagement" )
type BrowserResetPermissions ¶
type BrowserResetPermissions struct { // BrowserContextID (optional) BrowserContext to reset permissions. When omitted, default browser context is used. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
BrowserResetPermissions Reset all permission management for all origins.
func (BrowserResetPermissions) Call ¶
func (m BrowserResetPermissions) Call(c Client) error
Call sends the request.
func (BrowserResetPermissions) ProtoReq ¶ added in v0.74.0
func (m BrowserResetPermissions) ProtoReq() string
ProtoReq name.
type BrowserSetDockTile ¶
type BrowserSetDockTile struct { // BadgeLabel (optional) ... BadgeLabel string `json:"badgeLabel,omitempty"` // Image (optional) Png encoded image. Image []byte `json:"image,omitempty"` }
BrowserSetDockTile (experimental) Set dock tile details, platform-specific.
func (BrowserSetDockTile) Call ¶
func (m BrowserSetDockTile) Call(c Client) error
Call sends the request.
func (BrowserSetDockTile) ProtoReq ¶ added in v0.74.0
func (m BrowserSetDockTile) ProtoReq() string
ProtoReq name.
type BrowserSetDownloadBehavior ¶
type BrowserSetDownloadBehavior struct { // Behavior Whether to allow all or deny all download requests, or use default Chrome behavior if // available (otherwise deny). |allowAndName| allows download and names files according to // their download guids. Behavior BrowserSetDownloadBehaviorBehavior `json:"behavior"` // BrowserContextID (optional) BrowserContext to set download behavior. When omitted, default browser context is used. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` // DownloadPath (optional) The default path to save downloaded files to. This is required if behavior is set to 'allow' // or 'allowAndName'. DownloadPath string `json:"downloadPath,omitempty"` // EventsEnabled (optional) Whether to emit download events (defaults to false). EventsEnabled bool `json:"eventsEnabled,omitempty"` }
BrowserSetDownloadBehavior (experimental) Set the behavior when downloading a file.
func (BrowserSetDownloadBehavior) Call ¶
func (m BrowserSetDownloadBehavior) Call(c Client) error
Call sends the request.
func (BrowserSetDownloadBehavior) ProtoReq ¶ added in v0.74.0
func (m BrowserSetDownloadBehavior) ProtoReq() string
ProtoReq name.
type BrowserSetDownloadBehaviorBehavior ¶
type BrowserSetDownloadBehaviorBehavior string
BrowserSetDownloadBehaviorBehavior enum.
const ( // BrowserSetDownloadBehaviorBehaviorDeny enum const. BrowserSetDownloadBehaviorBehaviorDeny BrowserSetDownloadBehaviorBehavior = "deny" // BrowserSetDownloadBehaviorBehaviorAllow enum const. BrowserSetDownloadBehaviorBehaviorAllow BrowserSetDownloadBehaviorBehavior = "allow" // BrowserSetDownloadBehaviorBehaviorAllowAndName enum const. BrowserSetDownloadBehaviorBehaviorAllowAndName BrowserSetDownloadBehaviorBehavior = "allowAndName" // BrowserSetDownloadBehaviorBehaviorDefault enum const. BrowserSetDownloadBehaviorBehaviorDefault BrowserSetDownloadBehaviorBehavior = "default" )
type BrowserSetPermission ¶
type BrowserSetPermission struct { // Permission Descriptor of permission to override. Permission *BrowserPermissionDescriptor `json:"permission"` // Setting of the permission. Setting BrowserPermissionSetting `json:"setting"` // Origin (optional) Origin the permission applies to, all origins if not specified. Origin string `json:"origin,omitempty"` // BrowserContextID (optional) Context to override. When omitted, default browser context is used. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
BrowserSetPermission (experimental) Set permission settings for given origin.
func (BrowserSetPermission) Call ¶
func (m BrowserSetPermission) Call(c Client) error
Call sends the request.
func (BrowserSetPermission) ProtoReq ¶ added in v0.74.0
func (m BrowserSetPermission) ProtoReq() string
ProtoReq name.
type BrowserSetWindowBounds ¶
type BrowserSetWindowBounds struct { // WindowID Browser window id. WindowID BrowserWindowID `json:"windowId"` // Bounds New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined // with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. Bounds *BrowserBounds `json:"bounds"` }
BrowserSetWindowBounds (experimental) Set position and/or size of the browser window.
func (BrowserSetWindowBounds) Call ¶
func (m BrowserSetWindowBounds) Call(c Client) error
Call sends the request.
func (BrowserSetWindowBounds) ProtoReq ¶ added in v0.74.0
func (m BrowserSetWindowBounds) ProtoReq() string
ProtoReq name.
type BrowserWindowState ¶
type BrowserWindowState string
BrowserWindowState (experimental) The state of the browser window.
const ( // BrowserWindowStateNormal enum const. BrowserWindowStateNormal BrowserWindowState = "normal" // BrowserWindowStateMinimized enum const. BrowserWindowStateMinimized BrowserWindowState = "minimized" // BrowserWindowStateMaximized enum const. BrowserWindowStateMaximized BrowserWindowState = "maximized" // BrowserWindowStateFullscreen enum const. BrowserWindowStateFullscreen BrowserWindowState = "fullscreen" )
type CSSAddRule ¶
type CSSAddRule struct { // StyleSheetID The css style sheet identifier where a new rule should be inserted. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // RuleText The text of a new rule. RuleText string `json:"ruleText"` // Location Text position of a new rule in the target style sheet. Location *CSSSourceRange `json:"location"` // NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be // validated. If omitted, declarations in the new rule text can only be validated statically, which may produce // incorrect results if the declaration contains a var() for example. NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"` }
CSSAddRule Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the position specified by `location`.
func (CSSAddRule) Call ¶
func (m CSSAddRule) Call(c Client) (*CSSAddRuleResult, error)
Call the request.
type CSSAddRuleResult ¶
type CSSAddRuleResult struct { // Rule The newly created rule. Rule *CSSCSSRule `json:"rule"` }
CSSAddRuleResult ...
type CSSCSSComputedStyleProperty ¶
type CSSCSSComputedStyleProperty struct { // Name Computed style property name. Name string `json:"name"` // Value Computed style property value. Value string `json:"value"` }
CSSCSSComputedStyleProperty ...
type CSSCSSContainerQuery ¶ added in v0.101.5
type CSSCSSContainerQuery struct { // Text Container query text. Text string `json:"text"` // Range (optional) The associated rule header range in the enclosing stylesheet (if // available). Range *CSSSourceRange `json:"range,omitempty"` // StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists). StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Name (optional) Optional name for the container. Name string `json:"name,omitempty"` // PhysicalAxes (optional) Optional physical axes queried for the container. PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"` // LogicalAxes (optional) Optional logical axes queried for the container. LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"` }
CSSCSSContainerQuery (experimental) CSS container query rule descriptor.
type CSSCSSFontPaletteValuesRule ¶ added in v0.115.0
type CSSCSSFontPaletteValuesRule struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // FontPaletteName Associated font palette name. FontPaletteName *CSSValue `json:"fontPaletteName"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` }
CSSCSSFontPaletteValuesRule CSS font-palette-values rule representation.
type CSSCSSKeyframeRule ¶
type CSSCSSKeyframeRule struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // KeyText Associated key text. KeyText *CSSValue `json:"keyText"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` }
CSSCSSKeyframeRule CSS keyframe rule representation.
type CSSCSSKeyframesRule ¶
type CSSCSSKeyframesRule struct { // AnimationName Animation name. AnimationName *CSSValue `json:"animationName"` // Keyframes List of keyframes. Keyframes []*CSSCSSKeyframeRule `json:"keyframes"` }
CSSCSSKeyframesRule CSS keyframes rule representation.
type CSSCSSLayer ¶ added in v0.103.0
type CSSCSSLayer struct { // Text Layer name. Text string `json:"text"` // Range (optional) The associated rule header range in the enclosing stylesheet (if // available). Range *CSSSourceRange `json:"range,omitempty"` // StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists). StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` }
CSSCSSLayer (experimental) CSS Layer at-rule descriptor.
type CSSCSSLayerData ¶ added in v0.103.0
type CSSCSSLayerData struct { // Name Layer name. Name string `json:"name"` // SubLayers (optional) Direct sub-layers SubLayers []*CSSCSSLayerData `json:"subLayers,omitempty"` // Order Layer order. The order determines the order of the layer in the cascade order. // A higher number has higher priority in the cascade order. Order float64 `json:"order"` }
CSSCSSLayerData (experimental) CSS Layer data.
type CSSCSSMedia ¶
type CSSCSSMedia struct { // Text Media query text. Text string `json:"text"` // Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if // specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked // stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline // stylesheet's STYLE tag. Source CSSCSSMediaSource `json:"source"` // SourceURL (optional) URL of the document containing the media query description. SourceURL string `json:"sourceURL,omitempty"` // Range (optional) The associated rule (@media or @import) header range in the enclosing stylesheet (if // available). Range *CSSSourceRange `json:"range,omitempty"` // StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists). StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // MediaList (optional) Array of media queries. MediaList []*CSSMediaQuery `json:"mediaList,omitempty"` }
CSSCSSMedia CSS media rule descriptor.
type CSSCSSMediaSource ¶
type CSSCSSMediaSource string
CSSCSSMediaSource enum.
const ( // CSSCSSMediaSourceMediaRule enum const. CSSCSSMediaSourceMediaRule CSSCSSMediaSource = "mediaRule" // CSSCSSMediaSourceImportRule enum const. CSSCSSMediaSourceImportRule CSSCSSMediaSource = "importRule" // CSSCSSMediaSourceLinkedSheet enum const. CSSCSSMediaSourceLinkedSheet CSSCSSMediaSource = "linkedSheet" // CSSCSSMediaSourceInlineSheet enum const. CSSCSSMediaSourceInlineSheet CSSCSSMediaSource = "inlineSheet" )
type CSSCSSPositionFallbackRule ¶ added in v0.112.9
type CSSCSSPositionFallbackRule struct { // Name ... Name *CSSValue `json:"name"` // TryRules List of keyframes. TryRules []*CSSCSSTryRule `json:"tryRules"` }
CSSCSSPositionFallbackRule (deprecated) CSS position-fallback rule representation.
type CSSCSSPositionTryRule ¶ added in v0.115.0
type CSSCSSPositionTryRule struct { // Name The prelude dashed-ident name Name *CSSValue `json:"name"` // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` }
CSSCSSPositionTryRule CSS @position-try rule representation.
type CSSCSSProperty ¶
type CSSCSSProperty struct { // Name The property name. Name string `json:"name"` // Value The property value. Value string `json:"value"` // Important (optional) Whether the property has "!important" annotation (implies `false` if absent). Important bool `json:"important,omitempty"` // Implicit (optional) Whether the property is implicit (implies `false` if absent). Implicit bool `json:"implicit,omitempty"` // Text (optional) The full property text as specified in the style. Text string `json:"text,omitempty"` // ParsedOk (optional) Whether the property is understood by the browser (implies `true` if absent). ParsedOk bool `json:"parsedOk,omitempty"` // Disabled (optional) Whether the property is disabled by the user (present for source-based properties only). Disabled bool `json:"disabled,omitempty"` // Range (optional) The entire property range in the enclosing style declaration (if available). Range *CSSSourceRange `json:"range,omitempty"` // LonghandProperties (experimental) (optional) Parsed longhand components of this property if it is a shorthand. // This field will be empty if the given property is not a shorthand. LonghandProperties []*CSSCSSProperty `json:"longhandProperties,omitempty"` }
CSSCSSProperty CSS property declaration data.
type CSSCSSPropertyRegistration ¶ added in v0.115.0
type CSSCSSPropertyRegistration struct { // PropertyName ... PropertyName string `json:"propertyName"` // InitialValue (optional) ... InitialValue *CSSValue `json:"initialValue,omitempty"` // Inherits ... Inherits bool `json:"inherits"` // Syntax ... Syntax string `json:"syntax"` }
CSSCSSPropertyRegistration Representation of a custom property registration through CSS.registerProperty.
type CSSCSSPropertyRule ¶ added in v0.115.0
type CSSCSSPropertyRule struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // PropertyName Associated property name. PropertyName *CSSValue `json:"propertyName"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` }
CSSCSSPropertyRule CSS property at-rule representation.
type CSSCSSRule ¶
type CSSCSSRule struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // SelectorList Rule selector data. SelectorList *CSSSelectorList `json:"selectorList"` // NestingSelectors (experimental) (optional) Array of selectors from ancestor style rules, sorted by distance from the current rule. NestingSelectors []string `json:"nestingSelectors,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` // Media (optional) Media list array (for rules involving media queries). The array enumerates media queries // starting with the innermost one, going outwards. Media []*CSSCSSMedia `json:"media,omitempty"` // ContainerQueries (experimental) (optional) Container query list array (for rules involving container queries). // The array enumerates container queries starting with the innermost one, going outwards. ContainerQueries []*CSSCSSContainerQuery `json:"containerQueries,omitempty"` // Supports (experimental) (optional) @supports CSS at-rule array. // The array enumerates @supports at-rules starting with the innermost one, going outwards. Supports []*CSSCSSSupports `json:"supports,omitempty"` // Layers (experimental) (optional) Cascade layer array. Contains the layer hierarchy that this rule belongs to starting // with the innermost layer and going outwards. Layers []*CSSCSSLayer `json:"layers,omitempty"` // Scopes (experimental) (optional) @scope CSS at-rule array. // The array enumerates @scope at-rules starting with the innermost one, going outwards. Scopes []*CSSCSSScope `json:"scopes,omitempty"` // RuleTypes (experimental) (optional) The array keeps the types of ancestor CSSRules from the innermost going outwards. RuleTypes []CSSCSSRuleType `json:"ruleTypes,omitempty"` }
CSSCSSRule CSS rule representation.
type CSSCSSRuleType ¶ added in v0.115.0
type CSSCSSRuleType string
CSSCSSRuleType (experimental) Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. This list only contains rule types that are collected during the ancestor rule collection.
const ( // CSSCSSRuleTypeMediaRule enum const. CSSCSSRuleTypeMediaRule CSSCSSRuleType = "MediaRule" // CSSCSSRuleTypeSupportsRule enum const. CSSCSSRuleTypeSupportsRule CSSCSSRuleType = "SupportsRule" // CSSCSSRuleTypeContainerRule enum const. CSSCSSRuleTypeContainerRule CSSCSSRuleType = "ContainerRule" // CSSCSSRuleTypeLayerRule enum const. CSSCSSRuleTypeLayerRule CSSCSSRuleType = "LayerRule" // CSSCSSRuleTypeScopeRule enum const. CSSCSSRuleTypeScopeRule CSSCSSRuleType = "ScopeRule" // CSSCSSRuleTypeStyleRule enum const. CSSCSSRuleTypeStyleRule CSSCSSRuleType = "StyleRule" )
type CSSCSSScope ¶ added in v0.108.0
type CSSCSSScope struct { // Text Scope rule text. Text string `json:"text"` // Range (optional) The associated rule header range in the enclosing stylesheet (if // available). Range *CSSSourceRange `json:"range,omitempty"` // StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists). StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` }
CSSCSSScope (experimental) CSS Scope at-rule descriptor.
type CSSCSSStyle ¶
type CSSCSSStyle struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // CSSProperties CSS properties in the style. CSSProperties []*CSSCSSProperty `json:"cssProperties"` // ShorthandEntries Computed values for all shorthands found in the style. ShorthandEntries []*CSSShorthandEntry `json:"shorthandEntries"` // CSSText (optional) Style declaration text (if available). CSSText string `json:"cssText,omitempty"` // Range (optional) Style declaration range in the enclosing stylesheet (if available). Range *CSSSourceRange `json:"range,omitempty"` }
CSSCSSStyle CSS style representation.
type CSSCSSStyleSheetHeader ¶
type CSSCSSStyleSheetHeader struct { // StyleSheetID The stylesheet identifier. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // FrameID Owner frame identifier. FrameID PageFrameID `json:"frameId"` // SourceURL Stylesheet resource URL. Empty if this is a constructed stylesheet created using // new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported // as a CSS module script). SourceURL string `json:"sourceURL"` // SourceMapURL (optional) URL of source map associated with the stylesheet (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` // Origin Stylesheet origin. Origin CSSStyleSheetOrigin `json:"origin"` // Title Stylesheet title. Title string `json:"title"` // OwnerNode (optional) The backend id for the owner node of the stylesheet. OwnerNode DOMBackendNodeID `json:"ownerNode,omitempty"` // Disabled Denotes whether the stylesheet is disabled. Disabled bool `json:"disabled"` // HasSourceURL (optional) Whether the sourceURL field value comes from the sourceURL comment. HasSourceURL bool `json:"hasSourceURL,omitempty"` // IsInline Whether this stylesheet is created for STYLE tag by parser. This flag is not set for // document.written STYLE tags. IsInline bool `json:"isInline"` // IsMutable Whether this stylesheet is mutable. Inline stylesheets become mutable // after they have been modified via CSSOM API. // `<link>` element's stylesheets become mutable only if DevTools modifies them. // Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. IsMutable bool `json:"isMutable"` // IsConstructed True if this stylesheet is created through new CSSStyleSheet() or imported as a // CSS module script. IsConstructed bool `json:"isConstructed"` // StartLine Line offset of the stylesheet within the resource (zero based). StartLine float64 `json:"startLine"` // StartColumn Column offset of the stylesheet within the resource (zero based). StartColumn float64 `json:"startColumn"` // Length Size of the content (in characters). Length float64 `json:"length"` // EndLine Line offset of the end of the stylesheet within the resource (zero based). EndLine float64 `json:"endLine"` // EndColumn Column offset of the end of the stylesheet within the resource (zero based). EndColumn float64 `json:"endColumn"` // LoadingFailed (experimental) (optional) If the style sheet was loaded from a network resource, this indicates when the resource failed to load LoadingFailed bool `json:"loadingFailed,omitempty"` }
CSSCSSStyleSheetHeader CSS stylesheet metainformation.
type CSSCSSSupports ¶ added in v0.102.1
type CSSCSSSupports struct { // Text Supports rule text. Text string `json:"text"` // Active Whether the supports condition is satisfied. Active bool `json:"active"` // Range (optional) The associated rule header range in the enclosing stylesheet (if // available). Range *CSSSourceRange `json:"range,omitempty"` // StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists). StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` }
CSSCSSSupports (experimental) CSS Supports at-rule descriptor.
type CSSCSSTryRule ¶ added in v0.112.9
type CSSCSSTryRule struct { // StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"` // Origin Parent stylesheet's origin. Origin CSSStyleSheetOrigin `json:"origin"` // Style Associated style declaration. Style *CSSCSSStyle `json:"style"` }
CSSCSSTryRule CSS try rule representation.
type CSSCollectClassNames ¶
type CSSCollectClassNames struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` }
CSSCollectClassNames Returns all class names from specified stylesheet.
func (CSSCollectClassNames) Call ¶
func (m CSSCollectClassNames) Call(c Client) (*CSSCollectClassNamesResult, error)
Call the request.
func (CSSCollectClassNames) ProtoReq ¶ added in v0.74.0
func (m CSSCollectClassNames) ProtoReq() string
ProtoReq name.
type CSSCollectClassNamesResult ¶
type CSSCollectClassNamesResult struct { // ClassNames Class name list. ClassNames []string `json:"classNames"` }
CSSCollectClassNamesResult ...
type CSSCreateStyleSheet ¶
type CSSCreateStyleSheet struct { // FrameID Identifier of the frame where "via-inspector" stylesheet should be created. FrameID PageFrameID `json:"frameId"` }
CSSCreateStyleSheet Creates a new special "via-inspector" stylesheet in the frame with given `frameId`.
func (CSSCreateStyleSheet) Call ¶
func (m CSSCreateStyleSheet) Call(c Client) (*CSSCreateStyleSheetResult, error)
Call the request.
func (CSSCreateStyleSheet) ProtoReq ¶ added in v0.74.0
func (m CSSCreateStyleSheet) ProtoReq() string
ProtoReq name.
type CSSCreateStyleSheetResult ¶
type CSSCreateStyleSheetResult struct { // StyleSheetID Identifier of the created "via-inspector" stylesheet. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` }
CSSCreateStyleSheetResult ...
type CSSEnable ¶
type CSSEnable struct{}
CSSEnable 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.
type CSSFontFace ¶
type CSSFontFace struct { // FontFamily The font-family. FontFamily string `json:"fontFamily"` // FontStyle The font-style. FontStyle string `json:"fontStyle"` // FontVariant The font-variant. FontVariant string `json:"fontVariant"` // FontWeight The font-weight. FontWeight string `json:"fontWeight"` // FontStretch The font-stretch. FontStretch string `json:"fontStretch"` // FontDisplay The font-display. FontDisplay string `json:"fontDisplay"` // UnicodeRange The unicode-range. UnicodeRange string `json:"unicodeRange"` // Src The src. Src string `json:"src"` // PlatformFontFamily The resolved platform font family PlatformFontFamily string `json:"platformFontFamily"` // FontVariationAxes (optional) Available variation settings (a.k.a. "axes"). FontVariationAxes []*CSSFontVariationAxis `json:"fontVariationAxes,omitempty"` }
CSSFontFace Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
type CSSFontVariationAxis ¶ added in v0.72.0
type CSSFontVariationAxis struct { // Tag The font-variation-setting tag (a.k.a. "axis tag"). Tag string `json:"tag"` // Name Human-readable variation name in the default language (normally, "en"). Name string `json:"name"` // MinValue The minimum value (inclusive) the font supports for this tag. MinValue float64 `json:"minValue"` // MaxValue The maximum value (inclusive) the font supports for this tag. MaxValue float64 `json:"maxValue"` // DefaultValue The default value. DefaultValue float64 `json:"defaultValue"` }
CSSFontVariationAxis Information about font variation axes for variable fonts.
type CSSFontsUpdated ¶
type CSSFontsUpdated struct { // Font (optional) The web font that has loaded. Font *CSSFontFace `json:"font,omitempty"` }
CSSFontsUpdated Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font.
func (CSSFontsUpdated) ProtoEvent ¶ added in v0.72.0
func (evt CSSFontsUpdated) ProtoEvent() string
ProtoEvent name.
type CSSForcePseudoState ¶
type CSSForcePseudoState struct { // NodeID The element id for which to force the pseudo state. NodeID DOMNodeID `json:"nodeId"` // ForcedPseudoClasses Element pseudo classes to force when computing the element's style. ForcedPseudoClasses []string `json:"forcedPseudoClasses"` }
CSSForcePseudoState Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
func (CSSForcePseudoState) Call ¶
func (m CSSForcePseudoState) Call(c Client) error
Call sends the request.
func (CSSForcePseudoState) ProtoReq ¶ added in v0.74.0
func (m CSSForcePseudoState) ProtoReq() string
ProtoReq name.
type CSSGetBackgroundColors ¶
type CSSGetBackgroundColors struct { // NodeID Id of the node to get background colors for. NodeID DOMNodeID `json:"nodeId"` }
CSSGetBackgroundColors ...
func (CSSGetBackgroundColors) Call ¶
func (m CSSGetBackgroundColors) Call(c Client) (*CSSGetBackgroundColorsResult, error)
Call the request.
func (CSSGetBackgroundColors) ProtoReq ¶ added in v0.74.0
func (m CSSGetBackgroundColors) ProtoReq() string
ProtoReq name.
type CSSGetBackgroundColorsResult ¶
type CSSGetBackgroundColorsResult struct { // BackgroundColors (optional) The range of background colors behind this element, if it contains any visible text. If no // visible text is present, this will be undefined. In the case of a flat background color, // this will consist of simply that color. In the case of a gradient, this will consist of each // of the color stops. For anything more complicated, this will be an empty array. Images will // be ignored (as if the image had failed to load). BackgroundColors []string `json:"backgroundColors,omitempty"` // ComputedFontSize (optional) The computed font size for this node, as a CSS computed value string (e.g. '12px'). ComputedFontSize string `json:"computedFontSize,omitempty"` // ComputedFontWeight (optional) The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or // '100'). ComputedFontWeight string `json:"computedFontWeight,omitempty"` }
CSSGetBackgroundColorsResult ...
type CSSGetComputedStyleForNode ¶
type CSSGetComputedStyleForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
CSSGetComputedStyleForNode Returns the computed style for a DOM node identified by `nodeId`.
func (CSSGetComputedStyleForNode) Call ¶
func (m CSSGetComputedStyleForNode) Call(c Client) (*CSSGetComputedStyleForNodeResult, error)
Call the request.
func (CSSGetComputedStyleForNode) ProtoReq ¶ added in v0.74.0
func (m CSSGetComputedStyleForNode) ProtoReq() string
ProtoReq name.
type CSSGetComputedStyleForNodeResult ¶
type CSSGetComputedStyleForNodeResult struct { // ComputedStyle Computed style for the specified DOM node. ComputedStyle []*CSSCSSComputedStyleProperty `json:"computedStyle"` }
CSSGetComputedStyleForNodeResult ...
type CSSGetInlineStylesForNode ¶
type CSSGetInlineStylesForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
CSSGetInlineStylesForNode Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`.
func (CSSGetInlineStylesForNode) Call ¶
func (m CSSGetInlineStylesForNode) Call(c Client) (*CSSGetInlineStylesForNodeResult, error)
Call the request.
func (CSSGetInlineStylesForNode) ProtoReq ¶ added in v0.74.0
func (m CSSGetInlineStylesForNode) ProtoReq() string
ProtoReq name.
type CSSGetInlineStylesForNodeResult ¶
type CSSGetInlineStylesForNodeResult struct { // InlineStyle (optional) Inline style for the specified DOM node. InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"` // AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%"). AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"` }
CSSGetInlineStylesForNodeResult ...
type CSSGetLayersForNode ¶ added in v0.103.0
type CSSGetLayersForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
CSSGetLayersForNode (experimental) Returns all layers parsed by the rendering engine for the tree scope of a node. Given a DOM element identified by nodeId, getLayersForNode returns the root layer for the nearest ancestor document or shadow root. The layer root contains the full layer tree for the tree scope and their ordering.
func (CSSGetLayersForNode) Call ¶ added in v0.103.0
func (m CSSGetLayersForNode) Call(c Client) (*CSSGetLayersForNodeResult, error)
Call the request.
func (CSSGetLayersForNode) ProtoReq ¶ added in v0.103.0
func (m CSSGetLayersForNode) ProtoReq() string
ProtoReq name.
type CSSGetLayersForNodeResult ¶ added in v0.103.0
type CSSGetLayersForNodeResult struct { // RootLayer ... RootLayer *CSSCSSLayerData `json:"rootLayer"` }
CSSGetLayersForNodeResult (experimental) ...
type CSSGetLocationForSelector ¶ added in v0.115.0
type CSSGetLocationForSelector struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // SelectorText ... SelectorText string `json:"selectorText"` }
CSSGetLocationForSelector (experimental) Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.
func (CSSGetLocationForSelector) Call ¶ added in v0.115.0
func (m CSSGetLocationForSelector) Call(c Client) (*CSSGetLocationForSelectorResult, error)
Call the request.
func (CSSGetLocationForSelector) ProtoReq ¶ added in v0.115.0
func (m CSSGetLocationForSelector) ProtoReq() string
ProtoReq name.
type CSSGetLocationForSelectorResult ¶ added in v0.115.0
type CSSGetLocationForSelectorResult struct { // Ranges ... Ranges []*CSSSourceRange `json:"ranges"` }
CSSGetLocationForSelectorResult (experimental) ...
type CSSGetMatchedStylesForNode ¶
type CSSGetMatchedStylesForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
CSSGetMatchedStylesForNode Returns requested styles for a DOM node identified by `nodeId`.
func (CSSGetMatchedStylesForNode) Call ¶
func (m CSSGetMatchedStylesForNode) Call(c Client) (*CSSGetMatchedStylesForNodeResult, error)
Call the request.
func (CSSGetMatchedStylesForNode) ProtoReq ¶ added in v0.74.0
func (m CSSGetMatchedStylesForNode) ProtoReq() string
ProtoReq name.
type CSSGetMatchedStylesForNodeResult ¶
type CSSGetMatchedStylesForNodeResult struct { // InlineStyle (optional) Inline style for the specified DOM node. InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"` // AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%"). AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"` // MatchedCSSRules (optional) CSS rules matching this node, from all applicable stylesheets. MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules,omitempty"` // PseudoElements (optional) Pseudo style matches for this node. PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements,omitempty"` // Inherited (optional) A chain of inherited styles (from the immediate node parent up to the DOM tree root). Inherited []*CSSInheritedStyleEntry `json:"inherited,omitempty"` // InheritedPseudoElements (optional) A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root). InheritedPseudoElements []*CSSInheritedPseudoElementMatches `json:"inheritedPseudoElements,omitempty"` // CSSKeyframesRules (optional) A list of CSS keyframed animations matching this node. CSSKeyframesRules []*CSSCSSKeyframesRule `json:"cssKeyframesRules,omitempty"` // CSSPositionFallbackRules (deprecated) (optional) A list of CSS position fallbacks matching this node. CSSPositionFallbackRules []*CSSCSSPositionFallbackRule `json:"cssPositionFallbackRules,omitempty"` // CSSPositionTryRules (optional) A list of CSS @position-try rules matching this node, based on the position-try-options property. CSSPositionTryRules []*CSSCSSPositionTryRule `json:"cssPositionTryRules,omitempty"` // CSSPropertyRules (optional) A list of CSS at-property rules matching this node. CSSPropertyRules []*CSSCSSPropertyRule `json:"cssPropertyRules,omitempty"` // CSSPropertyRegistrations (optional) A list of CSS property registrations matching this node. CSSPropertyRegistrations []*CSSCSSPropertyRegistration `json:"cssPropertyRegistrations,omitempty"` // CSSFontPaletteValuesRule (optional) A font-palette-values rule matching this node. CSSFontPaletteValuesRule *CSSCSSFontPaletteValuesRule `json:"cssFontPaletteValuesRule,omitempty"` // ParentLayoutNodeID (experimental) (optional) Id of the first parent element that does not have display: contents. ParentLayoutNodeID DOMNodeID `json:"parentLayoutNodeId,omitempty"` }
CSSGetMatchedStylesForNodeResult ...
type CSSGetMediaQueries ¶
type CSSGetMediaQueries struct{}
CSSGetMediaQueries Returns all media queries parsed by the rendering engine.
func (CSSGetMediaQueries) Call ¶
func (m CSSGetMediaQueries) Call(c Client) (*CSSGetMediaQueriesResult, error)
Call the request.
func (CSSGetMediaQueries) ProtoReq ¶ added in v0.74.0
func (m CSSGetMediaQueries) ProtoReq() string
ProtoReq name.
type CSSGetMediaQueriesResult ¶
type CSSGetMediaQueriesResult struct { // Medias ... Medias []*CSSCSSMedia `json:"medias"` }
CSSGetMediaQueriesResult ...
type CSSGetPlatformFontsForNode ¶
type CSSGetPlatformFontsForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
CSSGetPlatformFontsForNode Requests information about platform fonts which we used to render child TextNodes in the given node.
func (CSSGetPlatformFontsForNode) Call ¶
func (m CSSGetPlatformFontsForNode) Call(c Client) (*CSSGetPlatformFontsForNodeResult, error)
Call the request.
func (CSSGetPlatformFontsForNode) ProtoReq ¶ added in v0.74.0
func (m CSSGetPlatformFontsForNode) ProtoReq() string
ProtoReq name.
type CSSGetPlatformFontsForNodeResult ¶
type CSSGetPlatformFontsForNodeResult struct { // Fonts Usage statistics for every employed platform font. Fonts []*CSSPlatformFontUsage `json:"fonts"` }
CSSGetPlatformFontsForNodeResult ...
type CSSGetStyleSheetText ¶
type CSSGetStyleSheetText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` }
CSSGetStyleSheetText Returns the current textual content for a stylesheet.
func (CSSGetStyleSheetText) Call ¶
func (m CSSGetStyleSheetText) Call(c Client) (*CSSGetStyleSheetTextResult, error)
Call the request.
func (CSSGetStyleSheetText) ProtoReq ¶ added in v0.74.0
func (m CSSGetStyleSheetText) ProtoReq() string
ProtoReq name.
type CSSGetStyleSheetTextResult ¶
type CSSGetStyleSheetTextResult struct { // Text The stylesheet text. Text string `json:"text"` }
CSSGetStyleSheetTextResult ...
type CSSInheritedPseudoElementMatches ¶ added in v0.104.0
type CSSInheritedPseudoElementMatches struct { // PseudoElements Matches of pseudo styles from the pseudos of an ancestor node. PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements"` }
CSSInheritedPseudoElementMatches Inherited pseudo element matches from pseudos of an ancestor node.
type CSSInheritedStyleEntry ¶
type CSSInheritedStyleEntry struct { // InlineStyle (optional) The ancestor node's inline style, if any, in the style inheritance chain. InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"` // MatchedCSSRules Matches of CSS rules matching the ancestor node in the style inheritance chain. MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules"` }
CSSInheritedStyleEntry Inherited CSS rule collection from ancestor node.
type CSSMediaQuery ¶
type CSSMediaQuery struct { // Expressions Array of media query expressions. Expressions []*CSSMediaQueryExpression `json:"expressions"` // Active Whether the media query condition is satisfied. Active bool `json:"active"` }
CSSMediaQuery Media query descriptor.
type CSSMediaQueryExpression ¶
type CSSMediaQueryExpression struct { // Value Media query expression value. Value float64 `json:"value"` // Unit Media query expression units. Unit string `json:"unit"` // Feature Media query expression feature. Feature string `json:"feature"` // ValueRange (optional) The associated range of the value text in the enclosing stylesheet (if available). ValueRange *CSSSourceRange `json:"valueRange,omitempty"` // ComputedLength (optional) Computed length of media query expression (if applicable). ComputedLength *float64 `json:"computedLength,omitempty"` }
CSSMediaQueryExpression Media query expression descriptor.
type CSSMediaQueryResultChanged ¶
type CSSMediaQueryResultChanged struct{}
CSSMediaQueryResultChanged Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.
func (CSSMediaQueryResultChanged) ProtoEvent ¶ added in v0.72.0
func (evt CSSMediaQueryResultChanged) ProtoEvent() string
ProtoEvent name.
type CSSPlatformFontUsage ¶
type CSSPlatformFontUsage struct { // FamilyName Font's family name reported by platform. FamilyName string `json:"familyName"` // PostScriptName Font's PostScript name reported by platform. PostScriptName string `json:"postScriptName"` // IsCustomFont Indicates if the font was downloaded or resolved locally. IsCustomFont bool `json:"isCustomFont"` // GlyphCount Amount of glyphs that were rendered with this font. GlyphCount float64 `json:"glyphCount"` }
CSSPlatformFontUsage Information about amount of glyphs that were rendered with given font.
type CSSPseudoElementMatches ¶
type CSSPseudoElementMatches struct { // PseudoType Pseudo element type. PseudoType DOMPseudoType `json:"pseudoType"` // PseudoIdentifier (optional) Pseudo element custom ident. PseudoIdentifier string `json:"pseudoIdentifier,omitempty"` // Matches of CSS rules applicable to the pseudo style. Matches []*CSSRuleMatch `json:"matches"` }
CSSPseudoElementMatches CSS rule collection for a single pseudo style.
type CSSRuleMatch ¶
type CSSRuleMatch struct { // Rule CSS rule in the match. Rule *CSSCSSRule `json:"rule"` // MatchingSelectors Matching selector indices in the rule's selectorList selectors (0-based). MatchingSelectors []int `json:"matchingSelectors"` }
CSSRuleMatch Match data for a CSS rule.
type CSSRuleUsage ¶
type CSSRuleUsage struct { // StyleSheetID The css style sheet identifier (absent for user agent stylesheet and user-specified // stylesheet rules) this rule came from. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // StartOffset Offset of the start of the rule (including selector) from the beginning of the stylesheet. StartOffset float64 `json:"startOffset"` // EndOffset Offset of the end of the rule body from the beginning of the stylesheet. EndOffset float64 `json:"endOffset"` // Used Indicates whether the rule was actually used by some element in the page. Used bool `json:"used"` }
CSSRuleUsage CSS coverage information.
type CSSSelectorList ¶
type CSSSelectorList struct { // Selectors in the list. Selectors []*CSSValue `json:"selectors"` // Text Rule selector text. Text string `json:"text"` }
CSSSelectorList Selector list data.
type CSSSetContainerQueryText ¶ added in v0.101.5
type CSSSetContainerQueryText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // Text ... Text string `json:"text"` }
CSSSetContainerQueryText (experimental) Modifies the expression of a container query.
func (CSSSetContainerQueryText) Call ¶ added in v0.101.5
func (m CSSSetContainerQueryText) Call(c Client) (*CSSSetContainerQueryTextResult, error)
Call the request.
func (CSSSetContainerQueryText) ProtoReq ¶ added in v0.101.5
func (m CSSSetContainerQueryText) ProtoReq() string
ProtoReq name.
type CSSSetContainerQueryTextResult ¶ added in v0.101.5
type CSSSetContainerQueryTextResult struct { // ContainerQuery The resulting CSS container query rule after modification. ContainerQuery *CSSCSSContainerQuery `json:"containerQuery"` }
CSSSetContainerQueryTextResult (experimental) ...
type CSSSetEffectivePropertyValueForNode ¶
type CSSSetEffectivePropertyValueForNode struct { // NodeID The element id for which to set property. NodeID DOMNodeID `json:"nodeId"` // PropertyName ... PropertyName string `json:"propertyName"` // Value ... Value string `json:"value"` }
CSSSetEffectivePropertyValueForNode Find a rule with the given active property for the given node and set the new value for this property.
func (CSSSetEffectivePropertyValueForNode) Call ¶
func (m CSSSetEffectivePropertyValueForNode) Call(c Client) error
Call sends the request.
func (CSSSetEffectivePropertyValueForNode) ProtoReq ¶ added in v0.74.0
func (m CSSSetEffectivePropertyValueForNode) ProtoReq() string
ProtoReq name.
type CSSSetKeyframeKey ¶
type CSSSetKeyframeKey struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // KeyText ... KeyText string `json:"keyText"` }
CSSSetKeyframeKey Modifies the keyframe rule key text.
func (CSSSetKeyframeKey) Call ¶
func (m CSSSetKeyframeKey) Call(c Client) (*CSSSetKeyframeKeyResult, error)
Call the request.
func (CSSSetKeyframeKey) ProtoReq ¶ added in v0.74.0
func (m CSSSetKeyframeKey) ProtoReq() string
ProtoReq name.
type CSSSetKeyframeKeyResult ¶
type CSSSetKeyframeKeyResult struct { // KeyText The resulting key text after modification. KeyText *CSSValue `json:"keyText"` }
CSSSetKeyframeKeyResult ...
type CSSSetLocalFontsEnabled ¶ added in v0.72.0
type CSSSetLocalFontsEnabled struct { // Enabled Whether rendering of local fonts is enabled. Enabled bool `json:"enabled"` }
CSSSetLocalFontsEnabled (experimental) Enables/disables rendering of local CSS fonts (enabled by default).
func (CSSSetLocalFontsEnabled) Call ¶ added in v0.72.0
func (m CSSSetLocalFontsEnabled) Call(c Client) error
Call sends the request.
func (CSSSetLocalFontsEnabled) ProtoReq ¶ added in v0.74.0
func (m CSSSetLocalFontsEnabled) ProtoReq() string
ProtoReq name.
type CSSSetMediaText ¶
type CSSSetMediaText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // Text ... Text string `json:"text"` }
CSSSetMediaText Modifies the rule selector.
func (CSSSetMediaText) Call ¶
func (m CSSSetMediaText) Call(c Client) (*CSSSetMediaTextResult, error)
Call the request.
func (CSSSetMediaText) ProtoReq ¶ added in v0.74.0
func (m CSSSetMediaText) ProtoReq() string
ProtoReq name.
type CSSSetMediaTextResult ¶
type CSSSetMediaTextResult struct { // Media The resulting CSS media rule after modification. Media *CSSCSSMedia `json:"media"` }
CSSSetMediaTextResult ...
type CSSSetPropertyRulePropertyName ¶ added in v0.115.0
type CSSSetPropertyRulePropertyName struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // PropertyName ... PropertyName string `json:"propertyName"` }
CSSSetPropertyRulePropertyName Modifies the property rule property name.
func (CSSSetPropertyRulePropertyName) Call ¶ added in v0.115.0
func (m CSSSetPropertyRulePropertyName) Call(c Client) (*CSSSetPropertyRulePropertyNameResult, error)
Call the request.
func (CSSSetPropertyRulePropertyName) ProtoReq ¶ added in v0.115.0
func (m CSSSetPropertyRulePropertyName) ProtoReq() string
ProtoReq name.
type CSSSetPropertyRulePropertyNameResult ¶ added in v0.115.0
type CSSSetPropertyRulePropertyNameResult struct { // PropertyName The resulting key text after modification. PropertyName *CSSValue `json:"propertyName"` }
CSSSetPropertyRulePropertyNameResult ...
type CSSSetRuleSelector ¶
type CSSSetRuleSelector struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // Selector ... Selector string `json:"selector"` }
CSSSetRuleSelector Modifies the rule selector.
func (CSSSetRuleSelector) Call ¶
func (m CSSSetRuleSelector) Call(c Client) (*CSSSetRuleSelectorResult, error)
Call the request.
func (CSSSetRuleSelector) ProtoReq ¶ added in v0.74.0
func (m CSSSetRuleSelector) ProtoReq() string
ProtoReq name.
type CSSSetRuleSelectorResult ¶
type CSSSetRuleSelectorResult struct { // SelectorList The resulting selector list after modification. SelectorList *CSSSelectorList `json:"selectorList"` }
CSSSetRuleSelectorResult ...
type CSSSetScopeText ¶ added in v0.108.2
type CSSSetScopeText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // Text ... Text string `json:"text"` }
CSSSetScopeText (experimental) Modifies the expression of a scope at-rule.
func (CSSSetScopeText) Call ¶ added in v0.108.2
func (m CSSSetScopeText) Call(c Client) (*CSSSetScopeTextResult, error)
Call the request.
func (CSSSetScopeText) ProtoReq ¶ added in v0.108.2
func (m CSSSetScopeText) ProtoReq() string
ProtoReq name.
type CSSSetScopeTextResult ¶ added in v0.108.2
type CSSSetScopeTextResult struct { // Scope The resulting CSS Scope rule after modification. Scope *CSSCSSScope `json:"scope"` }
CSSSetScopeTextResult (experimental) ...
type CSSSetStyleSheetText ¶
type CSSSetStyleSheetText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Text ... Text string `json:"text"` }
CSSSetStyleSheetText Sets the new stylesheet text.
func (CSSSetStyleSheetText) Call ¶
func (m CSSSetStyleSheetText) Call(c Client) (*CSSSetStyleSheetTextResult, error)
Call the request.
func (CSSSetStyleSheetText) ProtoReq ¶ added in v0.74.0
func (m CSSSetStyleSheetText) ProtoReq() string
ProtoReq name.
type CSSSetStyleSheetTextResult ¶
type CSSSetStyleSheetTextResult struct { // SourceMapURL (optional) URL of source map associated with script (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` }
CSSSetStyleSheetTextResult ...
type CSSSetStyleTexts ¶
type CSSSetStyleTexts struct { // Edits ... Edits []*CSSStyleDeclarationEdit `json:"edits"` // NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be // validated. If omitted, declarations in the new rule text can only be validated statically, which may produce // incorrect results if the declaration contains a var() for example. NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"` }
CSSSetStyleTexts Applies specified style edits one after another in the given order.
func (CSSSetStyleTexts) Call ¶
func (m CSSSetStyleTexts) Call(c Client) (*CSSSetStyleTextsResult, error)
Call the request.
func (CSSSetStyleTexts) ProtoReq ¶ added in v0.74.0
func (m CSSSetStyleTexts) ProtoReq() string
ProtoReq name.
type CSSSetStyleTextsResult ¶
type CSSSetStyleTextsResult struct { // Styles The resulting styles after modification. Styles []*CSSCSSStyle `json:"styles"` }
CSSSetStyleTextsResult ...
type CSSSetSupportsText ¶ added in v0.103.0
type CSSSetSupportsText struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range ... Range *CSSSourceRange `json:"range"` // Text ... Text string `json:"text"` }
CSSSetSupportsText (experimental) Modifies the expression of a supports at-rule.
func (CSSSetSupportsText) Call ¶ added in v0.103.0
func (m CSSSetSupportsText) Call(c Client) (*CSSSetSupportsTextResult, error)
Call the request.
func (CSSSetSupportsText) ProtoReq ¶ added in v0.103.0
func (m CSSSetSupportsText) ProtoReq() string
ProtoReq name.
type CSSSetSupportsTextResult ¶ added in v0.103.0
type CSSSetSupportsTextResult struct { // Supports The resulting CSS Supports rule after modification. Supports *CSSCSSSupports `json:"supports"` }
CSSSetSupportsTextResult (experimental) ...
type CSSShorthandEntry ¶
type CSSShorthandEntry struct { // Name Shorthand name. Name string `json:"name"` // Value Shorthand value. Value string `json:"value"` // Important (optional) Whether the property has "!important" annotation (implies `false` if absent). Important bool `json:"important,omitempty"` }
CSSShorthandEntry ...
type CSSSourceRange ¶
type CSSSourceRange struct { // StartLine Start line of range. StartLine int `json:"startLine"` // StartColumn Start column of range (inclusive). StartColumn int `json:"startColumn"` // EndLine End line of range EndLine int `json:"endLine"` // EndColumn End column of range (exclusive). EndColumn int `json:"endColumn"` }
CSSSourceRange Text range within a resource. All numbers are zero-based.
type CSSSpecificity ¶ added in v0.115.0
type CSSSpecificity struct { // A The a component, which represents the number of ID selectors. A int `json:"a"` // B The b component, which represents the number of class selectors, attributes selectors, and // pseudo-classes. B int `json:"b"` // C The c component, which represents the number of type selectors and pseudo-elements. C int `json:"c"` }
CSSSpecificity (experimental) Specificity: https://drafts.csswg.org/selectors/#specificity-rules
type CSSStartRuleUsageTracking ¶
type CSSStartRuleUsageTracking struct{}
CSSStartRuleUsageTracking Enables the selector recording.
func (CSSStartRuleUsageTracking) Call ¶
func (m CSSStartRuleUsageTracking) Call(c Client) error
Call sends the request.
func (CSSStartRuleUsageTracking) ProtoReq ¶ added in v0.74.0
func (m CSSStartRuleUsageTracking) ProtoReq() string
ProtoReq name.
type CSSStopRuleUsageTracking ¶
type CSSStopRuleUsageTracking struct{}
CSSStopRuleUsageTracking 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 (CSSStopRuleUsageTracking) Call ¶
func (m CSSStopRuleUsageTracking) Call(c Client) (*CSSStopRuleUsageTrackingResult, error)
Call the request.
func (CSSStopRuleUsageTracking) ProtoReq ¶ added in v0.74.0
func (m CSSStopRuleUsageTracking) ProtoReq() string
ProtoReq name.
type CSSStopRuleUsageTrackingResult ¶
type CSSStopRuleUsageTrackingResult struct { // RuleUsage ... RuleUsage []*CSSRuleUsage `json:"ruleUsage"` }
CSSStopRuleUsageTrackingResult ...
type CSSStyleDeclarationEdit ¶
type CSSStyleDeclarationEdit struct { // StyleSheetID The css style sheet identifier. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` // Range The range of the style text in the enclosing stylesheet. Range *CSSSourceRange `json:"range"` // Text New style text. Text string `json:"text"` }
CSSStyleDeclarationEdit A descriptor of operation to mutate style declaration text.
type CSSStyleSheetAdded ¶
type CSSStyleSheetAdded struct { // Header Added stylesheet metainfo. Header *CSSCSSStyleSheetHeader `json:"header"` }
CSSStyleSheetAdded Fired whenever an active document stylesheet is added.
func (CSSStyleSheetAdded) ProtoEvent ¶ added in v0.72.0
func (evt CSSStyleSheetAdded) ProtoEvent() string
ProtoEvent name.
type CSSStyleSheetChanged ¶
type CSSStyleSheetChanged struct { // StyleSheetID ... StyleSheetID CSSStyleSheetID `json:"styleSheetId"` }
CSSStyleSheetChanged Fired whenever a stylesheet is changed as a result of the client operation.
func (CSSStyleSheetChanged) ProtoEvent ¶ added in v0.72.0
func (evt CSSStyleSheetChanged) ProtoEvent() string
ProtoEvent name.
type CSSStyleSheetOrigin ¶
type CSSStyleSheetOrigin string
CSSStyleSheetOrigin Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets.
const ( // CSSStyleSheetOriginInjected enum const. CSSStyleSheetOriginInjected CSSStyleSheetOrigin = "injected" // CSSStyleSheetOriginUserAgent enum const. CSSStyleSheetOriginUserAgent CSSStyleSheetOrigin = "user-agent" // CSSStyleSheetOriginInspector enum const. CSSStyleSheetOriginInspector CSSStyleSheetOrigin = "inspector" // CSSStyleSheetOriginRegular enum const. CSSStyleSheetOriginRegular CSSStyleSheetOrigin = "regular" )
type CSSStyleSheetRemoved ¶
type CSSStyleSheetRemoved struct { // StyleSheetID Identifier of the removed stylesheet. StyleSheetID CSSStyleSheetID `json:"styleSheetId"` }
CSSStyleSheetRemoved Fired whenever an active document stylesheet is removed.
func (CSSStyleSheetRemoved) ProtoEvent ¶ added in v0.72.0
func (evt CSSStyleSheetRemoved) ProtoEvent() string
ProtoEvent name.
type CSSTakeComputedStyleUpdates ¶ added in v0.72.0
type CSSTakeComputedStyleUpdates struct{}
CSSTakeComputedStyleUpdates (experimental) Polls the next batch of computed style updates.
func (CSSTakeComputedStyleUpdates) Call ¶ added in v0.72.0
func (m CSSTakeComputedStyleUpdates) Call(c Client) (*CSSTakeComputedStyleUpdatesResult, error)
Call the request.
func (CSSTakeComputedStyleUpdates) ProtoReq ¶ added in v0.74.0
func (m CSSTakeComputedStyleUpdates) ProtoReq() string
ProtoReq name.
type CSSTakeComputedStyleUpdatesResult ¶ added in v0.72.0
type CSSTakeComputedStyleUpdatesResult struct { // NodeIDs The list of node Ids that have their tracked computed styles updated. NodeIDs []DOMNodeID `json:"nodeIds"` }
CSSTakeComputedStyleUpdatesResult (experimental) ...
type CSSTakeCoverageDelta ¶
type CSSTakeCoverageDelta struct{}
CSSTakeCoverageDelta Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
func (CSSTakeCoverageDelta) Call ¶
func (m CSSTakeCoverageDelta) Call(c Client) (*CSSTakeCoverageDeltaResult, error)
Call the request.
func (CSSTakeCoverageDelta) ProtoReq ¶ added in v0.74.0
func (m CSSTakeCoverageDelta) ProtoReq() string
ProtoReq name.
type CSSTakeCoverageDeltaResult ¶
type CSSTakeCoverageDeltaResult struct { // Coverage ... Coverage []*CSSRuleUsage `json:"coverage"` // Timestamp Monotonically increasing time, in seconds. Timestamp float64 `json:"timestamp"` }
CSSTakeCoverageDeltaResult ...
type CSSTrackComputedStyleUpdates ¶ added in v0.72.0
type CSSTrackComputedStyleUpdates struct { // PropertiesToTrack ... PropertiesToTrack []*CSSCSSComputedStyleProperty `json:"propertiesToTrack"` }
CSSTrackComputedStyleUpdates (experimental) 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 (CSSTrackComputedStyleUpdates) Call ¶ added in v0.72.0
func (m CSSTrackComputedStyleUpdates) Call(c Client) error
Call sends the request.
func (CSSTrackComputedStyleUpdates) ProtoReq ¶ added in v0.74.0
func (m CSSTrackComputedStyleUpdates) ProtoReq() string
ProtoReq name.
type CSSValue ¶
type CSSValue struct { // Text Value text. Text string `json:"text"` // Range (optional) Value range in the underlying resource (if available). Range *CSSSourceRange `json:"range,omitempty"` // Specificity (experimental) (optional) Specificity of the selector. Specificity *CSSSpecificity `json:"specificity,omitempty"` }
CSSValue Data for a simple selector (these are delimited by commas in a selector list).
type CacheStorageCache ¶
type CacheStorageCache struct { // CacheID An opaque unique id of the cache. CacheID CacheStorageCacheID `json:"cacheId"` // SecurityOrigin Security origin of the cache. SecurityOrigin string `json:"securityOrigin"` // StorageKey Storage key of the cache. StorageKey string `json:"storageKey"` // StorageBucket (optional) Storage bucket of the cache. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // CacheName The name of the cache. CacheName string `json:"cacheName"` }
CacheStorageCache Cache identifier.
type CacheStorageCacheID ¶
type CacheStorageCacheID string
CacheStorageCacheID Unique identifier of the Cache object.
type CacheStorageCachedResponse ¶
type CacheStorageCachedResponse struct { // Body Entry content, base64-encoded. Body []byte `json:"body"` }
CacheStorageCachedResponse Cached response.
type CacheStorageCachedResponseType ¶
type CacheStorageCachedResponseType string
CacheStorageCachedResponseType type of HTTP response cached.
const ( // CacheStorageCachedResponseTypeBasic enum const. CacheStorageCachedResponseTypeBasic CacheStorageCachedResponseType = "basic" // CacheStorageCachedResponseTypeCors enum const. CacheStorageCachedResponseTypeCors CacheStorageCachedResponseType = "cors" // CacheStorageCachedResponseTypeDefault enum const. CacheStorageCachedResponseTypeDefault CacheStorageCachedResponseType = "default" // CacheStorageCachedResponseTypeError enum const. CacheStorageCachedResponseTypeError CacheStorageCachedResponseType = "error" // CacheStorageCachedResponseTypeOpaqueResponse enum const. CacheStorageCachedResponseTypeOpaqueResponse CacheStorageCachedResponseType = "opaqueResponse" // CacheStorageCachedResponseTypeOpaqueRedirect enum const. CacheStorageCachedResponseTypeOpaqueRedirect CacheStorageCachedResponseType = "opaqueRedirect" )
type CacheStorageDataEntry ¶
type CacheStorageDataEntry struct { // RequestURL Request URL. RequestURL string `json:"requestURL"` // RequestMethod Request method. RequestMethod string `json:"requestMethod"` // RequestHeaders Request headers RequestHeaders []*CacheStorageHeader `json:"requestHeaders"` // ResponseTime Number of seconds since epoch. ResponseTime float64 `json:"responseTime"` // ResponseStatus HTTP response status code. ResponseStatus int `json:"responseStatus"` // ResponseStatusText HTTP response status text. ResponseStatusText string `json:"responseStatusText"` // ResponseType HTTP response type ResponseType CacheStorageCachedResponseType `json:"responseType"` // ResponseHeaders Response headers ResponseHeaders []*CacheStorageHeader `json:"responseHeaders"` }
CacheStorageDataEntry Data entry.
type CacheStorageDeleteCache ¶
type CacheStorageDeleteCache struct { // CacheID Id of cache for deletion. CacheID CacheStorageCacheID `json:"cacheId"` }
CacheStorageDeleteCache Deletes a cache.
func (CacheStorageDeleteCache) Call ¶
func (m CacheStorageDeleteCache) Call(c Client) error
Call sends the request.
func (CacheStorageDeleteCache) ProtoReq ¶ added in v0.74.0
func (m CacheStorageDeleteCache) ProtoReq() string
ProtoReq name.
type CacheStorageDeleteEntry ¶
type CacheStorageDeleteEntry struct { // CacheID Id of cache where the entry will be deleted. CacheID CacheStorageCacheID `json:"cacheId"` // Request URL spec of the request. Request string `json:"request"` }
CacheStorageDeleteEntry Deletes a cache entry.
func (CacheStorageDeleteEntry) Call ¶
func (m CacheStorageDeleteEntry) Call(c Client) error
Call sends the request.
func (CacheStorageDeleteEntry) ProtoReq ¶ added in v0.74.0
func (m CacheStorageDeleteEntry) ProtoReq() string
ProtoReq name.
type CacheStorageHeader ¶
type CacheStorageHeader struct { // Name ... Name string `json:"name"` // Value ... Value string `json:"value"` }
CacheStorageHeader ...
type CacheStorageRequestCacheNames ¶
type CacheStorageRequestCacheNames struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` }
CacheStorageRequestCacheNames Requests cache names.
func (CacheStorageRequestCacheNames) Call ¶
func (m CacheStorageRequestCacheNames) Call(c Client) (*CacheStorageRequestCacheNamesResult, error)
Call the request.
func (CacheStorageRequestCacheNames) ProtoReq ¶ added in v0.74.0
func (m CacheStorageRequestCacheNames) ProtoReq() string
ProtoReq name.
type CacheStorageRequestCacheNamesResult ¶
type CacheStorageRequestCacheNamesResult struct { // Caches for the security origin. Caches []*CacheStorageCache `json:"caches"` }
CacheStorageRequestCacheNamesResult ...
type CacheStorageRequestCachedResponse ¶
type CacheStorageRequestCachedResponse struct { // CacheID Id of cache that contains the entry. CacheID CacheStorageCacheID `json:"cacheId"` // RequestURL URL spec of the request. RequestURL string `json:"requestURL"` // RequestHeaders headers of the request. RequestHeaders []*CacheStorageHeader `json:"requestHeaders"` }
CacheStorageRequestCachedResponse Fetches cache entry.
func (CacheStorageRequestCachedResponse) Call ¶
func (m CacheStorageRequestCachedResponse) Call(c Client) (*CacheStorageRequestCachedResponseResult, error)
Call the request.
func (CacheStorageRequestCachedResponse) ProtoReq ¶ added in v0.74.0
func (m CacheStorageRequestCachedResponse) ProtoReq() string
ProtoReq name.
type CacheStorageRequestCachedResponseResult ¶
type CacheStorageRequestCachedResponseResult struct { // Response read from the cache. Response *CacheStorageCachedResponse `json:"response"` }
CacheStorageRequestCachedResponseResult ...
type CacheStorageRequestEntries ¶
type CacheStorageRequestEntries struct { // CacheID ID of cache to get entries from. CacheID CacheStorageCacheID `json:"cacheId"` // SkipCount (optional) Number of records to skip. SkipCount *int `json:"skipCount,omitempty"` // PageSize (optional) Number of records to fetch. PageSize *int `json:"pageSize,omitempty"` // PathFilter (optional) If present, only return the entries containing this substring in the path PathFilter string `json:"pathFilter,omitempty"` }
CacheStorageRequestEntries Requests data from cache.
func (CacheStorageRequestEntries) Call ¶
func (m CacheStorageRequestEntries) Call(c Client) (*CacheStorageRequestEntriesResult, error)
Call the request.
func (CacheStorageRequestEntries) ProtoReq ¶ added in v0.74.0
func (m CacheStorageRequestEntries) ProtoReq() string
ProtoReq name.
type CacheStorageRequestEntriesResult ¶
type CacheStorageRequestEntriesResult struct { // CacheDataEntries Array of object store data entries. CacheDataEntries []*CacheStorageDataEntry `json:"cacheDataEntries"` // ReturnCount Count of returned entries from this storage. If pathFilter is empty, it // is the count of all entries from this storage. ReturnCount float64 `json:"returnCount"` }
CacheStorageRequestEntriesResult ...
type CastDisable ¶
type CastDisable struct{}
CastDisable Stops observing for sinks and issues.
func (CastDisable) ProtoReq ¶ added in v0.74.0
func (m CastDisable) ProtoReq() string
ProtoReq name.
type CastEnable ¶
type CastEnable struct { // PresentationURL (optional) ... PresentationURL string `json:"presentationUrl,omitempty"` }
CastEnable 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.
type CastIssueUpdated ¶
type CastIssueUpdated struct { // IssueMessage ... IssueMessage string `json:"issueMessage"` }
CastIssueUpdated This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.
func (CastIssueUpdated) ProtoEvent ¶ added in v0.72.0
func (evt CastIssueUpdated) ProtoEvent() string
ProtoEvent name.
type CastSetSinkToUse ¶
type CastSetSinkToUse struct { // SinkName ... SinkName string `json:"sinkName"` }
CastSetSinkToUse 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 (CastSetSinkToUse) Call ¶
func (m CastSetSinkToUse) Call(c Client) error
Call sends the request.
func (CastSetSinkToUse) ProtoReq ¶ added in v0.74.0
func (m CastSetSinkToUse) ProtoReq() string
ProtoReq name.
type CastSink ¶
type CastSink struct { // Name ... Name string `json:"name"` // ID ... ID string `json:"id"` // Session (optional) Text describing the current session. Present only if there is an active // session on the sink. Session string `json:"session,omitempty"` }
CastSink ...
type CastSinksUpdated ¶
type CastSinksUpdated struct { // Sinks ... Sinks []*CastSink `json:"sinks"` }
CastSinksUpdated This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.
func (CastSinksUpdated) ProtoEvent ¶ added in v0.72.0
func (evt CastSinksUpdated) ProtoEvent() string
ProtoEvent name.
type CastStartDesktopMirroring ¶ added in v0.102.0
type CastStartDesktopMirroring struct { // SinkName ... SinkName string `json:"sinkName"` }
CastStartDesktopMirroring Starts mirroring the desktop to the sink.
func (CastStartDesktopMirroring) Call ¶ added in v0.102.0
func (m CastStartDesktopMirroring) Call(c Client) error
Call sends the request.
func (CastStartDesktopMirroring) ProtoReq ¶ added in v0.102.0
func (m CastStartDesktopMirroring) ProtoReq() string
ProtoReq name.
type CastStartTabMirroring ¶
type CastStartTabMirroring struct { // SinkName ... SinkName string `json:"sinkName"` }
CastStartTabMirroring Starts mirroring the tab to the sink.
func (CastStartTabMirroring) Call ¶
func (m CastStartTabMirroring) Call(c Client) error
Call sends the request.
func (CastStartTabMirroring) ProtoReq ¶ added in v0.74.0
func (m CastStartTabMirroring) ProtoReq() string
ProtoReq name.
type CastStopCasting ¶
type CastStopCasting struct { // SinkName ... SinkName string `json:"sinkName"` }
CastStopCasting Stops the active Cast session on the sink.
func (CastStopCasting) ProtoReq ¶ added in v0.74.0
func (m CastStopCasting) ProtoReq() string
ProtoReq name.
type Client ¶
type Client interface {
Call(ctx context.Context, sessionID, methodName string, params interface{}) (res []byte, err error)
}
Client interface to send the request. So that this lib doesn't handle anything has side effect.
type ConsoleClearMessages ¶
type ConsoleClearMessages struct{}
ConsoleClearMessages Does nothing.
func (ConsoleClearMessages) Call ¶
func (m ConsoleClearMessages) Call(c Client) error
Call sends the request.
func (ConsoleClearMessages) ProtoReq ¶ added in v0.74.0
func (m ConsoleClearMessages) ProtoReq() string
ProtoReq name.
type ConsoleConsoleMessage ¶
type ConsoleConsoleMessage struct { // Source Message source. Source ConsoleConsoleMessageSource `json:"source"` // Level Message severity. Level ConsoleConsoleMessageLevel `json:"level"` // Text Message text. Text string `json:"text"` // URL (optional) URL of the message origin. URL string `json:"url,omitempty"` // Line (optional) Line number in the resource that generated this message (1-based). Line *int `json:"line,omitempty"` // Column (optional) Column number in the resource that generated this message (1-based). Column *int `json:"column,omitempty"` }
ConsoleConsoleMessage Console message.
type ConsoleConsoleMessageLevel ¶
type ConsoleConsoleMessageLevel string
ConsoleConsoleMessageLevel enum.
const ( // ConsoleConsoleMessageLevelLog enum const. ConsoleConsoleMessageLevelLog ConsoleConsoleMessageLevel = "log" // ConsoleConsoleMessageLevelWarning enum const. ConsoleConsoleMessageLevelWarning ConsoleConsoleMessageLevel = "warning" // ConsoleConsoleMessageLevelError enum const. ConsoleConsoleMessageLevelError ConsoleConsoleMessageLevel = "error" // ConsoleConsoleMessageLevelDebug enum const. ConsoleConsoleMessageLevelDebug ConsoleConsoleMessageLevel = "debug" // ConsoleConsoleMessageLevelInfo enum const. ConsoleConsoleMessageLevelInfo ConsoleConsoleMessageLevel = "info" )
type ConsoleConsoleMessageSource ¶
type ConsoleConsoleMessageSource string
ConsoleConsoleMessageSource enum.
const ( // ConsoleConsoleMessageSourceXML enum const. ConsoleConsoleMessageSourceXML ConsoleConsoleMessageSource = "xml" // ConsoleConsoleMessageSourceJavascript enum const. ConsoleConsoleMessageSourceJavascript ConsoleConsoleMessageSource = "javascript" // ConsoleConsoleMessageSourceNetwork enum const. ConsoleConsoleMessageSourceNetwork ConsoleConsoleMessageSource = "network" // ConsoleConsoleMessageSourceConsoleAPI enum const. ConsoleConsoleMessageSourceConsoleAPI ConsoleConsoleMessageSource = "console-api" // ConsoleConsoleMessageSourceStorage enum const. ConsoleConsoleMessageSourceStorage ConsoleConsoleMessageSource = "storage" // ConsoleConsoleMessageSourceAppcache enum const. ConsoleConsoleMessageSourceAppcache ConsoleConsoleMessageSource = "appcache" // ConsoleConsoleMessageSourceRendering enum const. ConsoleConsoleMessageSourceRendering ConsoleConsoleMessageSource = "rendering" // ConsoleConsoleMessageSourceSecurity enum const. ConsoleConsoleMessageSourceSecurity ConsoleConsoleMessageSource = "security" // ConsoleConsoleMessageSourceOther enum const. ConsoleConsoleMessageSourceOther ConsoleConsoleMessageSource = "other" // ConsoleConsoleMessageSourceDeprecation enum const. ConsoleConsoleMessageSourceDeprecation ConsoleConsoleMessageSource = "deprecation" // ConsoleConsoleMessageSourceWorker enum const. ConsoleConsoleMessageSourceWorker ConsoleConsoleMessageSource = "worker" )
type ConsoleDisable ¶
type ConsoleDisable struct{}
ConsoleDisable Disables console domain, prevents further console messages from being reported to the client.
func (ConsoleDisable) ProtoReq ¶ added in v0.74.0
func (m ConsoleDisable) ProtoReq() string
ProtoReq name.
type ConsoleEnable ¶
type ConsoleEnable struct{}
ConsoleEnable Enables console domain, sends the messages collected so far to the client by means of the `messageAdded` notification.
func (ConsoleEnable) ProtoReq ¶ added in v0.74.0
func (m ConsoleEnable) ProtoReq() string
ProtoReq name.
type ConsoleMessageAdded ¶
type ConsoleMessageAdded struct { // Message Console message that has been added. Message *ConsoleConsoleMessage `json:"message"` }
ConsoleMessageAdded Issued when new console message is added.
func (ConsoleMessageAdded) ProtoEvent ¶ added in v0.72.0
func (evt ConsoleMessageAdded) ProtoEvent() string
ProtoEvent name.
type Contextable ¶ added in v0.70.0
Contextable type has a context.Context for its methods.
type DOMAttributeModified ¶
type DOMAttributeModified struct { // NodeID Id of the node that has changed. NodeID DOMNodeID `json:"nodeId"` // Name Attribute name. Name string `json:"name"` // Value Attribute value. Value string `json:"value"` }
DOMAttributeModified Fired when `Element`'s attribute is modified.
func (DOMAttributeModified) ProtoEvent ¶ added in v0.72.0
func (evt DOMAttributeModified) ProtoEvent() string
ProtoEvent name.
type DOMAttributeRemoved ¶
type DOMAttributeRemoved struct { // NodeID Id of the node that has changed. NodeID DOMNodeID `json:"nodeId"` // Name A ttribute name. Name string `json:"name"` }
DOMAttributeRemoved Fired when `Element`'s attribute is removed.
func (DOMAttributeRemoved) ProtoEvent ¶ added in v0.72.0
func (evt DOMAttributeRemoved) ProtoEvent() string
ProtoEvent name.
type DOMBackendNode ¶
type DOMBackendNode struct { // NodeType `Node`'s nodeType. NodeType int `json:"nodeType"` // NodeName `Node`'s nodeName. NodeName string `json:"nodeName"` // BackendNodeID ... BackendNodeID DOMBackendNodeID `json:"backendNodeId"` }
DOMBackendNode Backend node with a friendly name.
type DOMBackendNodeID ¶
type DOMBackendNodeID int
DOMBackendNodeID Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.
type DOMBoxModel ¶
type DOMBoxModel struct { // Content box Content DOMQuad `json:"content"` // Padding box Padding DOMQuad `json:"padding"` // Border box Border DOMQuad `json:"border"` // Margin box Margin DOMQuad `json:"margin"` // Width Node width Width int `json:"width"` // Height Node height Height int `json:"height"` // ShapeOutside (optional) Shape outside coordinates ShapeOutside *DOMShapeOutsideInfo `json:"shapeOutside,omitempty"` }
DOMBoxModel Box model.
type DOMCSSComputedStyleProperty ¶ added in v0.72.0
type DOMCSSComputedStyleProperty struct { // Name Computed style property name. Name string `json:"name"` // Value Computed style property value. Value string `json:"value"` }
DOMCSSComputedStyleProperty ...
type DOMCharacterDataModified ¶
type DOMCharacterDataModified struct { // NodeID Id of the node that has changed. NodeID DOMNodeID `json:"nodeId"` // CharacterData New text value. CharacterData string `json:"characterData"` }
DOMCharacterDataModified Mirrors `DOMCharacterDataModified` event.
func (DOMCharacterDataModified) ProtoEvent ¶ added in v0.72.0
func (evt DOMCharacterDataModified) ProtoEvent() string
ProtoEvent name.
type DOMChildNodeCountUpdated ¶
type DOMChildNodeCountUpdated struct { // NodeID Id of the node that has changed. NodeID DOMNodeID `json:"nodeId"` // ChildNodeCount New node count. ChildNodeCount int `json:"childNodeCount"` }
DOMChildNodeCountUpdated Fired when `Container`'s child node count has changed.
func (DOMChildNodeCountUpdated) ProtoEvent ¶ added in v0.72.0
func (evt DOMChildNodeCountUpdated) ProtoEvent() string
ProtoEvent name.
type DOMChildNodeInserted ¶
type DOMChildNodeInserted struct { // ParentNodeID Id of the node that has changed. ParentNodeID DOMNodeID `json:"parentNodeId"` // PreviousNodeID Id of the previous sibling. PreviousNodeID DOMNodeID `json:"previousNodeId"` // Node Inserted node data. Node *DOMNode `json:"node"` }
DOMChildNodeInserted Mirrors `DOMNodeInserted` event.
func (DOMChildNodeInserted) ProtoEvent ¶ added in v0.72.0
func (evt DOMChildNodeInserted) ProtoEvent() string
ProtoEvent name.
type DOMChildNodeRemoved ¶
type DOMChildNodeRemoved struct { // ParentNodeID Parent id. ParentNodeID DOMNodeID `json:"parentNodeId"` // NodeID Id of the node that has been removed. NodeID DOMNodeID `json:"nodeId"` }
DOMChildNodeRemoved Mirrors `DOMNodeRemoved` event.
func (DOMChildNodeRemoved) ProtoEvent ¶ added in v0.72.0
func (evt DOMChildNodeRemoved) ProtoEvent() string
ProtoEvent name.
type DOMCollectClassNamesFromSubtree ¶
type DOMCollectClassNamesFromSubtree struct { // NodeID Id of the node to collect class names. NodeID DOMNodeID `json:"nodeId"` }
DOMCollectClassNamesFromSubtree (experimental) Collects class names for the node with given id and all of it's child nodes.
func (DOMCollectClassNamesFromSubtree) Call ¶
func (m DOMCollectClassNamesFromSubtree) Call(c Client) (*DOMCollectClassNamesFromSubtreeResult, error)
Call the request.
func (DOMCollectClassNamesFromSubtree) ProtoReq ¶ added in v0.74.0
func (m DOMCollectClassNamesFromSubtree) ProtoReq() string
ProtoReq name.
type DOMCollectClassNamesFromSubtreeResult ¶
type DOMCollectClassNamesFromSubtreeResult struct { // ClassNames Class name list. ClassNames []string `json:"classNames"` }
DOMCollectClassNamesFromSubtreeResult (experimental) ...
type DOMCompatibilityMode ¶ added in v0.100.0
type DOMCompatibilityMode string
DOMCompatibilityMode Document compatibility mode.
const ( // DOMCompatibilityModeQuirksMode enum const. DOMCompatibilityModeQuirksMode DOMCompatibilityMode = "QuirksMode" // DOMCompatibilityModeLimitedQuirksMode enum const. DOMCompatibilityModeLimitedQuirksMode DOMCompatibilityMode = "LimitedQuirksMode" // DOMCompatibilityModeNoQuirksMode enum const. DOMCompatibilityModeNoQuirksMode DOMCompatibilityMode = "NoQuirksMode" )
type DOMCopyTo ¶
type DOMCopyTo struct { // NodeID Id of the node to copy. NodeID DOMNodeID `json:"nodeId"` // TargetNodeID Id of the element to drop the copy into. TargetNodeID DOMNodeID `json:"targetNodeId"` // InsertBeforeNodeID (optional) Drop the copy before this node (if absent, the copy becomes the last child of // `targetNodeId`). InsertBeforeNodeID DOMNodeID `json:"insertBeforeNodeId,omitempty"` }
DOMCopyTo (experimental) Creates a deep copy of the specified node and places it into the target container before the given anchor.
type DOMCopyToResult ¶
type DOMCopyToResult struct { // NodeID Id of the node clone. NodeID DOMNodeID `json:"nodeId"` }
DOMCopyToResult (experimental) ...
type DOMDebuggerCSPViolationType ¶ added in v0.90.0
type DOMDebuggerCSPViolationType string
DOMDebuggerCSPViolationType (experimental) CSP Violation type.
const ( // DOMDebuggerCSPViolationTypeTrustedtypeSinkViolation enum const. DOMDebuggerCSPViolationTypeTrustedtypeSinkViolation DOMDebuggerCSPViolationType = "trustedtype-sink-violation" // DOMDebuggerCSPViolationTypeTrustedtypePolicyViolation enum const. DOMDebuggerCSPViolationTypeTrustedtypePolicyViolation DOMDebuggerCSPViolationType = "trustedtype-policy-violation" )
type DOMDebuggerDOMBreakpointType ¶
type DOMDebuggerDOMBreakpointType string
DOMDebuggerDOMBreakpointType DOM breakpoint type.
const ( // DOMDebuggerDOMBreakpointTypeSubtreeModified enum const. DOMDebuggerDOMBreakpointTypeSubtreeModified DOMDebuggerDOMBreakpointType = "subtree-modified" // DOMDebuggerDOMBreakpointTypeAttributeModified enum const. DOMDebuggerDOMBreakpointTypeAttributeModified DOMDebuggerDOMBreakpointType = "attribute-modified" // DOMDebuggerDOMBreakpointTypeNodeRemoved enum const. DOMDebuggerDOMBreakpointTypeNodeRemoved DOMDebuggerDOMBreakpointType = "node-removed" )
type DOMDebuggerEventListener ¶
type DOMDebuggerEventListener struct { // Type `EventListener`'s type. Type string `json:"type"` // UseCapture `EventListener`'s useCapture. UseCapture bool `json:"useCapture"` // Passive `EventListener`'s passive flag. Passive bool `json:"passive"` // Once `EventListener`'s once flag. Once bool `json:"once"` // ScriptID Script id of the handler code. ScriptID RuntimeScriptID `json:"scriptId"` // LineNumber Line number in the script (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber Column number in the script (0-based). ColumnNumber int `json:"columnNumber"` // Handler (optional) Event handler function value. Handler *RuntimeRemoteObject `json:"handler,omitempty"` // OriginalHandler (optional) Event original handler function value. OriginalHandler *RuntimeRemoteObject `json:"originalHandler,omitempty"` // BackendNodeID (optional) Node the listener is added to (if any). BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` }
DOMDebuggerEventListener Object event listener.
type DOMDebuggerGetEventListeners ¶
type DOMDebuggerGetEventListeners struct { // ObjectID Identifier of the object to return listeners for. ObjectID RuntimeRemoteObjectID `json:"objectId"` // Depth (optional) The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the // entire subtree or provide an integer larger than 0. Depth *int `json:"depth,omitempty"` // Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree // (default is false). Reports listeners for all contexts if pierce is enabled. Pierce bool `json:"pierce,omitempty"` }
DOMDebuggerGetEventListeners Returns event listeners of the given object.
func (DOMDebuggerGetEventListeners) Call ¶
func (m DOMDebuggerGetEventListeners) Call(c Client) (*DOMDebuggerGetEventListenersResult, error)
Call the request.
func (DOMDebuggerGetEventListeners) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerGetEventListeners) ProtoReq() string
ProtoReq name.
type DOMDebuggerGetEventListenersResult ¶
type DOMDebuggerGetEventListenersResult struct { // Listeners Array of relevant listeners. Listeners []*DOMDebuggerEventListener `json:"listeners"` }
DOMDebuggerGetEventListenersResult ...
type DOMDebuggerRemoveDOMBreakpoint ¶
type DOMDebuggerRemoveDOMBreakpoint struct { // NodeID Identifier of the node to remove breakpoint from. NodeID DOMNodeID `json:"nodeId"` // Type of the breakpoint to remove. Type DOMDebuggerDOMBreakpointType `json:"type"` }
DOMDebuggerRemoveDOMBreakpoint Removes DOM breakpoint that was set using `setDOMBreakpoint`.
func (DOMDebuggerRemoveDOMBreakpoint) Call ¶
func (m DOMDebuggerRemoveDOMBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerRemoveDOMBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerRemoveDOMBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerRemoveEventListenerBreakpoint ¶
type DOMDebuggerRemoveEventListenerBreakpoint struct { // EventName Event name. EventName string `json:"eventName"` // TargetName (experimental) (optional) EventTarget interface name. TargetName string `json:"targetName,omitempty"` }
DOMDebuggerRemoveEventListenerBreakpoint Removes breakpoint on particular DOM event.
func (DOMDebuggerRemoveEventListenerBreakpoint) Call ¶
func (m DOMDebuggerRemoveEventListenerBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerRemoveEventListenerBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerRemoveEventListenerBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerRemoveInstrumentationBreakpoint ¶
type DOMDebuggerRemoveInstrumentationBreakpoint struct { // EventName Instrumentation name to stop on. EventName string `json:"eventName"` }
DOMDebuggerRemoveInstrumentationBreakpoint (deprecated) (experimental) Removes breakpoint on particular native event.
func (DOMDebuggerRemoveInstrumentationBreakpoint) Call ¶
func (m DOMDebuggerRemoveInstrumentationBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerRemoveInstrumentationBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerRemoveInstrumentationBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerRemoveXHRBreakpoint ¶
type DOMDebuggerRemoveXHRBreakpoint struct { // URL Resource URL substring. URL string `json:"url"` }
DOMDebuggerRemoveXHRBreakpoint Removes breakpoint from XMLHttpRequest.
func (DOMDebuggerRemoveXHRBreakpoint) Call ¶
func (m DOMDebuggerRemoveXHRBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerRemoveXHRBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerRemoveXHRBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerSetBreakOnCSPViolation ¶ added in v0.90.0
type DOMDebuggerSetBreakOnCSPViolation struct { // ViolationTypes CSP Violations to stop upon. ViolationTypes []DOMDebuggerCSPViolationType `json:"violationTypes"` }
DOMDebuggerSetBreakOnCSPViolation (experimental) Sets breakpoint on particular CSP violations.
func (DOMDebuggerSetBreakOnCSPViolation) Call ¶ added in v0.90.0
func (m DOMDebuggerSetBreakOnCSPViolation) Call(c Client) error
Call sends the request.
func (DOMDebuggerSetBreakOnCSPViolation) ProtoReq ¶ added in v0.90.0
func (m DOMDebuggerSetBreakOnCSPViolation) ProtoReq() string
ProtoReq name.
type DOMDebuggerSetDOMBreakpoint ¶
type DOMDebuggerSetDOMBreakpoint struct { // NodeID Identifier of the node to set breakpoint on. NodeID DOMNodeID `json:"nodeId"` // Type of the operation to stop upon. Type DOMDebuggerDOMBreakpointType `json:"type"` }
DOMDebuggerSetDOMBreakpoint Sets breakpoint on particular operation with DOM.
func (DOMDebuggerSetDOMBreakpoint) Call ¶
func (m DOMDebuggerSetDOMBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerSetDOMBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerSetDOMBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerSetEventListenerBreakpoint ¶
type DOMDebuggerSetEventListenerBreakpoint struct { // EventName DOM Event name to stop on (any DOM event will do). EventName string `json:"eventName"` // TargetName (experimental) (optional) EventTarget interface name to stop on. If equal to `"*"` or not provided, will stop on any // EventTarget. TargetName string `json:"targetName,omitempty"` }
DOMDebuggerSetEventListenerBreakpoint Sets breakpoint on particular DOM event.
func (DOMDebuggerSetEventListenerBreakpoint) Call ¶
func (m DOMDebuggerSetEventListenerBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerSetEventListenerBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerSetEventListenerBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerSetInstrumentationBreakpoint ¶
type DOMDebuggerSetInstrumentationBreakpoint struct { // EventName Instrumentation name to stop on. EventName string `json:"eventName"` }
DOMDebuggerSetInstrumentationBreakpoint (deprecated) (experimental) Sets breakpoint on particular native event.
func (DOMDebuggerSetInstrumentationBreakpoint) Call ¶
func (m DOMDebuggerSetInstrumentationBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerSetInstrumentationBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerSetInstrumentationBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDebuggerSetXHRBreakpoint ¶
type DOMDebuggerSetXHRBreakpoint struct { // URL Resource URL substring. All XHRs having this substring in the URL will get stopped upon. URL string `json:"url"` }
DOMDebuggerSetXHRBreakpoint Sets breakpoint on XMLHttpRequest.
func (DOMDebuggerSetXHRBreakpoint) Call ¶
func (m DOMDebuggerSetXHRBreakpoint) Call(c Client) error
Call sends the request.
func (DOMDebuggerSetXHRBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DOMDebuggerSetXHRBreakpoint) ProtoReq() string
ProtoReq name.
type DOMDescribeNode ¶
type DOMDescribeNode struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the // entire subtree or provide an integer larger than 0. Depth *int `json:"depth,omitempty"` // Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree // (default is false). Pierce bool `json:"pierce,omitempty"` }
DOMDescribeNode Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.
func (DOMDescribeNode) Call ¶
func (m DOMDescribeNode) Call(c Client) (*DOMDescribeNodeResult, error)
Call the request.
func (DOMDescribeNode) ProtoReq ¶ added in v0.74.0
func (m DOMDescribeNode) ProtoReq() string
ProtoReq name.
type DOMDescribeNodeResult ¶
type DOMDescribeNodeResult struct { // Node description. Node *DOMNode `json:"node"` }
DOMDescribeNodeResult ...
type DOMDiscardSearchResults ¶
type DOMDiscardSearchResults struct { // SearchID Unique search session identifier. SearchID string `json:"searchId"` }
DOMDiscardSearchResults (experimental) Discards search results from the session with the given id. `getSearchResults` should no longer be called for that search.
func (DOMDiscardSearchResults) Call ¶
func (m DOMDiscardSearchResults) Call(c Client) error
Call sends the request.
func (DOMDiscardSearchResults) ProtoReq ¶ added in v0.74.0
func (m DOMDiscardSearchResults) ProtoReq() string
ProtoReq name.
type DOMDistributedNodesUpdated ¶
type DOMDistributedNodesUpdated struct { // InsertionPointID Insertion point where distributed nodes were updated. InsertionPointID DOMNodeID `json:"insertionPointId"` // DistributedNodes Distributed nodes for given insertion point. DistributedNodes []*DOMBackendNode `json:"distributedNodes"` }
DOMDistributedNodesUpdated (experimental) Called when distribution is changed.
func (DOMDistributedNodesUpdated) ProtoEvent ¶ added in v0.72.0
func (evt DOMDistributedNodesUpdated) ProtoEvent() string
ProtoEvent name.
type DOMDocumentUpdated ¶
type DOMDocumentUpdated struct{}
DOMDocumentUpdated Fired when `Document` has been totally updated. Node ids are no longer valid.
func (DOMDocumentUpdated) ProtoEvent ¶ added in v0.72.0
func (evt DOMDocumentUpdated) ProtoEvent() string
ProtoEvent name.
type DOMEnable ¶
type DOMEnable struct { // IncludeWhitespace (experimental) (optional) Whether to include whitespaces in the children array of returned Nodes. IncludeWhitespace DOMEnableIncludeWhitespace `json:"includeWhitespace,omitempty"` }
DOMEnable Enables DOM agent for the given page.
type DOMEnableIncludeWhitespace ¶ added in v0.102.1
type DOMEnableIncludeWhitespace string
DOMEnableIncludeWhitespace enum.
const ( // DOMEnableIncludeWhitespaceNone enum const. DOMEnableIncludeWhitespaceNone DOMEnableIncludeWhitespace = "none" // DOMEnableIncludeWhitespaceAll enum const. DOMEnableIncludeWhitespaceAll DOMEnableIncludeWhitespace = "all" )
type DOMFocus ¶
type DOMFocus struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
DOMFocus Focuses the given element.
type DOMGetAnchorElement ¶ added in v0.116.2
type DOMGetAnchorElement struct { // NodeID Id of the positioned element from which to find the anchor. NodeID DOMNodeID `json:"nodeId"` // AnchorSpecifier (optional) An optional anchor specifier, as defined in // https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier. // If not provided, it will return the implicit anchor element for // the given positioned element. AnchorSpecifier string `json:"anchorSpecifier,omitempty"` }
DOMGetAnchorElement (experimental) Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.
func (DOMGetAnchorElement) Call ¶ added in v0.116.2
func (m DOMGetAnchorElement) Call(c Client) (*DOMGetAnchorElementResult, error)
Call the request.
func (DOMGetAnchorElement) ProtoReq ¶ added in v0.116.2
func (m DOMGetAnchorElement) ProtoReq() string
ProtoReq name.
type DOMGetAnchorElementResult ¶ added in v0.116.2
type DOMGetAnchorElementResult struct { // NodeID The anchor element of the given anchor query. NodeID DOMNodeID `json:"nodeId"` }
DOMGetAnchorElementResult (experimental) ...
type DOMGetAttributes ¶
type DOMGetAttributes struct { // NodeID Id of the node to retrieve attributes for. NodeID DOMNodeID `json:"nodeId"` }
DOMGetAttributes Returns attributes for the specified node.
func (DOMGetAttributes) Call ¶
func (m DOMGetAttributes) Call(c Client) (*DOMGetAttributesResult, error)
Call the request.
func (DOMGetAttributes) ProtoReq ¶ added in v0.74.0
func (m DOMGetAttributes) ProtoReq() string
ProtoReq name.
type DOMGetAttributesResult ¶
type DOMGetAttributesResult struct { // Attributes An interleaved array of node attribute names and values. Attributes []string `json:"attributes"` }
DOMGetAttributesResult ...
type DOMGetBoxModel ¶
type DOMGetBoxModel struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
DOMGetBoxModel Returns boxes for the given node.
func (DOMGetBoxModel) Call ¶
func (m DOMGetBoxModel) Call(c Client) (*DOMGetBoxModelResult, error)
Call the request.
func (DOMGetBoxModel) ProtoReq ¶ added in v0.74.0
func (m DOMGetBoxModel) ProtoReq() string
ProtoReq name.
type DOMGetBoxModelResult ¶
type DOMGetBoxModelResult struct { // Model Box model for the node. Model *DOMBoxModel `json:"model"` }
DOMGetBoxModelResult ...
type DOMGetContainerForNode ¶ added in v0.101.5
type DOMGetContainerForNode struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` // ContainerName (optional) ... ContainerName string `json:"containerName,omitempty"` // PhysicalAxes (optional) ... PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"` // LogicalAxes (optional) ... LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"` }
DOMGetContainerForNode (experimental) Returns the query container of the given node based on container query conditions: containerName, physical, and logical axes. If no axes are provided, the style container is returned, which is the direct parent or the closest element with a matching container-name.
func (DOMGetContainerForNode) Call ¶ added in v0.101.5
func (m DOMGetContainerForNode) Call(c Client) (*DOMGetContainerForNodeResult, error)
Call the request.
func (DOMGetContainerForNode) ProtoReq ¶ added in v0.101.5
func (m DOMGetContainerForNode) ProtoReq() string
ProtoReq name.
type DOMGetContainerForNodeResult ¶ added in v0.101.5
type DOMGetContainerForNodeResult struct { // NodeID (optional) The container node for the given node, or null if not found. NodeID DOMNodeID `json:"nodeId,omitempty"` }
DOMGetContainerForNodeResult (experimental) ...
type DOMGetContentQuads ¶
type DOMGetContentQuads struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
DOMGetContentQuads (experimental) Returns quads that describe node position on the page. This method might return multiple quads for inline nodes.
func (DOMGetContentQuads) Call ¶
func (m DOMGetContentQuads) Call(c Client) (*DOMGetContentQuadsResult, error)
Call the request.
func (DOMGetContentQuads) ProtoReq ¶ added in v0.74.0
func (m DOMGetContentQuads) ProtoReq() string
ProtoReq name.
type DOMGetContentQuadsResult ¶
type DOMGetContentQuadsResult struct { // Quads that describe node layout relative to viewport. Quads []DOMQuad `json:"quads"` }
DOMGetContentQuadsResult (experimental) ...
func (*DOMGetContentQuadsResult) Box ¶ added in v0.88.6
func (res *DOMGetContentQuadsResult) Box() (box *DOMRect)
Box returns the smallest leveled rectangle that can cover the whole shape.
func (*DOMGetContentQuadsResult) OnePointInside ¶ added in v0.66.0
func (res *DOMGetContentQuadsResult) OnePointInside() *Point
OnePointInside the shape.
type DOMGetDocument ¶
type DOMGetDocument struct { // Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the // entire subtree or provide an integer larger than 0. Depth *int `json:"depth,omitempty"` // Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree // (default is false). Pierce bool `json:"pierce,omitempty"` }
DOMGetDocument Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.
func (DOMGetDocument) Call ¶
func (m DOMGetDocument) Call(c Client) (*DOMGetDocumentResult, error)
Call the request.
func (DOMGetDocument) ProtoReq ¶ added in v0.74.0
func (m DOMGetDocument) ProtoReq() string
ProtoReq name.
type DOMGetDocumentResult ¶
type DOMGetDocumentResult struct { // Root Resulting node. Root *DOMNode `json:"root"` }
DOMGetDocumentResult ...
type DOMGetElementByRelation ¶ added in v0.116.0
type DOMGetElementByRelation struct { // NodeID Id of the node from which to query the relation. NodeID DOMNodeID `json:"nodeId"` // Relation Type of relation to get. Relation DOMGetElementByRelationRelation `json:"relation"` }
DOMGetElementByRelation (experimental) Returns the NodeId of the matched element according to certain relations.
func (DOMGetElementByRelation) Call ¶ added in v0.116.0
func (m DOMGetElementByRelation) Call(c Client) (*DOMGetElementByRelationResult, error)
Call the request.
func (DOMGetElementByRelation) ProtoReq ¶ added in v0.116.0
func (m DOMGetElementByRelation) ProtoReq() string
ProtoReq name.
type DOMGetElementByRelationRelation ¶ added in v0.116.0
type DOMGetElementByRelationRelation string
DOMGetElementByRelationRelation enum.
const ( // DOMGetElementByRelationRelationPopoverTarget enum const. DOMGetElementByRelationRelationPopoverTarget DOMGetElementByRelationRelation = "PopoverTarget" )
type DOMGetElementByRelationResult ¶ added in v0.116.0
type DOMGetElementByRelationResult struct { // NodeID NodeId of the element matching the queried relation. NodeID DOMNodeID `json:"nodeId"` }
DOMGetElementByRelationResult (experimental) ...
type DOMGetFileInfo ¶
type DOMGetFileInfo struct { // ObjectID JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId"` }
DOMGetFileInfo (experimental) Returns file information for the given File wrapper.
func (DOMGetFileInfo) Call ¶
func (m DOMGetFileInfo) Call(c Client) (*DOMGetFileInfoResult, error)
Call the request.
func (DOMGetFileInfo) ProtoReq ¶ added in v0.74.0
func (m DOMGetFileInfo) ProtoReq() string
ProtoReq name.
type DOMGetFileInfoResult ¶
type DOMGetFileInfoResult struct { // Path ... Path string `json:"path"` }
DOMGetFileInfoResult (experimental) ...
type DOMGetFlattenedDocument ¶
type DOMGetFlattenedDocument struct { // Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the // entire subtree or provide an integer larger than 0. Depth *int `json:"depth,omitempty"` // Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree // (default is false). Pierce bool `json:"pierce,omitempty"` }
DOMGetFlattenedDocument (deprecated) 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 (DOMGetFlattenedDocument) Call ¶
func (m DOMGetFlattenedDocument) Call(c Client) (*DOMGetFlattenedDocumentResult, error)
Call the request.
func (DOMGetFlattenedDocument) ProtoReq ¶ added in v0.74.0
func (m DOMGetFlattenedDocument) ProtoReq() string
ProtoReq name.
type DOMGetFlattenedDocumentResult ¶
type DOMGetFlattenedDocumentResult struct { // Nodes Resulting node. Nodes []*DOMNode `json:"nodes"` }
DOMGetFlattenedDocumentResult (deprecated) ...
type DOMGetFrameOwner ¶
type DOMGetFrameOwner struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
DOMGetFrameOwner (experimental) Returns iframe node that owns iframe with the given domain.
func (DOMGetFrameOwner) Call ¶
func (m DOMGetFrameOwner) Call(c Client) (*DOMGetFrameOwnerResult, error)
Call the request.
func (DOMGetFrameOwner) ProtoReq ¶ added in v0.74.0
func (m DOMGetFrameOwner) ProtoReq() string
ProtoReq name.
type DOMGetFrameOwnerResult ¶
type DOMGetFrameOwnerResult struct { // BackendNodeID Resulting node. BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // NodeID (optional) Id of the node at given coordinates, only when enabled and requested document. NodeID DOMNodeID `json:"nodeId,omitempty"` }
DOMGetFrameOwnerResult (experimental) ...
type DOMGetNodeForLocation ¶
type DOMGetNodeForLocation struct { // X coordinate. X int `json:"x"` // Y coordinate. Y int `json:"y"` // IncludeUserAgentShadowDOM (optional) False to skip to the nearest non-UA shadow root ancestor (default: false). IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"` // IgnorePointerEventsNone (optional) Whether to ignore pointer-events: none on elements and hit test them. IgnorePointerEventsNone bool `json:"ignorePointerEventsNone,omitempty"` }
DOMGetNodeForLocation Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.
func (DOMGetNodeForLocation) Call ¶
func (m DOMGetNodeForLocation) Call(c Client) (*DOMGetNodeForLocationResult, error)
Call the request.
func (DOMGetNodeForLocation) ProtoReq ¶ added in v0.74.0
func (m DOMGetNodeForLocation) ProtoReq() string
ProtoReq name.
type DOMGetNodeForLocationResult ¶
type DOMGetNodeForLocationResult struct { // BackendNodeID Resulting node. BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // FrameID Frame this node belongs to. FrameID PageFrameID `json:"frameId"` // NodeID (optional) Id of the node at given coordinates, only when enabled and requested document. NodeID DOMNodeID `json:"nodeId,omitempty"` }
DOMGetNodeForLocationResult ...
type DOMGetNodeStackTraces ¶
type DOMGetNodeStackTraces struct { // NodeID Id of the node to get stack traces for. NodeID DOMNodeID `json:"nodeId"` }
DOMGetNodeStackTraces (experimental) Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
func (DOMGetNodeStackTraces) Call ¶
func (m DOMGetNodeStackTraces) Call(c Client) (*DOMGetNodeStackTracesResult, error)
Call the request.
func (DOMGetNodeStackTraces) ProtoReq ¶ added in v0.74.0
func (m DOMGetNodeStackTraces) ProtoReq() string
ProtoReq name.
type DOMGetNodeStackTracesResult ¶
type DOMGetNodeStackTracesResult struct { // Creation (optional) Creation stack trace, if available. Creation *RuntimeStackTrace `json:"creation,omitempty"` }
DOMGetNodeStackTracesResult (experimental) ...
type DOMGetNodesForSubtreeByStyle ¶ added in v0.72.0
type DOMGetNodesForSubtreeByStyle struct { // NodeID Node ID pointing to the root of a subtree. NodeID DOMNodeID `json:"nodeId"` // ComputedStyles The style to filter nodes by (includes nodes if any of properties matches). ComputedStyles []*DOMCSSComputedStyleProperty `json:"computedStyles"` // Pierce (optional) Whether or not iframes and shadow roots in the same target should be traversed when returning the // results (default is false). Pierce bool `json:"pierce,omitempty"` }
DOMGetNodesForSubtreeByStyle (experimental) Finds nodes with a given computed style in a subtree.
func (DOMGetNodesForSubtreeByStyle) Call ¶ added in v0.72.0
func (m DOMGetNodesForSubtreeByStyle) Call(c Client) (*DOMGetNodesForSubtreeByStyleResult, error)
Call the request.
func (DOMGetNodesForSubtreeByStyle) ProtoReq ¶ added in v0.74.0
func (m DOMGetNodesForSubtreeByStyle) ProtoReq() string
ProtoReq name.
type DOMGetNodesForSubtreeByStyleResult ¶ added in v0.72.0
type DOMGetNodesForSubtreeByStyleResult struct { // NodeIDs Resulting nodes. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMGetNodesForSubtreeByStyleResult (experimental) ...
type DOMGetOuterHTML ¶
type DOMGetOuterHTML struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
DOMGetOuterHTML Returns node's HTML markup.
func (DOMGetOuterHTML) Call ¶
func (m DOMGetOuterHTML) Call(c Client) (*DOMGetOuterHTMLResult, error)
Call the request.
func (DOMGetOuterHTML) ProtoReq ¶ added in v0.74.0
func (m DOMGetOuterHTML) ProtoReq() string
ProtoReq name.
type DOMGetOuterHTMLResult ¶
type DOMGetOuterHTMLResult struct { // OuterHTML Outer HTML markup. OuterHTML string `json:"outerHTML"` }
DOMGetOuterHTMLResult ...
type DOMGetQueryingDescendantsForContainer ¶ added in v0.102.0
type DOMGetQueryingDescendantsForContainer struct { // NodeID Id of the container node to find querying descendants from. NodeID DOMNodeID `json:"nodeId"` }
DOMGetQueryingDescendantsForContainer (experimental) Returns the descendants of a container query container that have container queries against this container.
func (DOMGetQueryingDescendantsForContainer) Call ¶ added in v0.102.0
func (m DOMGetQueryingDescendantsForContainer) Call(c Client) (*DOMGetQueryingDescendantsForContainerResult, error)
Call the request.
func (DOMGetQueryingDescendantsForContainer) ProtoReq ¶ added in v0.102.0
func (m DOMGetQueryingDescendantsForContainer) ProtoReq() string
ProtoReq name.
type DOMGetQueryingDescendantsForContainerResult ¶ added in v0.102.0
type DOMGetQueryingDescendantsForContainerResult struct { // NodeIDs Descendant nodes with container queries against the given container. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMGetQueryingDescendantsForContainerResult (experimental) ...
type DOMGetRelayoutBoundary ¶
type DOMGetRelayoutBoundary struct { // NodeID Id of the node. NodeID DOMNodeID `json:"nodeId"` }
DOMGetRelayoutBoundary (experimental) Returns the id of the nearest ancestor that is a relayout boundary.
func (DOMGetRelayoutBoundary) Call ¶
func (m DOMGetRelayoutBoundary) Call(c Client) (*DOMGetRelayoutBoundaryResult, error)
Call the request.
func (DOMGetRelayoutBoundary) ProtoReq ¶ added in v0.74.0
func (m DOMGetRelayoutBoundary) ProtoReq() string
ProtoReq name.
type DOMGetRelayoutBoundaryResult ¶
type DOMGetRelayoutBoundaryResult struct { // NodeID Relayout boundary node id for the given node. NodeID DOMNodeID `json:"nodeId"` }
DOMGetRelayoutBoundaryResult (experimental) ...
type DOMGetSearchResults ¶
type DOMGetSearchResults struct { // SearchID Unique search session identifier. SearchID string `json:"searchId"` // FromIndex Start index of the search result to be returned. FromIndex int `json:"fromIndex"` // ToIndex End index of the search result to be returned. ToIndex int `json:"toIndex"` }
DOMGetSearchResults (experimental) Returns search results from given `fromIndex` to given `toIndex` from the search with the given identifier.
func (DOMGetSearchResults) Call ¶
func (m DOMGetSearchResults) Call(c Client) (*DOMGetSearchResultsResult, error)
Call the request.
func (DOMGetSearchResults) ProtoReq ¶ added in v0.74.0
func (m DOMGetSearchResults) ProtoReq() string
ProtoReq name.
type DOMGetSearchResultsResult ¶
type DOMGetSearchResultsResult struct { // NodeIDs Ids of the search result nodes. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMGetSearchResultsResult (experimental) ...
type DOMGetTopLayerElements ¶ added in v0.108.0
type DOMGetTopLayerElements struct{}
DOMGetTopLayerElements (experimental) Returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content.
func (DOMGetTopLayerElements) Call ¶ added in v0.108.0
func (m DOMGetTopLayerElements) Call(c Client) (*DOMGetTopLayerElementsResult, error)
Call the request.
func (DOMGetTopLayerElements) ProtoReq ¶ added in v0.108.0
func (m DOMGetTopLayerElements) ProtoReq() string
ProtoReq name.
type DOMGetTopLayerElementsResult ¶ added in v0.108.0
type DOMGetTopLayerElementsResult struct { // NodeIDs NodeIds of top layer elements NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMGetTopLayerElementsResult (experimental) ...
type DOMHideHighlight ¶
type DOMHideHighlight struct{}
DOMHideHighlight Hides any highlight.
func (DOMHideHighlight) Call ¶
func (m DOMHideHighlight) Call(c Client) error
Call sends the request.
func (DOMHideHighlight) ProtoReq ¶ added in v0.74.0
func (m DOMHideHighlight) ProtoReq() string
ProtoReq name.
type DOMHighlightNode ¶
type DOMHighlightNode struct{}
DOMHighlightNode Highlights DOM node.
func (DOMHighlightNode) Call ¶
func (m DOMHighlightNode) Call(c Client) error
Call sends the request.
func (DOMHighlightNode) ProtoReq ¶ added in v0.74.0
func (m DOMHighlightNode) ProtoReq() string
ProtoReq name.
type DOMHighlightRect ¶
type DOMHighlightRect struct{}
DOMHighlightRect Highlights given rectangle.
func (DOMHighlightRect) Call ¶
func (m DOMHighlightRect) Call(c Client) error
Call sends the request.
func (DOMHighlightRect) ProtoReq ¶ added in v0.74.0
func (m DOMHighlightRect) ProtoReq() string
ProtoReq name.
type DOMInlineStyleInvalidated ¶
type DOMInlineStyleInvalidated struct { // NodeIDs Ids of the nodes for which the inline styles have been invalidated. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMInlineStyleInvalidated (experimental) Fired when `Element`'s inline style is modified via a CSS property modification.
func (DOMInlineStyleInvalidated) ProtoEvent ¶ added in v0.72.0
func (evt DOMInlineStyleInvalidated) ProtoEvent() string
ProtoEvent name.
type DOMLogicalAxes ¶ added in v0.112.3
type DOMLogicalAxes string
DOMLogicalAxes ContainerSelector logical axes.
const ( // DOMLogicalAxesInline enum const. DOMLogicalAxesInline DOMLogicalAxes = "Inline" // DOMLogicalAxesBlock enum const. DOMLogicalAxesBlock DOMLogicalAxes = "Block" // DOMLogicalAxesBoth enum const. DOMLogicalAxesBoth DOMLogicalAxes = "Both" )
type DOMMarkUndoableState ¶
type DOMMarkUndoableState struct{}
DOMMarkUndoableState (experimental) Marks last undoable state.
func (DOMMarkUndoableState) Call ¶
func (m DOMMarkUndoableState) Call(c Client) error
Call sends the request.
func (DOMMarkUndoableState) ProtoReq ¶ added in v0.74.0
func (m DOMMarkUndoableState) ProtoReq() string
ProtoReq name.
type DOMMoveTo ¶
type DOMMoveTo struct { // NodeID Id of the node to move. NodeID DOMNodeID `json:"nodeId"` // TargetNodeID Id of the element to drop the moved node into. TargetNodeID DOMNodeID `json:"targetNodeId"` // InsertBeforeNodeID (optional) Drop node before this one (if absent, the moved node becomes the last child of // `targetNodeId`). InsertBeforeNodeID DOMNodeID `json:"insertBeforeNodeId,omitempty"` }
DOMMoveTo Moves node into the new container, places it before the given anchor.
type DOMMoveToResult ¶
type DOMMoveToResult struct { // NodeID New id of the moved node. NodeID DOMNodeID `json:"nodeId"` }
DOMMoveToResult ...
type DOMNode ¶
type DOMNode struct { // NodeID Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend // will only push node with given `id` once. It is aware of all requested nodes and will only // fire DOM events for nodes known to the client. NodeID DOMNodeID `json:"nodeId"` // ParentID (optional) The id of the parent node if any. ParentID DOMNodeID `json:"parentId,omitempty"` // BackendNodeID The BackendNodeId for this node. BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // NodeType `Node`'s nodeType. NodeType int `json:"nodeType"` // NodeName `Node`'s nodeName. NodeName string `json:"nodeName"` // LocalName `Node`'s localName. LocalName string `json:"localName"` // NodeValue `Node`'s nodeValue. NodeValue string `json:"nodeValue"` // ChildNodeCount (optional) Child count for `Container` nodes. ChildNodeCount *int `json:"childNodeCount,omitempty"` // Children (optional) Child nodes of this node when requested with children. Children []*DOMNode `json:"children,omitempty"` // Attributes (optional) Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. Attributes []string `json:"attributes,omitempty"` // DocumentURL (optional) Document URL that `Document` or `FrameOwner` node points to. DocumentURL string `json:"documentURL,omitempty"` // BaseURL (optional) Base URL that `Document` or `FrameOwner` node uses for URL completion. BaseURL string `json:"baseURL,omitempty"` // PublicID (optional) `DocumentType`'s publicId. PublicID string `json:"publicId,omitempty"` // SystemID (optional) `DocumentType`'s systemId. SystemID string `json:"systemId,omitempty"` // InternalSubset (optional) `DocumentType`'s internalSubset. InternalSubset string `json:"internalSubset,omitempty"` // XMLVersion (optional) `Document`'s XML version in case of XML documents. XMLVersion string `json:"xmlVersion,omitempty"` // Name (optional) `Attr`'s name. Name string `json:"name,omitempty"` // Value (optional) `Attr`'s value. Value string `json:"value,omitempty"` // PseudoType (optional) Pseudo element type for this node. PseudoType DOMPseudoType `json:"pseudoType,omitempty"` // PseudoIdentifier (optional) Pseudo element identifier for this node. Only present if there is a // valid pseudoType. PseudoIdentifier string `json:"pseudoIdentifier,omitempty"` // ShadowRootType (optional) Shadow root type. ShadowRootType DOMShadowRootType `json:"shadowRootType,omitempty"` // FrameID (optional) Frame ID for frame owner elements. FrameID PageFrameID `json:"frameId,omitempty"` // ContentDocument (optional) Content document for frame owner elements. ContentDocument *DOMNode `json:"contentDocument,omitempty"` // ShadowRoots (optional) Shadow root list for given element host. ShadowRoots []*DOMNode `json:"shadowRoots,omitempty"` // TemplateContent (optional) Content document fragment for template elements. TemplateContent *DOMNode `json:"templateContent,omitempty"` // PseudoElements (optional) Pseudo elements associated with this node. PseudoElements []*DOMNode `json:"pseudoElements,omitempty"` // ImportedDocument (deprecated) (optional) Deprecated, as the HTML Imports API has been removed (crbug.com/937746). // This property used to return the imported document for the HTMLImport links. // The property is always undefined now. ImportedDocument *DOMNode `json:"importedDocument,omitempty"` // DistributedNodes (optional) Distributed nodes for given insertion point. DistributedNodes []*DOMBackendNode `json:"distributedNodes,omitempty"` // IsSVG (optional) Whether the node is SVG. IsSVG bool `json:"isSVG,omitempty"` // CompatibilityMode (optional) ... CompatibilityMode DOMCompatibilityMode `json:"compatibilityMode,omitempty"` // AssignedSlot (optional) ... AssignedSlot *DOMBackendNode `json:"assignedSlot,omitempty"` }
DOMNode DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
type DOMPerformSearch ¶
type DOMPerformSearch struct { // Query Plain text or query selector or XPath search query. Query string `json:"query"` // IncludeUserAgentShadowDOM (optional) True to search in user agent shadow DOM. IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"` }
DOMPerformSearch (experimental) Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or `cancelSearch` to end this search session.
func (DOMPerformSearch) Call ¶
func (m DOMPerformSearch) Call(c Client) (*DOMPerformSearchResult, error)
Call the request.
func (DOMPerformSearch) ProtoReq ¶ added in v0.74.0
func (m DOMPerformSearch) ProtoReq() string
ProtoReq name.
type DOMPerformSearchResult ¶
type DOMPerformSearchResult struct { // SearchID Unique search session identifier. SearchID string `json:"searchId"` // ResultCount Number of search results. ResultCount int `json:"resultCount"` }
DOMPerformSearchResult (experimental) ...
type DOMPhysicalAxes ¶ added in v0.112.3
type DOMPhysicalAxes string
DOMPhysicalAxes ContainerSelector physical axes.
const ( // DOMPhysicalAxesHorizontal enum const. DOMPhysicalAxesHorizontal DOMPhysicalAxes = "Horizontal" // DOMPhysicalAxesVertical enum const. DOMPhysicalAxesVertical DOMPhysicalAxes = "Vertical" // DOMPhysicalAxesBoth enum const. DOMPhysicalAxesBoth DOMPhysicalAxes = "Both" )
type DOMPseudoElementAdded ¶
type DOMPseudoElementAdded struct { // ParentID Pseudo element's parent element id. ParentID DOMNodeID `json:"parentId"` // PseudoElement The added pseudo element. PseudoElement *DOMNode `json:"pseudoElement"` }
DOMPseudoElementAdded (experimental) Called when a pseudo element is added to an element.
func (DOMPseudoElementAdded) ProtoEvent ¶ added in v0.72.0
func (evt DOMPseudoElementAdded) ProtoEvent() string
ProtoEvent name.
type DOMPseudoElementRemoved ¶
type DOMPseudoElementRemoved struct { // ParentID Pseudo element's parent element id. ParentID DOMNodeID `json:"parentId"` // PseudoElementID The removed pseudo element id. PseudoElementID DOMNodeID `json:"pseudoElementId"` }
DOMPseudoElementRemoved (experimental) Called when a pseudo element is removed from an element.
func (DOMPseudoElementRemoved) ProtoEvent ¶ added in v0.72.0
func (evt DOMPseudoElementRemoved) ProtoEvent() string
ProtoEvent name.
type DOMPseudoType ¶
type DOMPseudoType string
DOMPseudoType Pseudo element type.
const ( // DOMPseudoTypeFirstLine enum const. DOMPseudoTypeFirstLine DOMPseudoType = "first-line" // DOMPseudoTypeFirstLetter enum const. DOMPseudoTypeFirstLetter DOMPseudoType = "first-letter" // DOMPseudoTypeBefore enum const. DOMPseudoTypeBefore DOMPseudoType = "before" // DOMPseudoTypeAfter enum const. DOMPseudoTypeAfter DOMPseudoType = "after" // DOMPseudoTypeMarker enum const. DOMPseudoTypeMarker DOMPseudoType = "marker" // DOMPseudoTypeBackdrop enum const. DOMPseudoTypeBackdrop DOMPseudoType = "backdrop" // DOMPseudoTypeSelection enum const. DOMPseudoTypeSelection DOMPseudoType = "selection" // DOMPseudoTypeSearchText enum const. DOMPseudoTypeSearchText DOMPseudoType = "search-text" // DOMPseudoTypeTargetText enum const. DOMPseudoTypeTargetText DOMPseudoType = "target-text" // DOMPseudoTypeSpellingError enum const. DOMPseudoTypeSpellingError DOMPseudoType = "spelling-error" // DOMPseudoTypeGrammarError enum const. DOMPseudoTypeGrammarError DOMPseudoType = "grammar-error" // DOMPseudoTypeHighlight enum const. DOMPseudoTypeHighlight DOMPseudoType = "highlight" // DOMPseudoTypeFirstLineInherited enum const. DOMPseudoTypeFirstLineInherited DOMPseudoType = "first-line-inherited" // DOMPseudoTypeScrollMarker enum const. DOMPseudoTypeScrollMarker DOMPseudoType = "scroll-marker" // DOMPseudoTypeScrollMarkerGroup enum const. DOMPseudoTypeScrollMarkerGroup DOMPseudoType = "scroll-marker-group" // DOMPseudoTypeScrollbar enum const. DOMPseudoTypeScrollbar DOMPseudoType = "scrollbar" // DOMPseudoTypeScrollbarThumb enum const. DOMPseudoTypeScrollbarThumb DOMPseudoType = "scrollbar-thumb" // DOMPseudoTypeScrollbarButton enum const. DOMPseudoTypeScrollbarButton DOMPseudoType = "scrollbar-button" // DOMPseudoTypeScrollbarTrack enum const. DOMPseudoTypeScrollbarTrack DOMPseudoType = "scrollbar-track" // DOMPseudoTypeScrollbarTrackPiece enum const. DOMPseudoTypeScrollbarTrackPiece DOMPseudoType = "scrollbar-track-piece" // DOMPseudoTypeScrollbarCorner enum const. DOMPseudoTypeScrollbarCorner DOMPseudoType = "scrollbar-corner" // DOMPseudoTypeResizer enum const. DOMPseudoTypeResizer DOMPseudoType = "resizer" // DOMPseudoTypeInputListButton enum const. DOMPseudoTypeInputListButton DOMPseudoType = "input-list-button" // DOMPseudoTypeViewTransition enum const. DOMPseudoTypeViewTransition DOMPseudoType = "view-transition" // DOMPseudoTypeViewTransitionGroup enum const. DOMPseudoTypeViewTransitionGroup DOMPseudoType = "view-transition-group" // DOMPseudoTypeViewTransitionImagePair enum const. DOMPseudoTypeViewTransitionImagePair DOMPseudoType = "view-transition-image-pair" // DOMPseudoTypeViewTransitionOld enum const. DOMPseudoTypeViewTransitionOld DOMPseudoType = "view-transition-old" // DOMPseudoTypeViewTransitionNew enum const. DOMPseudoTypeViewTransitionNew DOMPseudoType = "view-transition-new" )
type DOMPushNodeByPathToFrontend ¶
type DOMPushNodeByPathToFrontend struct { // Path to node in the proprietary format. Path string `json:"path"` }
DOMPushNodeByPathToFrontend (experimental) Requests that the node is sent to the caller given its path. // FIXME, use XPath.
func (DOMPushNodeByPathToFrontend) Call ¶
func (m DOMPushNodeByPathToFrontend) Call(c Client) (*DOMPushNodeByPathToFrontendResult, error)
Call the request.
func (DOMPushNodeByPathToFrontend) ProtoReq ¶ added in v0.74.0
func (m DOMPushNodeByPathToFrontend) ProtoReq() string
ProtoReq name.
type DOMPushNodeByPathToFrontendResult ¶
type DOMPushNodeByPathToFrontendResult struct { // NodeID Id of the node for given path. NodeID DOMNodeID `json:"nodeId"` }
DOMPushNodeByPathToFrontendResult (experimental) ...
type DOMPushNodesByBackendIDsToFrontend ¶ added in v0.114.8
type DOMPushNodesByBackendIDsToFrontend struct { // BackendNodeIDs The array of backend node ids. BackendNodeIDs []DOMBackendNodeID `json:"backendNodeIds"` }
DOMPushNodesByBackendIDsToFrontend (experimental) Requests that a batch of nodes is sent to the caller given their backend node ids.
func (DOMPushNodesByBackendIDsToFrontend) Call ¶ added in v0.114.8
func (m DOMPushNodesByBackendIDsToFrontend) Call(c Client) (*DOMPushNodesByBackendIDsToFrontendResult, error)
Call the request.
func (DOMPushNodesByBackendIDsToFrontend) ProtoReq ¶ added in v0.114.8
func (m DOMPushNodesByBackendIDsToFrontend) ProtoReq() string
ProtoReq name.
type DOMPushNodesByBackendIDsToFrontendResult ¶ added in v0.114.8
type DOMPushNodesByBackendIDsToFrontendResult struct { // NodeIDs The array of ids of pushed nodes that correspond to the backend ids specified in // backendNodeIds. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMPushNodesByBackendIDsToFrontendResult (experimental) ...
type DOMQuad ¶
type DOMQuad []float64
DOMQuad An array of quad vertices, x immediately followed by y for each point, points clock-wise.
func (DOMQuad) Area ¶ added in v0.88.11
Area of the polygon https://en.wikipedia.org/wiki/Polygon#Area
type DOMQuerySelector ¶
type DOMQuerySelector struct { // NodeID Id of the node to query upon. NodeID DOMNodeID `json:"nodeId"` // Selector string. Selector string `json:"selector"` }
DOMQuerySelector Executes `querySelector` on a given node.
func (DOMQuerySelector) Call ¶
func (m DOMQuerySelector) Call(c Client) (*DOMQuerySelectorResult, error)
Call the request.
func (DOMQuerySelector) ProtoReq ¶ added in v0.74.0
func (m DOMQuerySelector) ProtoReq() string
ProtoReq name.
type DOMQuerySelectorAll ¶
type DOMQuerySelectorAll struct { // NodeID Id of the node to query upon. NodeID DOMNodeID `json:"nodeId"` // Selector string. Selector string `json:"selector"` }
DOMQuerySelectorAll Executes `querySelectorAll` on a given node.
func (DOMQuerySelectorAll) Call ¶
func (m DOMQuerySelectorAll) Call(c Client) (*DOMQuerySelectorAllResult, error)
Call the request.
func (DOMQuerySelectorAll) ProtoReq ¶ added in v0.74.0
func (m DOMQuerySelectorAll) ProtoReq() string
ProtoReq name.
type DOMQuerySelectorAllResult ¶
type DOMQuerySelectorAllResult struct { // NodeIDs Query selector result. NodeIDs []DOMNodeID `json:"nodeIds"` }
DOMQuerySelectorAllResult ...
type DOMQuerySelectorResult ¶
type DOMQuerySelectorResult struct { // NodeID Query selector result. NodeID DOMNodeID `json:"nodeId"` }
DOMQuerySelectorResult ...
type DOMRGBA ¶
type DOMRGBA struct { // R The red component, in the [0-255] range. R int `json:"r"` // G The green component, in the [0-255] range. G int `json:"g"` // B The blue component, in the [0-255] range. B int `json:"b"` // A (optional) The alpha component, in the [0-1] range (default: 1). A *float64 `json:"a,omitempty"` }
DOMRGBA A structure holding an RGBA color.
type DOMRect ¶
type DOMRect struct { // X coordinate X float64 `json:"x"` // Y coordinate Y float64 `json:"y"` // Width Rectangle width Width float64 `json:"width"` // Height Rectangle height Height float64 `json:"height"` }
DOMRect Rectangle.
type DOMRemoveAttribute ¶
type DOMRemoveAttribute struct { // NodeID Id of the element to remove attribute from. NodeID DOMNodeID `json:"nodeId"` // Name of the attribute to remove. Name string `json:"name"` }
DOMRemoveAttribute Removes attribute with given name from an element with given id.
func (DOMRemoveAttribute) Call ¶
func (m DOMRemoveAttribute) Call(c Client) error
Call sends the request.
func (DOMRemoveAttribute) ProtoReq ¶ added in v0.74.0
func (m DOMRemoveAttribute) ProtoReq() string
ProtoReq name.
type DOMRemoveNode ¶
type DOMRemoveNode struct { // NodeID Id of the node to remove. NodeID DOMNodeID `json:"nodeId"` }
DOMRemoveNode Removes node with given id.
func (DOMRemoveNode) ProtoReq ¶ added in v0.74.0
func (m DOMRemoveNode) ProtoReq() string
ProtoReq name.
type DOMRequestChildNodes ¶
type DOMRequestChildNodes struct { // NodeID Id of the node to get children for. NodeID DOMNodeID `json:"nodeId"` // Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the // entire subtree or provide an integer larger than 0. Depth *int `json:"depth,omitempty"` // Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the sub-tree // (default is false). Pierce bool `json:"pierce,omitempty"` }
DOMRequestChildNodes 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 (DOMRequestChildNodes) Call ¶
func (m DOMRequestChildNodes) Call(c Client) error
Call sends the request.
func (DOMRequestChildNodes) ProtoReq ¶ added in v0.74.0
func (m DOMRequestChildNodes) ProtoReq() string
ProtoReq name.
type DOMRequestNode ¶
type DOMRequestNode struct { // ObjectID JavaScript object id to convert into node. ObjectID RuntimeRemoteObjectID `json:"objectId"` }
DOMRequestNode 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 (DOMRequestNode) Call ¶
func (m DOMRequestNode) Call(c Client) (*DOMRequestNodeResult, error)
Call the request.
func (DOMRequestNode) ProtoReq ¶ added in v0.74.0
func (m DOMRequestNode) ProtoReq() string
ProtoReq name.
type DOMRequestNodeResult ¶
type DOMRequestNodeResult struct { // NodeID Node id for given object. NodeID DOMNodeID `json:"nodeId"` }
DOMRequestNodeResult ...
type DOMResolveNode ¶
type DOMResolveNode struct { // NodeID (optional) Id of the node to resolve. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Backend identifier of the node to resolve. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. ObjectGroup string `json:"objectGroup,omitempty"` // ExecutionContextID (optional) Execution context in which to resolve the node. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` }
DOMResolveNode Resolves the JavaScript node object for a given NodeId or BackendNodeId.
func (DOMResolveNode) Call ¶
func (m DOMResolveNode) Call(c Client) (*DOMResolveNodeResult, error)
Call the request.
func (DOMResolveNode) ProtoReq ¶ added in v0.74.0
func (m DOMResolveNode) ProtoReq() string
ProtoReq name.
type DOMResolveNodeResult ¶
type DOMResolveNodeResult struct { // Object JavaScript object wrapper for given node. Object *RuntimeRemoteObject `json:"object"` }
DOMResolveNodeResult ...
type DOMScrollIntoViewIfNeeded ¶
type DOMScrollIntoViewIfNeeded struct { // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // Rect (optional) The rect to be scrolled into view, relative to the node's border box, in CSS pixels. // When omitted, center of the node will be used, similar to Element.scrollIntoView. Rect *DOMRect `json:"rect,omitempty"` }
DOMScrollIntoViewIfNeeded 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 (DOMScrollIntoViewIfNeeded) Call ¶
func (m DOMScrollIntoViewIfNeeded) Call(c Client) error
Call sends the request.
func (DOMScrollIntoViewIfNeeded) ProtoReq ¶ added in v0.74.0
func (m DOMScrollIntoViewIfNeeded) ProtoReq() string
ProtoReq name.
type DOMScrollOrientation ¶ added in v0.115.0
type DOMScrollOrientation string
DOMScrollOrientation Physical scroll orientation.
const ( // DOMScrollOrientationHorizontal enum const. DOMScrollOrientationHorizontal DOMScrollOrientation = "horizontal" // DOMScrollOrientationVertical enum const. DOMScrollOrientationVertical DOMScrollOrientation = "vertical" )
type DOMSetAttributeValue ¶
type DOMSetAttributeValue struct { // NodeID Id of the element to set attribute for. NodeID DOMNodeID `json:"nodeId"` // Name Attribute name. Name string `json:"name"` // Value Attribute value. Value string `json:"value"` }
DOMSetAttributeValue Sets attribute for an element with given id.
func (DOMSetAttributeValue) Call ¶
func (m DOMSetAttributeValue) Call(c Client) error
Call sends the request.
func (DOMSetAttributeValue) ProtoReq ¶ added in v0.74.0
func (m DOMSetAttributeValue) ProtoReq() string
ProtoReq name.
type DOMSetAttributesAsText ¶
type DOMSetAttributesAsText struct { // NodeID Id of the element to set attributes for. NodeID DOMNodeID `json:"nodeId"` // Text with a number of attributes. Will parse this text using HTML parser. Text string `json:"text"` // Name (optional) Attribute name to replace with new attributes derived from text in case text parsed // successfully. Name string `json:"name,omitempty"` }
DOMSetAttributesAsText 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 (DOMSetAttributesAsText) Call ¶
func (m DOMSetAttributesAsText) Call(c Client) error
Call sends the request.
func (DOMSetAttributesAsText) ProtoReq ¶ added in v0.74.0
func (m DOMSetAttributesAsText) ProtoReq() string
ProtoReq name.
type DOMSetChildNodes ¶
type DOMSetChildNodes struct { // ParentID Parent node id to populate with children. ParentID DOMNodeID `json:"parentId"` // Nodes Child nodes array. Nodes []*DOMNode `json:"nodes"` }
DOMSetChildNodes Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.
func (DOMSetChildNodes) ProtoEvent ¶ added in v0.72.0
func (evt DOMSetChildNodes) ProtoEvent() string
ProtoEvent name.
type DOMSetFileInputFiles ¶
type DOMSetFileInputFiles struct { // Files Array of file paths to set. Files []string `json:"files"` // NodeID (optional) Identifier of the node. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
DOMSetFileInputFiles Sets files for the given file input element.
func (DOMSetFileInputFiles) Call ¶
func (m DOMSetFileInputFiles) Call(c Client) error
Call sends the request.
func (DOMSetFileInputFiles) ProtoReq ¶ added in v0.74.0
func (m DOMSetFileInputFiles) ProtoReq() string
ProtoReq name.
type DOMSetInspectedNode ¶
type DOMSetInspectedNode struct { // NodeID DOM node id to be accessible by means of $x command line API. NodeID DOMNodeID `json:"nodeId"` }
DOMSetInspectedNode (experimental) Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
func (DOMSetInspectedNode) Call ¶
func (m DOMSetInspectedNode) Call(c Client) error
Call sends the request.
func (DOMSetInspectedNode) ProtoReq ¶ added in v0.74.0
func (m DOMSetInspectedNode) ProtoReq() string
ProtoReq name.
type DOMSetNodeName ¶
type DOMSetNodeName struct { // NodeID Id of the node to set name for. NodeID DOMNodeID `json:"nodeId"` // Name New node's name. Name string `json:"name"` }
DOMSetNodeName Sets node name for a node with given id.
func (DOMSetNodeName) Call ¶
func (m DOMSetNodeName) Call(c Client) (*DOMSetNodeNameResult, error)
Call the request.
func (DOMSetNodeName) ProtoReq ¶ added in v0.74.0
func (m DOMSetNodeName) ProtoReq() string
ProtoReq name.
type DOMSetNodeNameResult ¶
type DOMSetNodeNameResult struct { // NodeID New node's id. NodeID DOMNodeID `json:"nodeId"` }
DOMSetNodeNameResult ...
type DOMSetNodeStackTracesEnabled ¶
type DOMSetNodeStackTracesEnabled struct { // Enable or disable. Enable bool `json:"enable"` }
DOMSetNodeStackTracesEnabled (experimental) Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.
func (DOMSetNodeStackTracesEnabled) Call ¶
func (m DOMSetNodeStackTracesEnabled) Call(c Client) error
Call sends the request.
func (DOMSetNodeStackTracesEnabled) ProtoReq ¶ added in v0.74.0
func (m DOMSetNodeStackTracesEnabled) ProtoReq() string
ProtoReq name.
type DOMSetNodeValue ¶
type DOMSetNodeValue struct { // NodeID Id of the node to set value for. NodeID DOMNodeID `json:"nodeId"` // Value New node's value. Value string `json:"value"` }
DOMSetNodeValue Sets node value for a node with given id.
func (DOMSetNodeValue) ProtoReq ¶ added in v0.74.0
func (m DOMSetNodeValue) ProtoReq() string
ProtoReq name.
type DOMSetOuterHTML ¶
type DOMSetOuterHTML struct { // NodeID Id of the node to set markup for. NodeID DOMNodeID `json:"nodeId"` // OuterHTML Outer HTML markup to set. OuterHTML string `json:"outerHTML"` }
DOMSetOuterHTML Sets node HTML markup, returns new node id.
func (DOMSetOuterHTML) ProtoReq ¶ added in v0.74.0
func (m DOMSetOuterHTML) ProtoReq() string
ProtoReq name.
type DOMShadowRootPopped ¶
type DOMShadowRootPopped struct { // HostID Host element id. HostID DOMNodeID `json:"hostId"` // RootID Shadow root id. RootID DOMNodeID `json:"rootId"` }
DOMShadowRootPopped (experimental) Called when shadow root is popped from the element.
func (DOMShadowRootPopped) ProtoEvent ¶ added in v0.72.0
func (evt DOMShadowRootPopped) ProtoEvent() string
ProtoEvent name.
type DOMShadowRootPushed ¶
type DOMShadowRootPushed struct { // HostID Host element id. HostID DOMNodeID `json:"hostId"` // Root Shadow root. Root *DOMNode `json:"root"` }
DOMShadowRootPushed (experimental) Called when shadow root is pushed into the element.
func (DOMShadowRootPushed) ProtoEvent ¶ added in v0.72.0
func (evt DOMShadowRootPushed) ProtoEvent() string
ProtoEvent name.
type DOMShadowRootType ¶
type DOMShadowRootType string
DOMShadowRootType Shadow root type.
const ( // DOMShadowRootTypeUserAgent enum const. DOMShadowRootTypeUserAgent DOMShadowRootType = "user-agent" // DOMShadowRootTypeOpen enum const. DOMShadowRootTypeOpen DOMShadowRootType = "open" // DOMShadowRootTypeClosed enum const. DOMShadowRootTypeClosed DOMShadowRootType = "closed" )
type DOMShapeOutsideInfo ¶
type DOMShapeOutsideInfo struct { // Bounds Shape bounds Bounds DOMQuad `json:"bounds"` // Shape coordinate details Shape []gson.JSON `json:"shape"` // MarginShape Margin shape bounds MarginShape []gson.JSON `json:"marginShape"` }
DOMShapeOutsideInfo CSS Shape Outside details.
type DOMSnapshotArrayOfStrings ¶
type DOMSnapshotArrayOfStrings []DOMSnapshotStringIndex
DOMSnapshotArrayOfStrings Index of the string in the strings table.
type DOMSnapshotCaptureSnapshot ¶
type DOMSnapshotCaptureSnapshot struct { // ComputedStyles Whitelist of computed styles to return. ComputedStyles []string `json:"computedStyles"` // IncludePaintOrder (optional) Whether to include layout object paint orders into the snapshot. IncludePaintOrder bool `json:"includePaintOrder,omitempty"` // IncludeDOMRects (optional) Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot IncludeDOMRects bool `json:"includeDOMRects,omitempty"` // IncludeBlendedBackgroundColors (experimental) (optional) Whether to include blended background colors in the snapshot (default: false). // Blended background color is achieved by blending background colors of all elements // that overlap with the current element. IncludeBlendedBackgroundColors bool `json:"includeBlendedBackgroundColors,omitempty"` // IncludeTextColorOpacities (experimental) (optional) Whether to include text color opacity in the snapshot (default: false). // An element might have the opacity property set that affects the text color of the element. // The final text color opacity is computed based on the opacity of all overlapping elements. IncludeTextColorOpacities bool `json:"includeTextColorOpacities,omitempty"` }
DOMSnapshotCaptureSnapshot 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 (DOMSnapshotCaptureSnapshot) Call ¶
func (m DOMSnapshotCaptureSnapshot) Call(c Client) (*DOMSnapshotCaptureSnapshotResult, error)
Call the request.
func (DOMSnapshotCaptureSnapshot) ProtoReq ¶ added in v0.74.0
func (m DOMSnapshotCaptureSnapshot) ProtoReq() string
ProtoReq name.
type DOMSnapshotCaptureSnapshotResult ¶
type DOMSnapshotCaptureSnapshotResult struct { // Documents The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document. Documents []*DOMSnapshotDocumentSnapshot `json:"documents"` // Strings Shared string table that all string properties refer to with indexes. Strings []string `json:"strings"` }
DOMSnapshotCaptureSnapshotResult ...
type DOMSnapshotComputedStyle ¶
type DOMSnapshotComputedStyle struct { // Properties Name/value pairs of computed style properties. Properties []*DOMSnapshotNameValue `json:"properties"` }
DOMSnapshotComputedStyle A subset of the full ComputedStyle as defined by the request whitelist.
type DOMSnapshotDOMNode ¶
type DOMSnapshotDOMNode struct { // NodeType `Node`'s nodeType. NodeType int `json:"nodeType"` // NodeName `Node`'s nodeName. NodeName string `json:"nodeName"` // NodeValue `Node`'s nodeValue. NodeValue string `json:"nodeValue"` // TextValue (optional) Only set for textarea elements, contains the text value. TextValue string `json:"textValue,omitempty"` // InputValue (optional) Only set for input elements, contains the input's associated text value. InputValue string `json:"inputValue,omitempty"` // InputChecked (optional) Only set for radio and checkbox input elements, indicates if the element has been checked InputChecked bool `json:"inputChecked,omitempty"` // OptionSelected (optional) Only set for option elements, indicates if the element has been selected OptionSelected bool `json:"optionSelected,omitempty"` // BackendNodeID `Node`'s id, corresponds to DOM.Node.backendNodeId. BackendNodeID DOMBackendNodeID `json:"backendNodeId"` // ChildNodeIndexes (optional) The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if // any. ChildNodeIndexes []int `json:"childNodeIndexes,omitempty"` // Attributes (optional) Attributes of an `Element` node. Attributes []*DOMSnapshotNameValue `json:"attributes,omitempty"` // PseudoElementIndexes (optional) Indexes of pseudo elements associated with this node in the `domNodes` array returned by // `getSnapshot`, if any. PseudoElementIndexes []int `json:"pseudoElementIndexes,omitempty"` // LayoutNodeIndex (optional) The index of the node's related layout tree node in the `layoutTreeNodes` array returned by // `getSnapshot`, if any. LayoutNodeIndex *int `json:"layoutNodeIndex,omitempty"` // DocumentURL (optional) Document URL that `Document` or `FrameOwner` node points to. DocumentURL string `json:"documentURL,omitempty"` // BaseURL (optional) Base URL that `Document` or `FrameOwner` node uses for URL completion. BaseURL string `json:"baseURL,omitempty"` // ContentLanguage (optional) Only set for documents, contains the document's content language. ContentLanguage string `json:"contentLanguage,omitempty"` // DocumentEncoding (optional) Only set for documents, contains the document's character set encoding. DocumentEncoding string `json:"documentEncoding,omitempty"` // PublicID (optional) `DocumentType` node's publicId. PublicID string `json:"publicId,omitempty"` // SystemID (optional) `DocumentType` node's systemId. SystemID string `json:"systemId,omitempty"` // FrameID (optional) Frame ID for frame owner elements and also for the document node. FrameID PageFrameID `json:"frameId,omitempty"` // ContentDocumentIndex (optional) The index of a frame owner element's content document in the `domNodes` array returned by // `getSnapshot`, if any. ContentDocumentIndex *int `json:"contentDocumentIndex,omitempty"` // PseudoType (optional) Type of a pseudo element node. PseudoType DOMPseudoType `json:"pseudoType,omitempty"` // ShadowRootType (optional) Shadow root type. ShadowRootType DOMShadowRootType `json:"shadowRootType,omitempty"` // IsClickable (optional) Whether this DOM node responds to mouse clicks. This includes nodes that have had click // event listeners attached via JavaScript as well as anchor tags that naturally navigate when // clicked. IsClickable bool `json:"isClickable,omitempty"` // EventListeners (optional) Details of the node's event listeners, if any. EventListeners []*DOMDebuggerEventListener `json:"eventListeners,omitempty"` // CurrentSourceURL (optional) The selected url for nodes with a srcset attribute. CurrentSourceURL string `json:"currentSourceURL,omitempty"` // OriginURL (optional) The url of the script (if any) that generates this node. OriginURL string `json:"originURL,omitempty"` // ScrollOffsetX (optional) Scroll offsets, set when this node is a Document. ScrollOffsetX *float64 `json:"scrollOffsetX,omitempty"` // ScrollOffsetY (optional) ... ScrollOffsetY *float64 `json:"scrollOffsetY,omitempty"` }
DOMSnapshotDOMNode A Node in the DOM tree.
type DOMSnapshotDisable ¶
type DOMSnapshotDisable struct{}
DOMSnapshotDisable Disables DOM snapshot agent for the given page.
func (DOMSnapshotDisable) Call ¶
func (m DOMSnapshotDisable) Call(c Client) error
Call sends the request.
func (DOMSnapshotDisable) ProtoReq ¶ added in v0.74.0
func (m DOMSnapshotDisable) ProtoReq() string
ProtoReq name.
type DOMSnapshotDocumentSnapshot ¶
type DOMSnapshotDocumentSnapshot struct { // DocumentURL Document URL that `Document` or `FrameOwner` node points to. DocumentURL DOMSnapshotStringIndex `json:"documentURL"` // Title Document title. Title DOMSnapshotStringIndex `json:"title"` // BaseURL Base URL that `Document` or `FrameOwner` node uses for URL completion. BaseURL DOMSnapshotStringIndex `json:"baseURL"` // ContentLanguage Contains the document's content language. ContentLanguage DOMSnapshotStringIndex `json:"contentLanguage"` // EncodingName Contains the document's character set encoding. EncodingName DOMSnapshotStringIndex `json:"encodingName"` // PublicID `DocumentType` node's publicId. PublicID DOMSnapshotStringIndex `json:"publicId"` // SystemID `DocumentType` node's systemId. SystemID DOMSnapshotStringIndex `json:"systemId"` // FrameID Frame ID for frame owner elements and also for the document node. FrameID DOMSnapshotStringIndex `json:"frameId"` // Nodes A table with dom nodes. Nodes *DOMSnapshotNodeTreeSnapshot `json:"nodes"` // Layout The nodes in the layout tree. Layout *DOMSnapshotLayoutTreeSnapshot `json:"layout"` // TextBoxes The post-layout inline text nodes. TextBoxes *DOMSnapshotTextBoxSnapshot `json:"textBoxes"` // ScrollOffsetX (optional) Horizontal scroll offset. ScrollOffsetX *float64 `json:"scrollOffsetX,omitempty"` // ScrollOffsetY (optional) Vertical scroll offset. ScrollOffsetY *float64 `json:"scrollOffsetY,omitempty"` // ContentWidth (optional) Document content width. ContentWidth *float64 `json:"contentWidth,omitempty"` // ContentHeight (optional) Document content height. ContentHeight *float64 `json:"contentHeight,omitempty"` }
DOMSnapshotDocumentSnapshot Document snapshot.
type DOMSnapshotEnable ¶
type DOMSnapshotEnable struct{}
DOMSnapshotEnable Enables DOM snapshot agent for the given page.
func (DOMSnapshotEnable) Call ¶
func (m DOMSnapshotEnable) Call(c Client) error
Call sends the request.
func (DOMSnapshotEnable) ProtoReq ¶ added in v0.74.0
func (m DOMSnapshotEnable) ProtoReq() string
ProtoReq name.
type DOMSnapshotGetSnapshot ¶
type DOMSnapshotGetSnapshot struct { // ComputedStyleWhitelist Whitelist of computed styles to return. ComputedStyleWhitelist []string `json:"computedStyleWhitelist"` // IncludeEventListeners (optional) Whether or not to retrieve details of DOM listeners (default false). IncludeEventListeners bool `json:"includeEventListeners,omitempty"` // IncludePaintOrder (optional) Whether to determine and include the paint order index of LayoutTreeNodes (default false). IncludePaintOrder bool `json:"includePaintOrder,omitempty"` // IncludeUserAgentShadowTree (optional) Whether to include UA shadow tree in the snapshot (default false). IncludeUserAgentShadowTree bool `json:"includeUserAgentShadowTree,omitempty"` }
DOMSnapshotGetSnapshot (deprecated) 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 (DOMSnapshotGetSnapshot) Call ¶
func (m DOMSnapshotGetSnapshot) Call(c Client) (*DOMSnapshotGetSnapshotResult, error)
Call the request.
func (DOMSnapshotGetSnapshot) ProtoReq ¶ added in v0.74.0
func (m DOMSnapshotGetSnapshot) ProtoReq() string
ProtoReq name.
type DOMSnapshotGetSnapshotResult ¶
type DOMSnapshotGetSnapshotResult struct { // DomNodes The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document. DomNodes []*DOMSnapshotDOMNode `json:"domNodes"` // LayoutTreeNodes The nodes in the layout tree. LayoutTreeNodes []*DOMSnapshotLayoutTreeNode `json:"layoutTreeNodes"` // ComputedStyles Whitelisted ComputedStyle properties for each node in the layout tree. ComputedStyles []*DOMSnapshotComputedStyle `json:"computedStyles"` }
DOMSnapshotGetSnapshotResult (deprecated) ...
type DOMSnapshotInlineTextBox ¶
type DOMSnapshotInlineTextBox struct { // BoundingBox The bounding box in document coordinates. Note that scroll offset of the document is ignored. BoundingBox *DOMRect `json:"boundingBox"` // StartCharacterIndex The starting index in characters, for this post layout textbox substring. Characters that // would be represented as a surrogate pair in UTF-16 have length 2. StartCharacterIndex int `json:"startCharacterIndex"` // NumCharacters The number of characters in this post layout textbox substring. Characters that would be // represented as a surrogate pair in UTF-16 have length 2. NumCharacters int `json:"numCharacters"` }
DOMSnapshotInlineTextBox Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
type DOMSnapshotLayoutTreeNode ¶
type DOMSnapshotLayoutTreeNode struct { // DomNodeIndex The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. DomNodeIndex int `json:"domNodeIndex"` // BoundingBox The bounding box in document coordinates. Note that scroll offset of the document is ignored. BoundingBox *DOMRect `json:"boundingBox"` // LayoutText (optional) Contents of the LayoutText, if any. LayoutText string `json:"layoutText,omitempty"` // InlineTextNodes (optional) The post-layout inline text nodes, if any. InlineTextNodes []*DOMSnapshotInlineTextBox `json:"inlineTextNodes,omitempty"` // StyleIndex (optional) Index into the `computedStyles` array returned by `getSnapshot`. StyleIndex *int `json:"styleIndex,omitempty"` // PaintOrder (optional) Global paint order index, which is determined by the stacking order of the nodes. Nodes // that are painted together will have the same index. Only provided if includePaintOrder in // getSnapshot was true. PaintOrder *int `json:"paintOrder,omitempty"` // IsStackingContext (optional) Set to true to indicate the element begins a new stacking context. IsStackingContext bool `json:"isStackingContext,omitempty"` }
DOMSnapshotLayoutTreeNode Details of an element in the DOM tree with a LayoutObject.
type DOMSnapshotLayoutTreeSnapshot ¶
type DOMSnapshotLayoutTreeSnapshot struct { // NodeIndex Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. NodeIndex []int `json:"nodeIndex"` // Styles Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. Styles []DOMSnapshotArrayOfStrings `json:"styles"` // Bounds The absolute position bounding box. Bounds []DOMSnapshotRectangle `json:"bounds"` // Text Contents of the LayoutText, if any. Text []DOMSnapshotStringIndex `json:"text"` // StackingContexts Stacking context information. StackingContexts *DOMSnapshotRareBooleanData `json:"stackingContexts"` // PaintOrders (optional) Global paint order index, which is determined by the stacking order of the nodes. Nodes // that are painted together will have the same index. Only provided if includePaintOrder in // captureSnapshot was true. PaintOrders []int `json:"paintOrders,omitempty"` // OffsetRects (optional) The offset rect of nodes. Only available when includeDOMRects is set to true OffsetRects []DOMSnapshotRectangle `json:"offsetRects,omitempty"` // ScrollRects (optional) The scroll rect of nodes. Only available when includeDOMRects is set to true ScrollRects []DOMSnapshotRectangle `json:"scrollRects,omitempty"` // ClientRects (optional) The client rect of nodes. Only available when includeDOMRects is set to true ClientRects []DOMSnapshotRectangle `json:"clientRects,omitempty"` // BlendedBackgroundColors (experimental) (optional) The list of background colors that are blended with colors of overlapping elements. BlendedBackgroundColors []DOMSnapshotStringIndex `json:"blendedBackgroundColors,omitempty"` // TextColorOpacities (experimental) (optional) The list of computed text opacities. TextColorOpacities []float64 `json:"textColorOpacities,omitempty"` }
DOMSnapshotLayoutTreeSnapshot Table of details of an element in the DOM tree with a LayoutObject.
type DOMSnapshotNameValue ¶
type DOMSnapshotNameValue struct { // Name Attribute/property name. Name string `json:"name"` // Value Attribute/property value. Value string `json:"value"` }
DOMSnapshotNameValue A name/value pair.
type DOMSnapshotNodeTreeSnapshot ¶
type DOMSnapshotNodeTreeSnapshot struct { // ParentIndex (optional) Parent node index. ParentIndex []int `json:"parentIndex,omitempty"` // NodeType (optional) `Node`'s nodeType. NodeType []int `json:"nodeType,omitempty"` // ShadowRootType (optional) Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum. ShadowRootType *DOMSnapshotRareStringData `json:"shadowRootType,omitempty"` // NodeName (optional) `Node`'s nodeName. NodeName []DOMSnapshotStringIndex `json:"nodeName,omitempty"` // NodeValue (optional) `Node`'s nodeValue. NodeValue []DOMSnapshotStringIndex `json:"nodeValue,omitempty"` // BackendNodeID (optional) `Node`'s id, corresponds to DOM.Node.backendNodeId. BackendNodeID []DOMBackendNodeID `json:"backendNodeId,omitempty"` // Attributes (optional) Attributes of an `Element` node. Flatten name, value pairs. Attributes []DOMSnapshotArrayOfStrings `json:"attributes,omitempty"` // TextValue (optional) Only set for textarea elements, contains the text value. TextValue *DOMSnapshotRareStringData `json:"textValue,omitempty"` // InputValue (optional) Only set for input elements, contains the input's associated text value. InputValue *DOMSnapshotRareStringData `json:"inputValue,omitempty"` // InputChecked (optional) Only set for radio and checkbox input elements, indicates if the element has been checked InputChecked *DOMSnapshotRareBooleanData `json:"inputChecked,omitempty"` // OptionSelected (optional) Only set for option elements, indicates if the element has been selected OptionSelected *DOMSnapshotRareBooleanData `json:"optionSelected,omitempty"` // ContentDocumentIndex (optional) The index of the document in the list of the snapshot documents. ContentDocumentIndex *DOMSnapshotRareIntegerData `json:"contentDocumentIndex,omitempty"` // PseudoType (optional) Type of a pseudo element node. PseudoType *DOMSnapshotRareStringData `json:"pseudoType,omitempty"` // PseudoIdentifier (optional) Pseudo element identifier for this node. Only present if there is a // valid pseudoType. PseudoIdentifier *DOMSnapshotRareStringData `json:"pseudoIdentifier,omitempty"` // IsClickable (optional) Whether this DOM node responds to mouse clicks. This includes nodes that have had click // event listeners attached via JavaScript as well as anchor tags that naturally navigate when // clicked. IsClickable *DOMSnapshotRareBooleanData `json:"isClickable,omitempty"` // CurrentSourceURL (optional) The selected url for nodes with a srcset attribute. CurrentSourceURL *DOMSnapshotRareStringData `json:"currentSourceURL,omitempty"` // OriginURL (optional) The url of the script (if any) that generates this node. OriginURL *DOMSnapshotRareStringData `json:"originURL,omitempty"` }
DOMSnapshotNodeTreeSnapshot Table containing nodes.
type DOMSnapshotRareBooleanData ¶
type DOMSnapshotRareBooleanData struct { // Index ... Index []int `json:"index"` }
DOMSnapshotRareBooleanData ...
type DOMSnapshotRareIntegerData ¶
type DOMSnapshotRareIntegerData struct { // Index ... Index []int `json:"index"` // Value ... Value []int `json:"value"` }
DOMSnapshotRareIntegerData ...
type DOMSnapshotRareStringData ¶
type DOMSnapshotRareStringData struct { // Index ... Index []int `json:"index"` // Value ... Value []DOMSnapshotStringIndex `json:"value"` }
DOMSnapshotRareStringData Data that is only present on rare nodes.
type DOMSnapshotStringIndex ¶
type DOMSnapshotStringIndex int
DOMSnapshotStringIndex Index of the string in the strings table.
type DOMSnapshotTextBoxSnapshot ¶
type DOMSnapshotTextBoxSnapshot struct { // LayoutIndex Index of the layout tree node that owns this box collection. LayoutIndex []int `json:"layoutIndex"` // Bounds The absolute position bounding box. Bounds []DOMSnapshotRectangle `json:"bounds"` // Start The starting index in characters, for this post layout textbox substring. Characters that // would be represented as a surrogate pair in UTF-16 have length 2. Start []int `json:"start"` // Length The number of characters in this post layout textbox substring. Characters that would be // represented as a surrogate pair in UTF-16 have length 2. Length []int `json:"length"` }
DOMSnapshotTextBoxSnapshot Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
type DOMStorageClear ¶
type DOMStorageClear struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` }
DOMStorageClear ...
func (DOMStorageClear) ProtoReq ¶ added in v0.74.0
func (m DOMStorageClear) ProtoReq() string
ProtoReq name.
type DOMStorageDisable ¶
type DOMStorageDisable struct{}
DOMStorageDisable Disables storage tracking, prevents storage events from being sent to the client.
func (DOMStorageDisable) Call ¶
func (m DOMStorageDisable) Call(c Client) error
Call sends the request.
func (DOMStorageDisable) ProtoReq ¶ added in v0.74.0
func (m DOMStorageDisable) ProtoReq() string
ProtoReq name.
type DOMStorageDomStorageItemAdded ¶
type DOMStorageDomStorageItemAdded struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` // Key ... Key string `json:"key"` // NewValue ... NewValue string `json:"newValue"` }
DOMStorageDomStorageItemAdded ...
func (DOMStorageDomStorageItemAdded) ProtoEvent ¶ added in v0.72.0
func (evt DOMStorageDomStorageItemAdded) ProtoEvent() string
ProtoEvent name.
type DOMStorageDomStorageItemRemoved ¶
type DOMStorageDomStorageItemRemoved struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` // Key ... Key string `json:"key"` }
DOMStorageDomStorageItemRemoved ...
func (DOMStorageDomStorageItemRemoved) ProtoEvent ¶ added in v0.72.0
func (evt DOMStorageDomStorageItemRemoved) ProtoEvent() string
ProtoEvent name.
type DOMStorageDomStorageItemUpdated ¶
type DOMStorageDomStorageItemUpdated struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` // Key ... Key string `json:"key"` // OldValue ... OldValue string `json:"oldValue"` // NewValue ... NewValue string `json:"newValue"` }
DOMStorageDomStorageItemUpdated ...
func (DOMStorageDomStorageItemUpdated) ProtoEvent ¶ added in v0.72.0
func (evt DOMStorageDomStorageItemUpdated) ProtoEvent() string
ProtoEvent name.
type DOMStorageDomStorageItemsCleared ¶
type DOMStorageDomStorageItemsCleared struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` }
DOMStorageDomStorageItemsCleared ...
func (DOMStorageDomStorageItemsCleared) ProtoEvent ¶ added in v0.72.0
func (evt DOMStorageDomStorageItemsCleared) ProtoEvent() string
ProtoEvent name.
type DOMStorageEnable ¶
type DOMStorageEnable struct{}
DOMStorageEnable Enables storage tracking, storage events will now be delivered to the client.
func (DOMStorageEnable) Call ¶
func (m DOMStorageEnable) Call(c Client) error
Call sends the request.
func (DOMStorageEnable) ProtoReq ¶ added in v0.74.0
func (m DOMStorageEnable) ProtoReq() string
ProtoReq name.
type DOMStorageGetDOMStorageItems ¶
type DOMStorageGetDOMStorageItems struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` }
DOMStorageGetDOMStorageItems ...
func (DOMStorageGetDOMStorageItems) Call ¶
func (m DOMStorageGetDOMStorageItems) Call(c Client) (*DOMStorageGetDOMStorageItemsResult, error)
Call the request.
func (DOMStorageGetDOMStorageItems) ProtoReq ¶ added in v0.74.0
func (m DOMStorageGetDOMStorageItems) ProtoReq() string
ProtoReq name.
type DOMStorageGetDOMStorageItemsResult ¶
type DOMStorageGetDOMStorageItemsResult struct { // Entries ... Entries []DOMStorageItem `json:"entries"` }
DOMStorageGetDOMStorageItemsResult ...
type DOMStorageRemoveDOMStorageItem ¶
type DOMStorageRemoveDOMStorageItem struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` // Key ... Key string `json:"key"` }
DOMStorageRemoveDOMStorageItem ...
func (DOMStorageRemoveDOMStorageItem) Call ¶
func (m DOMStorageRemoveDOMStorageItem) Call(c Client) error
Call sends the request.
func (DOMStorageRemoveDOMStorageItem) ProtoReq ¶ added in v0.74.0
func (m DOMStorageRemoveDOMStorageItem) ProtoReq() string
ProtoReq name.
type DOMStorageSerializedStorageKey ¶ added in v0.106.7
type DOMStorageSerializedStorageKey string
DOMStorageSerializedStorageKey ...
type DOMStorageSetDOMStorageItem ¶
type DOMStorageSetDOMStorageItem struct { // StorageID ... StorageID *DOMStorageStorageID `json:"storageId"` // Key ... Key string `json:"key"` // Value ... Value string `json:"value"` }
DOMStorageSetDOMStorageItem ...
func (DOMStorageSetDOMStorageItem) Call ¶
func (m DOMStorageSetDOMStorageItem) Call(c Client) error
Call sends the request.
func (DOMStorageSetDOMStorageItem) ProtoReq ¶ added in v0.74.0
func (m DOMStorageSetDOMStorageItem) ProtoReq() string
ProtoReq name.
type DOMStorageStorageID ¶
type DOMStorageStorageID struct { // SecurityOrigin (optional) Security origin for the storage. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Represents a key by which DOM Storage keys its CachedStorageAreas StorageKey DOMStorageSerializedStorageKey `json:"storageKey,omitempty"` // IsLocalStorage Whether the storage is local storage (not session storage). IsLocalStorage bool `json:"isLocalStorage"` }
DOMStorageStorageID DOM Storage identifier.
type DOMTopLayerElementsUpdated ¶ added in v0.108.0
type DOMTopLayerElementsUpdated struct{}
DOMTopLayerElementsUpdated (experimental) Called when top layer elements are changed.
func (DOMTopLayerElementsUpdated) ProtoEvent ¶ added in v0.108.0
func (evt DOMTopLayerElementsUpdated) ProtoEvent() string
ProtoEvent name.
type DatabaseAddDatabase ¶
type DatabaseAddDatabase struct { // Database ... Database *DatabaseDatabase `json:"database"` }
DatabaseAddDatabase ...
func (DatabaseAddDatabase) ProtoEvent ¶ added in v0.72.0
func (evt DatabaseAddDatabase) ProtoEvent() string
ProtoEvent name.
type DatabaseDatabase ¶
type DatabaseDatabase struct { // ID Database ID. ID DatabaseDatabaseID `json:"id"` // Domain Database domain. Domain string `json:"domain"` // Name Database name. Name string `json:"name"` // Version Database version. Version string `json:"version"` }
DatabaseDatabase Database object.
type DatabaseDatabaseID ¶
type DatabaseDatabaseID string
DatabaseDatabaseID Unique identifier of Database object.
type DatabaseDisable ¶
type DatabaseDisable struct{}
DatabaseDisable Disables database tracking, prevents database events from being sent to the client.
func (DatabaseDisable) ProtoReq ¶ added in v0.74.0
func (m DatabaseDisable) ProtoReq() string
ProtoReq name.
type DatabaseEnable ¶
type DatabaseEnable struct{}
DatabaseEnable Enables database tracking, database events will now be delivered to the client.
func (DatabaseEnable) ProtoReq ¶ added in v0.74.0
func (m DatabaseEnable) ProtoReq() string
ProtoReq name.
type DatabaseError ¶
type DatabaseError struct { // Message Error message. Message string `json:"message"` // Code Error code. Code int `json:"code"` }
DatabaseError Database error.
type DatabaseExecuteSQL ¶
type DatabaseExecuteSQL struct { // DatabaseID ... DatabaseID DatabaseDatabaseID `json:"databaseId"` // Query ... Query string `json:"query"` }
DatabaseExecuteSQL ...
func (DatabaseExecuteSQL) Call ¶
func (m DatabaseExecuteSQL) Call(c Client) (*DatabaseExecuteSQLResult, error)
Call the request.
func (DatabaseExecuteSQL) ProtoReq ¶ added in v0.74.0
func (m DatabaseExecuteSQL) ProtoReq() string
ProtoReq name.
type DatabaseExecuteSQLResult ¶
type DatabaseExecuteSQLResult struct { // ColumnNames (optional) ... ColumnNames []string `json:"columnNames,omitempty"` // Values (optional) ... Values []gson.JSON `json:"values,omitempty"` // SQLError (optional) ... SQLError *DatabaseError `json:"sqlError,omitempty"` }
DatabaseExecuteSQLResult ...
type DatabaseGetDatabaseTableNames ¶
type DatabaseGetDatabaseTableNames struct { // DatabaseID ... DatabaseID DatabaseDatabaseID `json:"databaseId"` }
DatabaseGetDatabaseTableNames ...
func (DatabaseGetDatabaseTableNames) Call ¶
func (m DatabaseGetDatabaseTableNames) Call(c Client) (*DatabaseGetDatabaseTableNamesResult, error)
Call the request.
func (DatabaseGetDatabaseTableNames) ProtoReq ¶ added in v0.74.0
func (m DatabaseGetDatabaseTableNames) ProtoReq() string
ProtoReq name.
type DatabaseGetDatabaseTableNamesResult ¶
type DatabaseGetDatabaseTableNamesResult struct { // TableNames ... TableNames []string `json:"tableNames"` }
DatabaseGetDatabaseTableNamesResult ...
type DebuggerBreakLocation ¶
type DebuggerBreakLocation struct { // ScriptID Script identifier as reported in the `Debugger.scriptParsed`. ScriptID RuntimeScriptID `json:"scriptId"` // LineNumber Line number in the script (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber (optional) Column number in the script (0-based). ColumnNumber *int `json:"columnNumber,omitempty"` // Type (optional) ... Type DebuggerBreakLocationType `json:"type,omitempty"` }
DebuggerBreakLocation ...
type DebuggerBreakLocationType ¶
type DebuggerBreakLocationType string
DebuggerBreakLocationType enum.
const ( // DebuggerBreakLocationTypeDebuggerStatement enum const. DebuggerBreakLocationTypeDebuggerStatement DebuggerBreakLocationType = "debuggerStatement" // DebuggerBreakLocationTypeCall enum const. DebuggerBreakLocationTypeCall DebuggerBreakLocationType = "call" // DebuggerBreakLocationTypeReturn enum const. DebuggerBreakLocationTypeReturn DebuggerBreakLocationType = "return" )
type DebuggerBreakpointID ¶
type DebuggerBreakpointID string
DebuggerBreakpointID Breakpoint identifier.
type DebuggerBreakpointResolved ¶
type DebuggerBreakpointResolved struct { // BreakpointID Breakpoint unique identifier. BreakpointID DebuggerBreakpointID `json:"breakpointId"` // Location Actual breakpoint location. Location *DebuggerLocation `json:"location"` }
DebuggerBreakpointResolved Fired when breakpoint is resolved to an actual script and location.
func (DebuggerBreakpointResolved) ProtoEvent ¶ added in v0.72.0
func (evt DebuggerBreakpointResolved) ProtoEvent() string
ProtoEvent name.
type DebuggerCallFrame ¶
type DebuggerCallFrame struct { // CallFrameID Call frame identifier. This identifier is only valid while the virtual machine is paused. CallFrameID DebuggerCallFrameID `json:"callFrameId"` // FunctionName Name of the JavaScript function called on this call frame. FunctionName string `json:"functionName"` // FunctionLocation (optional) Location in the source code. FunctionLocation *DebuggerLocation `json:"functionLocation,omitempty"` // Location in the source code. Location *DebuggerLocation `json:"location"` // URL (deprecated) JavaScript script name or url. // Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously // sent `Debugger.scriptParsed` event. URL string `json:"url"` // ScopeChain Scope chain for this call frame. ScopeChain []*DebuggerScope `json:"scopeChain"` // This `this` object for this call frame. This *RuntimeRemoteObject `json:"this"` // ReturnValue (optional) The value being returned, if the function is at return point. ReturnValue *RuntimeRemoteObject `json:"returnValue,omitempty"` // CanBeRestarted (experimental) (optional) Valid only while the VM is paused and indicates whether this frame // can be restarted or not. Note that a `true` value here does not // guarantee that Debugger#restartFrame with this CallFrameId will be // successful, but it is very likely. CanBeRestarted bool `json:"canBeRestarted,omitempty"` }
DebuggerCallFrame JavaScript call frame. Array of call frames form the call stack.
type DebuggerCallFrameID ¶
type DebuggerCallFrameID string
DebuggerCallFrameID Call frame identifier.
type DebuggerContinueToLocation ¶
type DebuggerContinueToLocation struct { // Location to continue to. Location *DebuggerLocation `json:"location"` // TargetCallFrames (optional) ... TargetCallFrames DebuggerContinueToLocationTargetCallFrames `json:"targetCallFrames,omitempty"` }
DebuggerContinueToLocation Continues execution until specific location is reached.
func (DebuggerContinueToLocation) Call ¶
func (m DebuggerContinueToLocation) Call(c Client) error
Call sends the request.
func (DebuggerContinueToLocation) ProtoReq ¶ added in v0.74.0
func (m DebuggerContinueToLocation) ProtoReq() string
ProtoReq name.
type DebuggerContinueToLocationTargetCallFrames ¶
type DebuggerContinueToLocationTargetCallFrames string
DebuggerContinueToLocationTargetCallFrames enum.
const ( // DebuggerContinueToLocationTargetCallFramesAny enum const. DebuggerContinueToLocationTargetCallFramesAny DebuggerContinueToLocationTargetCallFrames = "any" // DebuggerContinueToLocationTargetCallFramesCurrent enum const. DebuggerContinueToLocationTargetCallFramesCurrent DebuggerContinueToLocationTargetCallFrames = "current" )
type DebuggerDebugSymbols ¶ added in v0.48.0
type DebuggerDebugSymbols struct { // Type of the debug symbols. Type DebuggerDebugSymbolsType `json:"type"` // ExternalURL (optional) URL of the external symbol source. ExternalURL string `json:"externalURL,omitempty"` }
DebuggerDebugSymbols Debug symbols available for a wasm script.
type DebuggerDebugSymbolsType ¶ added in v0.48.0
type DebuggerDebugSymbolsType string
DebuggerDebugSymbolsType enum.
const ( // DebuggerDebugSymbolsTypeNone enum const. DebuggerDebugSymbolsTypeNone DebuggerDebugSymbolsType = "None" // DebuggerDebugSymbolsTypeSourceMap enum const. DebuggerDebugSymbolsTypeSourceMap DebuggerDebugSymbolsType = "SourceMap" // DebuggerDebugSymbolsTypeEmbeddedDWARF enum const. DebuggerDebugSymbolsTypeEmbeddedDWARF DebuggerDebugSymbolsType = "EmbeddedDWARF" // DebuggerDebugSymbolsTypeExternalDWARF enum const. DebuggerDebugSymbolsTypeExternalDWARF DebuggerDebugSymbolsType = "ExternalDWARF" )
type DebuggerDisable ¶
type DebuggerDisable struct{}
DebuggerDisable Disables debugger for given page.
func (DebuggerDisable) ProtoReq ¶ added in v0.74.0
func (m DebuggerDisable) ProtoReq() string
ProtoReq name.
type DebuggerDisassembleWasmModule ¶ added in v0.108.2
type DebuggerDisassembleWasmModule struct { // ScriptID Id of the script to disassemble ScriptID RuntimeScriptID `json:"scriptId"` }
DebuggerDisassembleWasmModule (experimental) ...
func (DebuggerDisassembleWasmModule) Call ¶ added in v0.108.2
func (m DebuggerDisassembleWasmModule) Call(c Client) (*DebuggerDisassembleWasmModuleResult, error)
Call the request.
func (DebuggerDisassembleWasmModule) ProtoReq ¶ added in v0.108.2
func (m DebuggerDisassembleWasmModule) ProtoReq() string
ProtoReq name.
type DebuggerDisassembleWasmModuleResult ¶ added in v0.108.2
type DebuggerDisassembleWasmModuleResult struct { // StreamID (optional) For large modules, return a stream from which additional chunks of // disassembly can be read successively. StreamID string `json:"streamId,omitempty"` // TotalNumberOfLines The total number of lines in the disassembly text. TotalNumberOfLines int `json:"totalNumberOfLines"` // FunctionBodyOffsets The offsets of all function bodies, in the format [start1, end1, // start2, end2, ...] where all ends are exclusive. FunctionBodyOffsets []int `json:"functionBodyOffsets"` // Chunk The first chunk of disassembly. Chunk *DebuggerWasmDisassemblyChunk `json:"chunk"` }
DebuggerDisassembleWasmModuleResult (experimental) ...
type DebuggerEnable ¶
type DebuggerEnable struct { // MaxScriptsCacheSize (experimental) (optional) The maximum size in bytes of collected scripts (not referenced by other heap objects) // the debugger can hold. Puts no limit if parameter is omitted. MaxScriptsCacheSize *float64 `json:"maxScriptsCacheSize,omitempty"` }
DebuggerEnable 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 (DebuggerEnable) Call ¶
func (m DebuggerEnable) Call(c Client) (*DebuggerEnableResult, error)
Call the request.
func (DebuggerEnable) ProtoReq ¶ added in v0.74.0
func (m DebuggerEnable) ProtoReq() string
ProtoReq name.
type DebuggerEnableResult ¶
type DebuggerEnableResult struct { // DebuggerID (experimental) Unique identifier of the debugger. DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId"` }
DebuggerEnableResult ...
type DebuggerEvaluateOnCallFrame ¶
type DebuggerEvaluateOnCallFrame struct { // CallFrameID Call frame identifier to evaluate on. CallFrameID DebuggerCallFrameID `json:"callFrameId"` // Expression to evaluate. Expression string `json:"expression"` // ObjectGroup (optional) String object group name to put result into (allows rapid releasing resulting object handles // using `releaseObjectGroup`). ObjectGroup string `json:"objectGroup,omitempty"` // IncludeCommandLineAPI (optional) Specifies whether command line API should be available to the evaluated expression, defaults // to false. IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause // execution. Overrides `setPauseOnException` state. Silent bool `json:"silent,omitempty"` // ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value. ReturnByValue bool `json:"returnByValue,omitempty"` // GeneratePreview (experimental) (optional) Whether preview should be generated for the result. GeneratePreview bool `json:"generatePreview,omitempty"` // ThrowOnSideEffect (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation. ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // Timeout (experimental) (optional) Terminate execution after timing out (number of milliseconds). Timeout RuntimeTimeDelta `json:"timeout,omitempty"` }
DebuggerEvaluateOnCallFrame Evaluates expression on a given call frame.
func (DebuggerEvaluateOnCallFrame) Call ¶
func (m DebuggerEvaluateOnCallFrame) Call(c Client) (*DebuggerEvaluateOnCallFrameResult, error)
Call the request.
func (DebuggerEvaluateOnCallFrame) ProtoReq ¶ added in v0.74.0
func (m DebuggerEvaluateOnCallFrame) ProtoReq() string
ProtoReq name.
type DebuggerEvaluateOnCallFrameResult ¶
type DebuggerEvaluateOnCallFrameResult struct { // Result Object wrapper for the evaluation result. Result *RuntimeRemoteObject `json:"result"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
DebuggerEvaluateOnCallFrameResult ...
type DebuggerGetPossibleBreakpoints ¶
type DebuggerGetPossibleBreakpoints struct { // Start of range to search possible breakpoint locations in. Start *DebuggerLocation `json:"start"` // End (optional) End of range to search possible breakpoint locations in (excluding). When not specified, end // of scripts is used as end of range. End *DebuggerLocation `json:"end,omitempty"` // RestrictToFunction (optional) Only consider locations which are in the same (non-nested) function as start. RestrictToFunction bool `json:"restrictToFunction,omitempty"` }
DebuggerGetPossibleBreakpoints Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
func (DebuggerGetPossibleBreakpoints) Call ¶
func (m DebuggerGetPossibleBreakpoints) Call(c Client) (*DebuggerGetPossibleBreakpointsResult, error)
Call the request.
func (DebuggerGetPossibleBreakpoints) ProtoReq ¶ added in v0.74.0
func (m DebuggerGetPossibleBreakpoints) ProtoReq() string
ProtoReq name.
type DebuggerGetPossibleBreakpointsResult ¶
type DebuggerGetPossibleBreakpointsResult struct { // Locations List of the possible breakpoint locations. Locations []*DebuggerBreakLocation `json:"locations"` }
DebuggerGetPossibleBreakpointsResult ...
type DebuggerGetScriptSource ¶
type DebuggerGetScriptSource struct { // ScriptID Id of the script to get source for. ScriptID RuntimeScriptID `json:"scriptId"` }
DebuggerGetScriptSource Returns source for the script with given id.
func (DebuggerGetScriptSource) Call ¶
func (m DebuggerGetScriptSource) Call(c Client) (*DebuggerGetScriptSourceResult, error)
Call the request.
func (DebuggerGetScriptSource) ProtoReq ¶ added in v0.74.0
func (m DebuggerGetScriptSource) ProtoReq() string
ProtoReq name.
type DebuggerGetScriptSourceResult ¶
type DebuggerGetScriptSourceResult struct { // ScriptSource Script source (empty in case of Wasm bytecode). ScriptSource string `json:"scriptSource"` // Bytecode (optional) Wasm bytecode. Bytecode []byte `json:"bytecode,omitempty"` }
DebuggerGetScriptSourceResult ...
type DebuggerGetStackTrace ¶
type DebuggerGetStackTrace struct { // StackTraceID ... StackTraceID *RuntimeStackTraceID `json:"stackTraceId"` }
DebuggerGetStackTrace (experimental) Returns stack trace with given `stackTraceId`.
func (DebuggerGetStackTrace) Call ¶
func (m DebuggerGetStackTrace) Call(c Client) (*DebuggerGetStackTraceResult, error)
Call the request.
func (DebuggerGetStackTrace) ProtoReq ¶ added in v0.74.0
func (m DebuggerGetStackTrace) ProtoReq() string
ProtoReq name.
type DebuggerGetStackTraceResult ¶
type DebuggerGetStackTraceResult struct { // StackTrace ... StackTrace *RuntimeStackTrace `json:"stackTrace"` }
DebuggerGetStackTraceResult (experimental) ...
type DebuggerGetWasmBytecode ¶
type DebuggerGetWasmBytecode struct { // ScriptID Id of the Wasm script to get source for. ScriptID RuntimeScriptID `json:"scriptId"` }
DebuggerGetWasmBytecode (deprecated) This command is deprecated. Use getScriptSource instead.
func (DebuggerGetWasmBytecode) Call ¶
func (m DebuggerGetWasmBytecode) Call(c Client) (*DebuggerGetWasmBytecodeResult, error)
Call the request.
func (DebuggerGetWasmBytecode) ProtoReq ¶ added in v0.74.0
func (m DebuggerGetWasmBytecode) ProtoReq() string
ProtoReq name.
type DebuggerGetWasmBytecodeResult ¶
type DebuggerGetWasmBytecodeResult struct { // Bytecode Script source. Bytecode []byte `json:"bytecode"` }
DebuggerGetWasmBytecodeResult (deprecated) ...
type DebuggerLocation ¶
type DebuggerLocation struct { // ScriptID Script identifier as reported in the `Debugger.scriptParsed`. ScriptID RuntimeScriptID `json:"scriptId"` // LineNumber Line number in the script (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber (optional) Column number in the script (0-based). ColumnNumber *int `json:"columnNumber,omitempty"` }
DebuggerLocation Location in the source code.
type DebuggerLocationRange ¶ added in v0.72.0
type DebuggerLocationRange struct { // ScriptID ... ScriptID RuntimeScriptID `json:"scriptId"` // Start ... Start *DebuggerScriptPosition `json:"start"` // End ... End *DebuggerScriptPosition `json:"end"` }
DebuggerLocationRange (experimental) Location range within one script.
type DebuggerNextWasmDisassemblyChunk ¶ added in v0.108.2
type DebuggerNextWasmDisassemblyChunk struct { // StreamID ... StreamID string `json:"streamId"` }
DebuggerNextWasmDisassemblyChunk (experimental) Disassemble the next chunk of lines for the module corresponding to the stream. If disassembly is complete, this API will invalidate the streamId and return an empty chunk. Any subsequent calls for the now invalid stream will return errors.
func (DebuggerNextWasmDisassemblyChunk) Call ¶ added in v0.108.2
func (m DebuggerNextWasmDisassemblyChunk) Call(c Client) (*DebuggerNextWasmDisassemblyChunkResult, error)
Call the request.
func (DebuggerNextWasmDisassemblyChunk) ProtoReq ¶ added in v0.108.2
func (m DebuggerNextWasmDisassemblyChunk) ProtoReq() string
ProtoReq name.
type DebuggerNextWasmDisassemblyChunkResult ¶ added in v0.108.2
type DebuggerNextWasmDisassemblyChunkResult struct { // Chunk The next chunk of disassembly. Chunk *DebuggerWasmDisassemblyChunk `json:"chunk"` }
DebuggerNextWasmDisassemblyChunkResult (experimental) ...
type DebuggerPause ¶
type DebuggerPause struct{}
DebuggerPause Stops on the next JavaScript statement.
func (DebuggerPause) ProtoReq ¶ added in v0.74.0
func (m DebuggerPause) ProtoReq() string
ProtoReq name.
type DebuggerPauseOnAsyncCall ¶
type DebuggerPauseOnAsyncCall struct { // ParentStackTraceID Debugger will pause when async call with given stack trace is started. ParentStackTraceID *RuntimeStackTraceID `json:"parentStackTraceId"` }
DebuggerPauseOnAsyncCall (deprecated) (experimental) ...
func (DebuggerPauseOnAsyncCall) Call ¶
func (m DebuggerPauseOnAsyncCall) Call(c Client) error
Call sends the request.
func (DebuggerPauseOnAsyncCall) ProtoReq ¶ added in v0.74.0
func (m DebuggerPauseOnAsyncCall) ProtoReq() string
ProtoReq name.
type DebuggerPaused ¶
type DebuggerPaused struct { // CallFrames Call stack the virtual machine stopped on. CallFrames []*DebuggerCallFrame `json:"callFrames"` // Reason Pause reason. Reason DebuggerPausedReason `json:"reason"` // Data (optional) Object containing break-specific auxiliary properties. Data map[string]gson.JSON `json:"data,omitempty"` // HitBreakpoints (optional) Hit breakpoints IDs HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // AsyncStackTrace (optional) Async stack trace, if any. AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"` // AsyncStackTraceID (experimental) (optional) Async stack trace, if any. AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"` // AsyncCallStackTraceID (deprecated) (experimental) (optional) Never present, will be removed. AsyncCallStackTraceID *RuntimeStackTraceID `json:"asyncCallStackTraceId,omitempty"` }
DebuggerPaused Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
func (DebuggerPaused) ProtoEvent ¶ added in v0.72.0
func (evt DebuggerPaused) ProtoEvent() string
ProtoEvent name.
type DebuggerPausedReason ¶
type DebuggerPausedReason string
DebuggerPausedReason enum.
const ( // DebuggerPausedReasonAmbiguous enum const. DebuggerPausedReasonAmbiguous DebuggerPausedReason = "ambiguous" // DebuggerPausedReasonAssert enum const. DebuggerPausedReasonAssert DebuggerPausedReason = "assert" // DebuggerPausedReasonCSPViolation enum const. DebuggerPausedReasonCSPViolation DebuggerPausedReason = "CSPViolation" // DebuggerPausedReasonDebugCommand enum const. DebuggerPausedReasonDebugCommand DebuggerPausedReason = "debugCommand" // DebuggerPausedReasonDOM enum const. DebuggerPausedReasonDOM DebuggerPausedReason = "DOM" // DebuggerPausedReasonEventListener enum const. DebuggerPausedReasonEventListener DebuggerPausedReason = "EventListener" // DebuggerPausedReasonException enum const. DebuggerPausedReasonException DebuggerPausedReason = "exception" // DebuggerPausedReasonInstrumentation enum const. DebuggerPausedReasonInstrumentation DebuggerPausedReason = "instrumentation" // DebuggerPausedReasonOOM enum const. DebuggerPausedReasonOOM DebuggerPausedReason = "OOM" // DebuggerPausedReasonOther enum const. DebuggerPausedReasonOther DebuggerPausedReason = "other" // DebuggerPausedReasonPromiseRejection enum const. DebuggerPausedReasonPromiseRejection DebuggerPausedReason = "promiseRejection" // DebuggerPausedReasonXHR enum const. DebuggerPausedReasonXHR DebuggerPausedReason = "XHR" // DebuggerPausedReasonStep enum const. DebuggerPausedReasonStep DebuggerPausedReason = "step" )
type DebuggerRemoveBreakpoint ¶
type DebuggerRemoveBreakpoint struct { // BreakpointID ... BreakpointID DebuggerBreakpointID `json:"breakpointId"` }
DebuggerRemoveBreakpoint Removes JavaScript breakpoint.
func (DebuggerRemoveBreakpoint) Call ¶
func (m DebuggerRemoveBreakpoint) Call(c Client) error
Call sends the request.
func (DebuggerRemoveBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DebuggerRemoveBreakpoint) ProtoReq() string
ProtoReq name.
type DebuggerRestartFrame ¶
type DebuggerRestartFrame struct { // CallFrameID Call frame identifier to evaluate on. CallFrameID DebuggerCallFrameID `json:"callFrameId"` // Mode (experimental) (optional) The `mode` parameter must be present and set to 'StepInto', otherwise // `restartFrame` will error out. Mode DebuggerRestartFrameMode `json:"mode,omitempty"` }
DebuggerRestartFrame Restarts particular call frame from the beginning. The old, deprecated behavior of `restartFrame` is to stay paused and allow further CDP commands after a restart was scheduled. This can cause problems with restarting, so we now continue execution immediately after it has been scheduled until we reach the beginning of the restarted frame.
To stay back-wards compatible, `restartFrame` now expects a `mode` parameter to be present. If the `mode` parameter is missing, `restartFrame` errors out.
The various return values are deprecated and `callFrames` is always empty. Use the call frames from the `Debugger#paused` events instead, that fires once V8 pauses at the beginning of the restarted function.
func (DebuggerRestartFrame) Call ¶
func (m DebuggerRestartFrame) Call(c Client) (*DebuggerRestartFrameResult, error)
Call the request.
func (DebuggerRestartFrame) ProtoReq ¶ added in v0.74.0
func (m DebuggerRestartFrame) ProtoReq() string
ProtoReq name.
type DebuggerRestartFrameMode ¶ added in v0.107.0
type DebuggerRestartFrameMode string
DebuggerRestartFrameMode enum.
const ( // DebuggerRestartFrameModeStepInto enum const. DebuggerRestartFrameModeStepInto DebuggerRestartFrameMode = "StepInto" )
type DebuggerRestartFrameResult ¶
type DebuggerRestartFrameResult struct { // CallFrames (deprecated) New stack trace. CallFrames []*DebuggerCallFrame `json:"callFrames"` // AsyncStackTrace (deprecated) (optional) Async stack trace, if any. AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"` // AsyncStackTraceID (deprecated) (optional) Async stack trace, if any. AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"` }
DebuggerRestartFrameResult ...
type DebuggerResume ¶
type DebuggerResume struct { // TerminateOnResume (optional) Set to true to terminate execution upon resuming execution. In contrast // to Runtime.terminateExecution, this will allows to execute further // JavaScript (i.e. via evaluation) until execution of the paused code // is actually resumed, at which point termination is triggered. // If execution is currently not paused, this parameter has no effect. TerminateOnResume bool `json:"terminateOnResume,omitempty"` }
DebuggerResume Resumes JavaScript execution.
func (DebuggerResume) ProtoReq ¶ added in v0.74.0
func (m DebuggerResume) ProtoReq() string
ProtoReq name.
type DebuggerResumed ¶
type DebuggerResumed struct{}
DebuggerResumed Fired when the virtual machine resumed execution.
func (DebuggerResumed) ProtoEvent ¶ added in v0.72.0
func (evt DebuggerResumed) ProtoEvent() string
ProtoEvent name.
type DebuggerScope ¶
type DebuggerScope struct { // Type Scope type. Type DebuggerScopeType `json:"type"` // Object representing the scope. For `global` and `with` scopes it represents the actual // object; for the rest of the scopes, it is artificial transient object enumerating scope // variables as its properties. Object *RuntimeRemoteObject `json:"object"` // Name (optional) ... Name string `json:"name,omitempty"` // StartLocation (optional) Location in the source code where scope starts StartLocation *DebuggerLocation `json:"startLocation,omitempty"` // EndLocation (optional) Location in the source code where scope ends EndLocation *DebuggerLocation `json:"endLocation,omitempty"` }
DebuggerScope Scope description.
type DebuggerScopeType ¶
type DebuggerScopeType string
DebuggerScopeType enum.
const ( // DebuggerScopeTypeGlobal enum const. DebuggerScopeTypeGlobal DebuggerScopeType = "global" // DebuggerScopeTypeLocal enum const. DebuggerScopeTypeLocal DebuggerScopeType = "local" // DebuggerScopeTypeWith enum const. DebuggerScopeTypeWith DebuggerScopeType = "with" // DebuggerScopeTypeClosure enum const. DebuggerScopeTypeClosure DebuggerScopeType = "closure" // DebuggerScopeTypeCatch enum const. DebuggerScopeTypeCatch DebuggerScopeType = "catch" // DebuggerScopeTypeBlock enum const. DebuggerScopeTypeBlock DebuggerScopeType = "block" // DebuggerScopeTypeScript enum const. DebuggerScopeTypeScript DebuggerScopeType = "script" // DebuggerScopeTypeEval enum const. DebuggerScopeTypeEval DebuggerScopeType = "eval" // DebuggerScopeTypeModule enum const. DebuggerScopeTypeModule DebuggerScopeType = "module" // DebuggerScopeTypeWasmExpressionStack enum const. DebuggerScopeTypeWasmExpressionStack DebuggerScopeType = "wasm-expression-stack" )
type DebuggerScriptFailedToParse ¶
type DebuggerScriptFailedToParse struct { // ScriptID Identifier of the script parsed. ScriptID RuntimeScriptID `json:"scriptId"` // URL or name of the script parsed (if any). URL string `json:"url"` // StartLine Line offset of the script within the resource with given URL (for script tags). StartLine int `json:"startLine"` // StartColumn Column offset of the script within the resource with given URL. StartColumn int `json:"startColumn"` // EndLine Last line of the script. EndLine int `json:"endLine"` // EndColumn Length of the last line of the script. EndColumn int `json:"endColumn"` // ExecutionContextID Specifies script creation context. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` // Hash Content hash of the script, SHA-256. Hash string `json:"hash"` // ExecutionContextAuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} ExecutionContextAuxData map[string]gson.JSON `json:"executionContextAuxData,omitempty"` // SourceMapURL (optional) URL of source map associated with script (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` // HasSourceURL (optional) True, if this script has sourceURL. HasSourceURL bool `json:"hasSourceURL,omitempty"` // IsModule (optional) True, if this script is ES6 module. IsModule bool `json:"isModule,omitempty"` // Length (optional) This script length. Length *int `json:"length,omitempty"` // StackTrace (experimental) (optional) JavaScript top stack frame of where the script parsed event was triggered if available. StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // CodeOffset (experimental) (optional) If the scriptLanguage is WebAssembly, the code section offset in the module. CodeOffset *int `json:"codeOffset,omitempty"` // ScriptLanguage (experimental) (optional) The language of the script. ScriptLanguage DebuggerScriptLanguage `json:"scriptLanguage,omitempty"` // EmbedderName (experimental) (optional) The name the embedder supplied for this script. EmbedderName string `json:"embedderName,omitempty"` }
DebuggerScriptFailedToParse Fired when virtual machine fails to parse the script.
func (DebuggerScriptFailedToParse) ProtoEvent ¶ added in v0.72.0
func (evt DebuggerScriptFailedToParse) ProtoEvent() string
ProtoEvent name.
type DebuggerScriptLanguage ¶
type DebuggerScriptLanguage string
DebuggerScriptLanguage Enum of possible script languages.
const ( // DebuggerScriptLanguageJavaScript enum const. DebuggerScriptLanguageJavaScript DebuggerScriptLanguage = "JavaScript" // DebuggerScriptLanguageWebAssembly enum const. DebuggerScriptLanguageWebAssembly DebuggerScriptLanguage = "WebAssembly" )
type DebuggerScriptParsed ¶
type DebuggerScriptParsed struct { // ScriptID Identifier of the script parsed. ScriptID RuntimeScriptID `json:"scriptId"` // URL or name of the script parsed (if any). URL string `json:"url"` // StartLine Line offset of the script within the resource with given URL (for script tags). StartLine int `json:"startLine"` // StartColumn Column offset of the script within the resource with given URL. StartColumn int `json:"startColumn"` // EndLine Last line of the script. EndLine int `json:"endLine"` // EndColumn Length of the last line of the script. EndColumn int `json:"endColumn"` // ExecutionContextID Specifies script creation context. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` // Hash Content hash of the script, SHA-256. Hash string `json:"hash"` // ExecutionContextAuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} ExecutionContextAuxData map[string]gson.JSON `json:"executionContextAuxData,omitempty"` // IsLiveEdit (experimental) (optional) True, if this script is generated as a result of the live edit operation. IsLiveEdit bool `json:"isLiveEdit,omitempty"` // SourceMapURL (optional) URL of source map associated with script (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` // HasSourceURL (optional) True, if this script has sourceURL. HasSourceURL bool `json:"hasSourceURL,omitempty"` // IsModule (optional) True, if this script is ES6 module. IsModule bool `json:"isModule,omitempty"` // Length (optional) This script length. Length *int `json:"length,omitempty"` // StackTrace (experimental) (optional) JavaScript top stack frame of where the script parsed event was triggered if available. StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // CodeOffset (experimental) (optional) If the scriptLanguage is WebAssembly, the code section offset in the module. CodeOffset *int `json:"codeOffset,omitempty"` // ScriptLanguage (experimental) (optional) The language of the script. ScriptLanguage DebuggerScriptLanguage `json:"scriptLanguage,omitempty"` // DebugSymbols (experimental) (optional) If the scriptLanguage is WebASsembly, the source of debug symbols for the module. DebugSymbols *DebuggerDebugSymbols `json:"debugSymbols,omitempty"` // EmbedderName (experimental) (optional) The name the embedder supplied for this script. EmbedderName string `json:"embedderName,omitempty"` }
DebuggerScriptParsed Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
func (DebuggerScriptParsed) ProtoEvent ¶ added in v0.72.0
func (evt DebuggerScriptParsed) ProtoEvent() string
ProtoEvent name.
type DebuggerScriptPosition ¶
type DebuggerScriptPosition struct { // LineNumber ... LineNumber int `json:"lineNumber"` // ColumnNumber ... ColumnNumber int `json:"columnNumber"` }
DebuggerScriptPosition (experimental) Location in the source code.
type DebuggerSearchInContent ¶
type DebuggerSearchInContent struct { // ScriptID Id of the script to search in. ScriptID RuntimeScriptID `json:"scriptId"` // Query String to search for. Query string `json:"query"` // CaseSensitive (optional) If true, search is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` // IsRegex (optional) If true, treats string parameter as regex. IsRegex bool `json:"isRegex,omitempty"` }
DebuggerSearchInContent Searches for given string in script content.
func (DebuggerSearchInContent) Call ¶
func (m DebuggerSearchInContent) Call(c Client) (*DebuggerSearchInContentResult, error)
Call the request.
func (DebuggerSearchInContent) ProtoReq ¶ added in v0.74.0
func (m DebuggerSearchInContent) ProtoReq() string
ProtoReq name.
type DebuggerSearchInContentResult ¶
type DebuggerSearchInContentResult struct { // Result List of search matches. Result []*DebuggerSearchMatch `json:"result"` }
DebuggerSearchInContentResult ...
type DebuggerSearchMatch ¶
type DebuggerSearchMatch struct { // LineNumber Line number in resource content. LineNumber float64 `json:"lineNumber"` // LineContent Line with match content. LineContent string `json:"lineContent"` }
DebuggerSearchMatch Search match for resource.
type DebuggerSetAsyncCallStackDepth ¶
type DebuggerSetAsyncCallStackDepth struct { // MaxDepth Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async // call stacks (default). MaxDepth int `json:"maxDepth"` }
DebuggerSetAsyncCallStackDepth Enables or disables async call stacks tracking.
func (DebuggerSetAsyncCallStackDepth) Call ¶
func (m DebuggerSetAsyncCallStackDepth) Call(c Client) error
Call sends the request.
func (DebuggerSetAsyncCallStackDepth) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetAsyncCallStackDepth) ProtoReq() string
ProtoReq name.
type DebuggerSetBlackboxPatterns ¶
type DebuggerSetBlackboxPatterns struct { // Patterns Array of regexps that will be used to check script url for blackbox state. Patterns []string `json:"patterns"` }
DebuggerSetBlackboxPatterns (experimental) 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 (DebuggerSetBlackboxPatterns) Call ¶
func (m DebuggerSetBlackboxPatterns) Call(c Client) error
Call sends the request.
func (DebuggerSetBlackboxPatterns) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBlackboxPatterns) ProtoReq() string
ProtoReq name.
type DebuggerSetBlackboxedRanges ¶
type DebuggerSetBlackboxedRanges struct { // ScriptID Id of the script. ScriptID RuntimeScriptID `json:"scriptId"` // Positions ... Positions []*DebuggerScriptPosition `json:"positions"` }
DebuggerSetBlackboxedRanges (experimental) 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 (DebuggerSetBlackboxedRanges) Call ¶
func (m DebuggerSetBlackboxedRanges) Call(c Client) error
Call sends the request.
func (DebuggerSetBlackboxedRanges) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBlackboxedRanges) ProtoReq() string
ProtoReq name.
type DebuggerSetBreakpoint ¶
type DebuggerSetBreakpoint struct { // Location to set breakpoint in. Location *DebuggerLocation `json:"location"` // Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will only stop on the // breakpoint if this expression evaluates to true. Condition string `json:"condition,omitempty"` }
DebuggerSetBreakpoint Sets JavaScript breakpoint at a given location.
func (DebuggerSetBreakpoint) Call ¶
func (m DebuggerSetBreakpoint) Call(c Client) (*DebuggerSetBreakpointResult, error)
Call the request.
func (DebuggerSetBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBreakpoint) ProtoReq() string
ProtoReq name.
type DebuggerSetBreakpointByURL ¶
type DebuggerSetBreakpointByURL struct { // LineNumber Line number to set breakpoint at. LineNumber int `json:"lineNumber"` // URL (optional) URL of the resources to set breakpoint on. URL string `json:"url,omitempty"` // URLRegex (optional) Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or // `urlRegex` must be specified. URLRegex string `json:"urlRegex,omitempty"` // ScriptHash (optional) Script hash of the resources to set breakpoint on. ScriptHash string `json:"scriptHash,omitempty"` // ColumnNumber (optional) Offset in the line to set breakpoint at. ColumnNumber *int `json:"columnNumber,omitempty"` // Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will only stop on the // breakpoint if this expression evaluates to true. Condition string `json:"condition,omitempty"` }
DebuggerSetBreakpointByURL 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 (DebuggerSetBreakpointByURL) Call ¶
func (m DebuggerSetBreakpointByURL) Call(c Client) (*DebuggerSetBreakpointByURLResult, error)
Call the request.
func (DebuggerSetBreakpointByURL) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBreakpointByURL) ProtoReq() string
ProtoReq name.
type DebuggerSetBreakpointByURLResult ¶
type DebuggerSetBreakpointByURLResult struct { // BreakpointID Id of the created breakpoint for further reference. BreakpointID DebuggerBreakpointID `json:"breakpointId"` // Locations List of the locations this breakpoint resolved into upon addition. Locations []*DebuggerLocation `json:"locations"` }
DebuggerSetBreakpointByURLResult ...
type DebuggerSetBreakpointOnFunctionCall ¶
type DebuggerSetBreakpointOnFunctionCall struct { // ObjectID Function object id. ObjectID RuntimeRemoteObjectID `json:"objectId"` // Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will // stop on the breakpoint if this expression evaluates to true. Condition string `json:"condition,omitempty"` }
DebuggerSetBreakpointOnFunctionCall (experimental) 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 (DebuggerSetBreakpointOnFunctionCall) Call ¶
func (m DebuggerSetBreakpointOnFunctionCall) Call(c Client) (*DebuggerSetBreakpointOnFunctionCallResult, error)
Call the request.
func (DebuggerSetBreakpointOnFunctionCall) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBreakpointOnFunctionCall) ProtoReq() string
ProtoReq name.
type DebuggerSetBreakpointOnFunctionCallResult ¶
type DebuggerSetBreakpointOnFunctionCallResult struct { // BreakpointID Id of the created breakpoint for further reference. BreakpointID DebuggerBreakpointID `json:"breakpointId"` }
DebuggerSetBreakpointOnFunctionCallResult (experimental) ...
type DebuggerSetBreakpointResult ¶
type DebuggerSetBreakpointResult struct { // BreakpointID Id of the created breakpoint for further reference. BreakpointID DebuggerBreakpointID `json:"breakpointId"` // ActualLocation Location this breakpoint resolved into. ActualLocation *DebuggerLocation `json:"actualLocation"` }
DebuggerSetBreakpointResult ...
type DebuggerSetBreakpointsActive ¶
type DebuggerSetBreakpointsActive struct { // Active New value for breakpoints active state. Active bool `json:"active"` }
DebuggerSetBreakpointsActive Activates / deactivates all breakpoints on the page.
func (DebuggerSetBreakpointsActive) Call ¶
func (m DebuggerSetBreakpointsActive) Call(c Client) error
Call sends the request.
func (DebuggerSetBreakpointsActive) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetBreakpointsActive) ProtoReq() string
ProtoReq name.
type DebuggerSetInstrumentationBreakpoint ¶
type DebuggerSetInstrumentationBreakpoint struct { // Instrumentation name. Instrumentation DebuggerSetInstrumentationBreakpointInstrumentation `json:"instrumentation"` }
DebuggerSetInstrumentationBreakpoint Sets instrumentation breakpoint.
func (DebuggerSetInstrumentationBreakpoint) Call ¶
func (m DebuggerSetInstrumentationBreakpoint) Call(c Client) (*DebuggerSetInstrumentationBreakpointResult, error)
Call the request.
func (DebuggerSetInstrumentationBreakpoint) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetInstrumentationBreakpoint) ProtoReq() string
ProtoReq name.
type DebuggerSetInstrumentationBreakpointInstrumentation ¶
type DebuggerSetInstrumentationBreakpointInstrumentation string
DebuggerSetInstrumentationBreakpointInstrumentation enum.
const ( // DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptExecution enum const. DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptExecution DebuggerSetInstrumentationBreakpointInstrumentation = "beforeScriptExecution" // DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptWithSourceMapExecution enum const. DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptWithSourceMapExecution DebuggerSetInstrumentationBreakpointInstrumentation = "beforeScriptWithSourceMapExecution" )
type DebuggerSetInstrumentationBreakpointResult ¶
type DebuggerSetInstrumentationBreakpointResult struct { // BreakpointID Id of the created breakpoint for further reference. BreakpointID DebuggerBreakpointID `json:"breakpointId"` }
DebuggerSetInstrumentationBreakpointResult ...
type DebuggerSetPauseOnExceptions ¶
type DebuggerSetPauseOnExceptions struct { // State Pause on exceptions mode. State DebuggerSetPauseOnExceptionsState `json:"state"` }
DebuggerSetPauseOnExceptions Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, or caught exceptions, no exceptions. Initial pause on exceptions state is `none`.
func (DebuggerSetPauseOnExceptions) Call ¶
func (m DebuggerSetPauseOnExceptions) Call(c Client) error
Call sends the request.
func (DebuggerSetPauseOnExceptions) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetPauseOnExceptions) ProtoReq() string
ProtoReq name.
type DebuggerSetPauseOnExceptionsState ¶
type DebuggerSetPauseOnExceptionsState string
DebuggerSetPauseOnExceptionsState enum.
const ( // DebuggerSetPauseOnExceptionsStateNone enum const. DebuggerSetPauseOnExceptionsStateNone DebuggerSetPauseOnExceptionsState = "none" // DebuggerSetPauseOnExceptionsStateCaught enum const. DebuggerSetPauseOnExceptionsStateCaught DebuggerSetPauseOnExceptionsState = "caught" // DebuggerSetPauseOnExceptionsStateUncaught enum const. DebuggerSetPauseOnExceptionsStateUncaught DebuggerSetPauseOnExceptionsState = "uncaught" // DebuggerSetPauseOnExceptionsStateAll enum const. DebuggerSetPauseOnExceptionsStateAll DebuggerSetPauseOnExceptionsState = "all" )
type DebuggerSetReturnValue ¶
type DebuggerSetReturnValue struct { // NewValue New return value. NewValue *RuntimeCallArgument `json:"newValue"` }
DebuggerSetReturnValue (experimental) Changes return value in top frame. Available only at return break position.
func (DebuggerSetReturnValue) Call ¶
func (m DebuggerSetReturnValue) Call(c Client) error
Call sends the request.
func (DebuggerSetReturnValue) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetReturnValue) ProtoReq() string
ProtoReq name.
type DebuggerSetScriptSource ¶
type DebuggerSetScriptSource struct { // ScriptID Id of the script to edit. ScriptID RuntimeScriptID `json:"scriptId"` // ScriptSource New content of the script. ScriptSource string `json:"scriptSource"` // DryRun (optional) If true the change will not actually be applied. Dry run may be used to get result // description without actually modifying the code. DryRun bool `json:"dryRun,omitempty"` // AllowTopFrameEditing (experimental) (optional) If true, then `scriptSource` is allowed to change the function on top of the stack // as long as the top-most stack frame is the only activation of that function. AllowTopFrameEditing bool `json:"allowTopFrameEditing,omitempty"` }
DebuggerSetScriptSource Edits JavaScript source live.
In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a `Debugger.restartFrame` for the top-most function is automatically triggered.
func (DebuggerSetScriptSource) Call ¶
func (m DebuggerSetScriptSource) Call(c Client) (*DebuggerSetScriptSourceResult, error)
Call the request.
func (DebuggerSetScriptSource) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetScriptSource) ProtoReq() string
ProtoReq name.
type DebuggerSetScriptSourceResult ¶
type DebuggerSetScriptSourceResult struct { // CallFrames (deprecated) (optional) New stack trace in case editing has happened while VM was stopped. CallFrames []*DebuggerCallFrame `json:"callFrames,omitempty"` // StackChanged (deprecated) (optional) Whether current call stack was modified after applying the changes. StackChanged bool `json:"stackChanged,omitempty"` // AsyncStackTrace (deprecated) (optional) Async stack trace, if any. AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"` // AsyncStackTraceID (deprecated) (optional) Async stack trace, if any. AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"` // Status (experimental) Whether the operation was successful or not. Only `Ok` denotes a // successful live edit while the other enum variants denote why // the live edit failed. Status DebuggerSetScriptSourceResultStatus `json:"status"` // ExceptionDetails (optional) Exception details if any. Only present when `status` is `CompileError`. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
DebuggerSetScriptSourceResult ...
type DebuggerSetScriptSourceResultStatus ¶ added in v0.108.0
type DebuggerSetScriptSourceResultStatus string
DebuggerSetScriptSourceResultStatus enum.
const ( // DebuggerSetScriptSourceResultStatusOk enum const. DebuggerSetScriptSourceResultStatusOk DebuggerSetScriptSourceResultStatus = "Ok" // DebuggerSetScriptSourceResultStatusCompileError enum const. DebuggerSetScriptSourceResultStatusCompileError DebuggerSetScriptSourceResultStatus = "CompileError" // DebuggerSetScriptSourceResultStatusBlockedByActiveGenerator enum const. DebuggerSetScriptSourceResultStatusBlockedByActiveGenerator DebuggerSetScriptSourceResultStatus = "BlockedByActiveGenerator" // DebuggerSetScriptSourceResultStatusBlockedByActiveFunction enum const. DebuggerSetScriptSourceResultStatusBlockedByActiveFunction DebuggerSetScriptSourceResultStatus = "BlockedByActiveFunction" // DebuggerSetScriptSourceResultStatusBlockedByTopLevelEsModuleChange enum const. DebuggerSetScriptSourceResultStatusBlockedByTopLevelEsModuleChange DebuggerSetScriptSourceResultStatus = "BlockedByTopLevelEsModuleChange" )
type DebuggerSetSkipAllPauses ¶
type DebuggerSetSkipAllPauses struct { // Skip New value for skip pauses state. Skip bool `json:"skip"` }
DebuggerSetSkipAllPauses Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
func (DebuggerSetSkipAllPauses) Call ¶
func (m DebuggerSetSkipAllPauses) Call(c Client) error
Call sends the request.
func (DebuggerSetSkipAllPauses) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetSkipAllPauses) ProtoReq() string
ProtoReq name.
type DebuggerSetVariableValue ¶
type DebuggerSetVariableValue struct { // ScopeNumber 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' // scope types are allowed. Other scopes could be manipulated manually. ScopeNumber int `json:"scopeNumber"` // VariableName Variable name. VariableName string `json:"variableName"` // NewValue New variable value. NewValue *RuntimeCallArgument `json:"newValue"` // CallFrameID Id of callframe that holds variable. CallFrameID DebuggerCallFrameID `json:"callFrameId"` }
DebuggerSetVariableValue Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
func (DebuggerSetVariableValue) Call ¶
func (m DebuggerSetVariableValue) Call(c Client) error
Call sends the request.
func (DebuggerSetVariableValue) ProtoReq ¶ added in v0.74.0
func (m DebuggerSetVariableValue) ProtoReq() string
ProtoReq name.
type DebuggerStepInto ¶
type DebuggerStepInto struct { // BreakOnAsyncCall (experimental) (optional) Debugger will pause on the execution of the first async task which was scheduled // before next pause. BreakOnAsyncCall bool `json:"breakOnAsyncCall,omitempty"` // SkipList (experimental) (optional) The skipList specifies location ranges that should be skipped on step into. SkipList []*DebuggerLocationRange `json:"skipList,omitempty"` }
DebuggerStepInto Steps into the function call.
func (DebuggerStepInto) Call ¶
func (m DebuggerStepInto) Call(c Client) error
Call sends the request.
func (DebuggerStepInto) ProtoReq ¶ added in v0.74.0
func (m DebuggerStepInto) ProtoReq() string
ProtoReq name.
type DebuggerStepOut ¶
type DebuggerStepOut struct{}
DebuggerStepOut Steps out of the function call.
func (DebuggerStepOut) ProtoReq ¶ added in v0.74.0
func (m DebuggerStepOut) ProtoReq() string
ProtoReq name.
type DebuggerStepOver ¶
type DebuggerStepOver struct { // SkipList (experimental) (optional) The skipList specifies location ranges that should be skipped on step over. SkipList []*DebuggerLocationRange `json:"skipList,omitempty"` }
DebuggerStepOver Steps over the statement.
func (DebuggerStepOver) Call ¶
func (m DebuggerStepOver) Call(c Client) error
Call sends the request.
func (DebuggerStepOver) ProtoReq ¶ added in v0.74.0
func (m DebuggerStepOver) ProtoReq() string
ProtoReq name.
type DebuggerWasmDisassemblyChunk ¶ added in v0.108.2
type DebuggerWasmDisassemblyChunk struct { // Lines The next chunk of disassembled lines. Lines []string `json:"lines"` // BytecodeOffsets The bytecode offsets describing the start of each line. BytecodeOffsets []int `json:"bytecodeOffsets"` }
DebuggerWasmDisassemblyChunk (experimental) ...
type DeviceAccessCancelPrompt ¶ added in v0.112.9
type DeviceAccessCancelPrompt struct { // ID ... ID DeviceAccessRequestID `json:"id"` }
DeviceAccessCancelPrompt Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
func (DeviceAccessCancelPrompt) Call ¶ added in v0.112.9
func (m DeviceAccessCancelPrompt) Call(c Client) error
Call sends the request.
func (DeviceAccessCancelPrompt) ProtoReq ¶ added in v0.112.9
func (m DeviceAccessCancelPrompt) ProtoReq() string
ProtoReq name.
type DeviceAccessDeviceID ¶ added in v0.112.9
type DeviceAccessDeviceID string
DeviceAccessDeviceID A device id.
type DeviceAccessDeviceRequestPrompted ¶ added in v0.112.9
type DeviceAccessDeviceRequestPrompted struct { // ID ... ID DeviceAccessRequestID `json:"id"` // Devices ... Devices []*DeviceAccessPromptDevice `json:"devices"` }
DeviceAccessDeviceRequestPrompted A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.
func (DeviceAccessDeviceRequestPrompted) ProtoEvent ¶ added in v0.112.9
func (evt DeviceAccessDeviceRequestPrompted) ProtoEvent() string
ProtoEvent name.
type DeviceAccessDisable ¶ added in v0.112.9
type DeviceAccessDisable struct{}
DeviceAccessDisable Disable events in this domain.
func (DeviceAccessDisable) Call ¶ added in v0.112.9
func (m DeviceAccessDisable) Call(c Client) error
Call sends the request.
func (DeviceAccessDisable) ProtoReq ¶ added in v0.112.9
func (m DeviceAccessDisable) ProtoReq() string
ProtoReq name.
type DeviceAccessEnable ¶ added in v0.112.9
type DeviceAccessEnable struct{}
DeviceAccessEnable Enable events in this domain.
func (DeviceAccessEnable) Call ¶ added in v0.112.9
func (m DeviceAccessEnable) Call(c Client) error
Call sends the request.
func (DeviceAccessEnable) ProtoReq ¶ added in v0.112.9
func (m DeviceAccessEnable) ProtoReq() string
ProtoReq name.
type DeviceAccessPromptDevice ¶ added in v0.112.9
type DeviceAccessPromptDevice struct { // ID ... ID DeviceAccessDeviceID `json:"id"` // Name Display name as it appears in a device request user prompt. Name string `json:"name"` }
DeviceAccessPromptDevice Device information displayed in a user prompt to select a device.
type DeviceAccessRequestID ¶ added in v0.112.9
type DeviceAccessRequestID string
DeviceAccessRequestID Device request id.
type DeviceAccessSelectPrompt ¶ added in v0.112.9
type DeviceAccessSelectPrompt struct { // ID ... ID DeviceAccessRequestID `json:"id"` // DeviceID ... DeviceID DeviceAccessDeviceID `json:"deviceId"` }
DeviceAccessSelectPrompt Select a device in response to a DeviceAccess.deviceRequestPrompted event.
func (DeviceAccessSelectPrompt) Call ¶ added in v0.112.9
func (m DeviceAccessSelectPrompt) Call(c Client) error
Call sends the request.
func (DeviceAccessSelectPrompt) ProtoReq ¶ added in v0.112.9
func (m DeviceAccessSelectPrompt) ProtoReq() string
ProtoReq name.
type DeviceOrientationClearDeviceOrientationOverride ¶
type DeviceOrientationClearDeviceOrientationOverride struct{}
DeviceOrientationClearDeviceOrientationOverride Clears the overridden Device Orientation.
func (DeviceOrientationClearDeviceOrientationOverride) Call ¶
func (m DeviceOrientationClearDeviceOrientationOverride) Call(c Client) error
Call sends the request.
func (DeviceOrientationClearDeviceOrientationOverride) ProtoReq ¶ added in v0.74.0
func (m DeviceOrientationClearDeviceOrientationOverride) ProtoReq() string
ProtoReq name.
type DeviceOrientationSetDeviceOrientationOverride ¶
type DeviceOrientationSetDeviceOrientationOverride struct { // Alpha Mock alpha Alpha float64 `json:"alpha"` // Beta Mock beta Beta float64 `json:"beta"` // Gamma Mock gamma Gamma float64 `json:"gamma"` }
DeviceOrientationSetDeviceOrientationOverride Overrides the Device Orientation.
func (DeviceOrientationSetDeviceOrientationOverride) Call ¶
func (m DeviceOrientationSetDeviceOrientationOverride) Call(c Client) error
Call sends the request.
func (DeviceOrientationSetDeviceOrientationOverride) ProtoReq ¶ added in v0.74.0
func (m DeviceOrientationSetDeviceOrientationOverride) ProtoReq() string
ProtoReq name.
type EmulationCanEmulate ¶
type EmulationCanEmulate struct{}
EmulationCanEmulate (deprecated) Tells whether emulation is supported.
func (EmulationCanEmulate) Call ¶
func (m EmulationCanEmulate) Call(c Client) (*EmulationCanEmulateResult, error)
Call the request.
func (EmulationCanEmulate) ProtoReq ¶ added in v0.74.0
func (m EmulationCanEmulate) ProtoReq() string
ProtoReq name.
type EmulationCanEmulateResult ¶
type EmulationCanEmulateResult struct { // Result True if emulation is supported. Result bool `json:"result"` }
EmulationCanEmulateResult (deprecated) ...
type EmulationClearDeviceMetricsOverride ¶
type EmulationClearDeviceMetricsOverride struct{}
EmulationClearDeviceMetricsOverride Clears the overridden device metrics.
func (EmulationClearDeviceMetricsOverride) Call ¶
func (m EmulationClearDeviceMetricsOverride) Call(c Client) error
Call sends the request.
func (EmulationClearDeviceMetricsOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationClearDeviceMetricsOverride) ProtoReq() string
ProtoReq name.
type EmulationClearDevicePostureOverride ¶ added in v0.116.0
type EmulationClearDevicePostureOverride struct{}
EmulationClearDevicePostureOverride (experimental) Clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set.
func (EmulationClearDevicePostureOverride) Call ¶ added in v0.116.0
func (m EmulationClearDevicePostureOverride) Call(c Client) error
Call sends the request.
func (EmulationClearDevicePostureOverride) ProtoReq ¶ added in v0.116.0
func (m EmulationClearDevicePostureOverride) ProtoReq() string
ProtoReq name.
type EmulationClearGeolocationOverride ¶
type EmulationClearGeolocationOverride struct{}
EmulationClearGeolocationOverride Clears the overridden Geolocation Position and Error.
func (EmulationClearGeolocationOverride) Call ¶
func (m EmulationClearGeolocationOverride) Call(c Client) error
Call sends the request.
func (EmulationClearGeolocationOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationClearGeolocationOverride) ProtoReq() string
ProtoReq name.
type EmulationClearIdleOverride ¶ added in v0.72.0
type EmulationClearIdleOverride struct{}
EmulationClearIdleOverride Clears Idle state overrides.
func (EmulationClearIdleOverride) Call ¶ added in v0.72.0
func (m EmulationClearIdleOverride) Call(c Client) error
Call sends the request.
func (EmulationClearIdleOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationClearIdleOverride) ProtoReq() string
ProtoReq name.
type EmulationDevicePosture ¶ added in v0.115.0
type EmulationDevicePosture struct { // Type Current posture of the device Type EmulationDevicePostureType `json:"type"` }
EmulationDevicePosture ...
type EmulationDevicePostureType ¶ added in v0.115.0
type EmulationDevicePostureType string
EmulationDevicePostureType enum.
const ( // EmulationDevicePostureTypeContinuous enum const. EmulationDevicePostureTypeContinuous EmulationDevicePostureType = "continuous" // EmulationDevicePostureTypeFolded enum const. EmulationDevicePostureTypeFolded EmulationDevicePostureType = "folded" )
type EmulationDisabledImageType ¶ added in v0.90.0
type EmulationDisabledImageType string
EmulationDisabledImageType (experimental) Enum of image types that can be disabled.
const ( // EmulationDisabledImageTypeAvif enum const. EmulationDisabledImageTypeAvif EmulationDisabledImageType = "avif" // EmulationDisabledImageTypeWebp enum const. EmulationDisabledImageTypeWebp EmulationDisabledImageType = "webp" )
type EmulationDisplayFeature ¶ added in v0.72.0
type EmulationDisplayFeature struct { // Orientation of a display feature in relation to screen Orientation EmulationDisplayFeatureOrientation `json:"orientation"` // Offset The offset from the screen origin in either the x (for vertical // orientation) or y (for horizontal orientation) direction. Offset int `json:"offset"` // MaskLength A display feature may mask content such that it is not physically // displayed - this length along with the offset describes this area. // A display feature that only splits content will have a 0 mask_length. MaskLength int `json:"maskLength"` }
EmulationDisplayFeature ...
type EmulationDisplayFeatureOrientation ¶ added in v0.72.0
type EmulationDisplayFeatureOrientation string
EmulationDisplayFeatureOrientation enum.
const ( // EmulationDisplayFeatureOrientationVertical enum const. EmulationDisplayFeatureOrientationVertical EmulationDisplayFeatureOrientation = "vertical" // EmulationDisplayFeatureOrientationHorizontal enum const. EmulationDisplayFeatureOrientationHorizontal EmulationDisplayFeatureOrientation = "horizontal" )
type EmulationGetOverriddenSensorInformation ¶ added in v0.115.0
type EmulationGetOverriddenSensorInformation struct { // Type ... Type EmulationSensorType `json:"type"` }
EmulationGetOverriddenSensorInformation (experimental) ...
func (EmulationGetOverriddenSensorInformation) Call ¶ added in v0.115.0
func (m EmulationGetOverriddenSensorInformation) Call(c Client) (*EmulationGetOverriddenSensorInformationResult, error)
Call the request.
func (EmulationGetOverriddenSensorInformation) ProtoReq ¶ added in v0.115.0
func (m EmulationGetOverriddenSensorInformation) ProtoReq() string
ProtoReq name.
type EmulationGetOverriddenSensorInformationResult ¶ added in v0.115.0
type EmulationGetOverriddenSensorInformationResult struct { // RequestedSamplingFrequency ... RequestedSamplingFrequency float64 `json:"requestedSamplingFrequency"` }
EmulationGetOverriddenSensorInformationResult (experimental) ...
type EmulationMediaFeature ¶
type EmulationMediaFeature struct { // Name ... Name string `json:"name"` // Value ... Value string `json:"value"` }
EmulationMediaFeature ...
type EmulationResetPageScaleFactor ¶
type EmulationResetPageScaleFactor struct{}
EmulationResetPageScaleFactor (experimental) Requests that page scale factor is reset to initial values.
func (EmulationResetPageScaleFactor) Call ¶
func (m EmulationResetPageScaleFactor) Call(c Client) error
Call sends the request.
func (EmulationResetPageScaleFactor) ProtoReq ¶ added in v0.74.0
func (m EmulationResetPageScaleFactor) ProtoReq() string
ProtoReq name.
type EmulationScreenOrientation ¶
type EmulationScreenOrientation struct { // Type Orientation type. Type EmulationScreenOrientationType `json:"type"` // Angle Orientation angle. Angle int `json:"angle"` }
EmulationScreenOrientation Screen orientation.
type EmulationScreenOrientationType ¶
type EmulationScreenOrientationType string
EmulationScreenOrientationType enum.
const ( // EmulationScreenOrientationTypePortraitPrimary enum const. EmulationScreenOrientationTypePortraitPrimary EmulationScreenOrientationType = "portraitPrimary" // EmulationScreenOrientationTypePortraitSecondary enum const. EmulationScreenOrientationTypePortraitSecondary EmulationScreenOrientationType = "portraitSecondary" // EmulationScreenOrientationTypeLandscapePrimary enum const. EmulationScreenOrientationTypeLandscapePrimary EmulationScreenOrientationType = "landscapePrimary" // EmulationScreenOrientationTypeLandscapeSecondary enum const. EmulationScreenOrientationTypeLandscapeSecondary EmulationScreenOrientationType = "landscapeSecondary" )
type EmulationSensorMetadata ¶ added in v0.115.0
type EmulationSensorMetadata struct { // Available (optional) ... Available bool `json:"available,omitempty"` // MinimumFrequency (optional) ... MinimumFrequency *float64 `json:"minimumFrequency,omitempty"` // MaximumFrequency (optional) ... MaximumFrequency *float64 `json:"maximumFrequency,omitempty"` }
EmulationSensorMetadata (experimental) ...
type EmulationSensorReading ¶ added in v0.115.0
type EmulationSensorReading struct { // Single (optional) ... Single *EmulationSensorReadingSingle `json:"single,omitempty"` // Xyz (optional) ... Xyz *EmulationSensorReadingXYZ `json:"xyz,omitempty"` // Quaternion (optional) ... Quaternion *EmulationSensorReadingQuaternion `json:"quaternion,omitempty"` }
EmulationSensorReading (experimental) ...
type EmulationSensorReadingQuaternion ¶ added in v0.115.0
type EmulationSensorReadingQuaternion struct { // X ... X float64 `json:"x"` // Y ... Y float64 `json:"y"` // Z ... Z float64 `json:"z"` // W ... W float64 `json:"w"` }
EmulationSensorReadingQuaternion (experimental) ...
type EmulationSensorReadingSingle ¶ added in v0.115.0
type EmulationSensorReadingSingle struct { // Value ... Value float64 `json:"value"` }
EmulationSensorReadingSingle (experimental) ...
type EmulationSensorReadingXYZ ¶ added in v0.115.0
type EmulationSensorReadingXYZ struct { // X ... X float64 `json:"x"` // Y ... Y float64 `json:"y"` // Z ... Z float64 `json:"z"` }
EmulationSensorReadingXYZ (experimental) ...
type EmulationSensorType ¶ added in v0.115.0
type EmulationSensorType string
EmulationSensorType (experimental) Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.
const ( // EmulationSensorTypeAbsoluteOrientation enum const. EmulationSensorTypeAbsoluteOrientation EmulationSensorType = "absolute-orientation" // EmulationSensorTypeAccelerometer enum const. EmulationSensorTypeAccelerometer EmulationSensorType = "accelerometer" // EmulationSensorTypeAmbientLight enum const. EmulationSensorTypeAmbientLight EmulationSensorType = "ambient-light" // EmulationSensorTypeGravity enum const. EmulationSensorTypeGravity EmulationSensorType = "gravity" // EmulationSensorTypeGyroscope enum const. EmulationSensorTypeGyroscope EmulationSensorType = "gyroscope" // EmulationSensorTypeLinearAcceleration enum const. EmulationSensorTypeLinearAcceleration EmulationSensorType = "linear-acceleration" // EmulationSensorTypeMagnetometer enum const. EmulationSensorTypeMagnetometer EmulationSensorType = "magnetometer" // EmulationSensorTypeProximity enum const. EmulationSensorTypeProximity EmulationSensorType = "proximity" // EmulationSensorTypeRelativeOrientation enum const. EmulationSensorTypeRelativeOrientation EmulationSensorType = "relative-orientation" )
type EmulationSetAutoDarkModeOverride ¶ added in v0.102.0
type EmulationSetAutoDarkModeOverride struct { // Enabled (optional) Whether to enable or disable automatic dark mode. // If not specified, any existing override will be cleared. Enabled bool `json:"enabled,omitempty"` }
EmulationSetAutoDarkModeOverride (experimental) Automatically render all web contents using a dark theme.
func (EmulationSetAutoDarkModeOverride) Call ¶ added in v0.102.0
func (m EmulationSetAutoDarkModeOverride) Call(c Client) error
Call sends the request.
func (EmulationSetAutoDarkModeOverride) ProtoReq ¶ added in v0.102.0
func (m EmulationSetAutoDarkModeOverride) ProtoReq() string
ProtoReq name.
type EmulationSetAutomationOverride ¶ added in v0.103.0
type EmulationSetAutomationOverride struct { // Enabled Whether the override should be enabled. Enabled bool `json:"enabled"` }
EmulationSetAutomationOverride (experimental) Allows overriding the automation flag.
func (EmulationSetAutomationOverride) Call ¶ added in v0.103.0
func (m EmulationSetAutomationOverride) Call(c Client) error
Call sends the request.
func (EmulationSetAutomationOverride) ProtoReq ¶ added in v0.103.0
func (m EmulationSetAutomationOverride) ProtoReq() string
ProtoReq name.
type EmulationSetCPUThrottlingRate ¶
type EmulationSetCPUThrottlingRate struct { // Rate Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). Rate float64 `json:"rate"` }
EmulationSetCPUThrottlingRate Enables CPU throttling to emulate slow CPUs.
func (EmulationSetCPUThrottlingRate) Call ¶
func (m EmulationSetCPUThrottlingRate) Call(c Client) error
Call sends the request.
func (EmulationSetCPUThrottlingRate) ProtoReq ¶ added in v0.74.0
func (m EmulationSetCPUThrottlingRate) ProtoReq() string
ProtoReq name.
type EmulationSetDefaultBackgroundColorOverride ¶
type EmulationSetDefaultBackgroundColorOverride struct { // Color (optional) RGBA of the default background color. If not specified, any existing override will be // cleared. Color *DOMRGBA `json:"color,omitempty"` }
EmulationSetDefaultBackgroundColorOverride 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 (EmulationSetDefaultBackgroundColorOverride) Call ¶
func (m EmulationSetDefaultBackgroundColorOverride) Call(c Client) error
Call sends the request.
func (EmulationSetDefaultBackgroundColorOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetDefaultBackgroundColorOverride) ProtoReq() string
ProtoReq name.
type EmulationSetDeviceMetricsOverride ¶
type EmulationSetDeviceMetricsOverride struct { // Width Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. Width int `json:"width"` // Height Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. Height int `json:"height"` // DeviceScaleFactor Overriding device scale factor value. 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Mobile Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text // autosizing and more. Mobile bool `json:"mobile"` // Scale (experimental) (optional) Scale to apply to resulting view image. Scale *float64 `json:"scale,omitempty"` // ScreenWidth (experimental) (optional) Overriding screen width value in pixels (minimum 0, maximum 10000000). ScreenWidth *int `json:"screenWidth,omitempty"` // ScreenHeight (experimental) (optional) Overriding screen height value in pixels (minimum 0, maximum 10000000). ScreenHeight *int `json:"screenHeight,omitempty"` // PositionX (experimental) (optional) Overriding view X position on screen in pixels (minimum 0, maximum 10000000). PositionX *int `json:"positionX,omitempty"` // PositionY (experimental) (optional) Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). PositionY *int `json:"positionY,omitempty"` // DontSetVisibleSize (experimental) (optional) Do not set visible view size, rely upon explicit setVisibleSize call. DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"` // ScreenOrientation (optional) Screen orientation override. ScreenOrientation *EmulationScreenOrientation `json:"screenOrientation,omitempty"` // Viewport (experimental) (optional) If set, the visible area of the page will be overridden to this viewport. This viewport // change is not observed by the page, e.g. viewport-relative elements do not change positions. Viewport *PageViewport `json:"viewport,omitempty"` // DisplayFeature (experimental) (optional) If set, the display feature of a multi-segment screen. If not set, multi-segment support // is turned-off. DisplayFeature *EmulationDisplayFeature `json:"displayFeature,omitempty"` // DevicePosture (deprecated) (experimental) (optional) If set, the posture of a foldable device. If not set the posture is set // to continuous. // Deprecated, use Emulation.setDevicePostureOverride. DevicePosture *EmulationDevicePosture `json:"devicePosture,omitempty"` }
EmulationSetDeviceMetricsOverride 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 (EmulationSetDeviceMetricsOverride) Call ¶
func (m EmulationSetDeviceMetricsOverride) Call(c Client) error
Call sends the request.
func (EmulationSetDeviceMetricsOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetDeviceMetricsOverride) ProtoReq() string
ProtoReq name.
type EmulationSetDevicePostureOverride ¶ added in v0.116.0
type EmulationSetDevicePostureOverride struct { // Posture ... Posture *EmulationDevicePosture `json:"posture"` }
EmulationSetDevicePostureOverride (experimental) Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().
func (EmulationSetDevicePostureOverride) Call ¶ added in v0.116.0
func (m EmulationSetDevicePostureOverride) Call(c Client) error
Call sends the request.
func (EmulationSetDevicePostureOverride) ProtoReq ¶ added in v0.116.0
func (m EmulationSetDevicePostureOverride) ProtoReq() string
ProtoReq name.
type EmulationSetDisabledImageTypes ¶ added in v0.90.0
type EmulationSetDisabledImageTypes struct { // ImageTypes Image types to disable. ImageTypes []EmulationDisabledImageType `json:"imageTypes"` }
EmulationSetDisabledImageTypes (experimental) ...
func (EmulationSetDisabledImageTypes) Call ¶ added in v0.90.0
func (m EmulationSetDisabledImageTypes) Call(c Client) error
Call sends the request.
func (EmulationSetDisabledImageTypes) ProtoReq ¶ added in v0.90.0
func (m EmulationSetDisabledImageTypes) ProtoReq() string
ProtoReq name.
type EmulationSetDocumentCookieDisabled ¶
type EmulationSetDocumentCookieDisabled struct { // Disabled Whether document.coookie API should be disabled. Disabled bool `json:"disabled"` }
EmulationSetDocumentCookieDisabled (experimental) ...
func (EmulationSetDocumentCookieDisabled) Call ¶
func (m EmulationSetDocumentCookieDisabled) Call(c Client) error
Call sends the request.
func (EmulationSetDocumentCookieDisabled) ProtoReq ¶ added in v0.74.0
func (m EmulationSetDocumentCookieDisabled) ProtoReq() string
ProtoReq name.
type EmulationSetEmitTouchEventsForMouse ¶
type EmulationSetEmitTouchEventsForMouse struct { // Enabled Whether touch emulation based on mouse input should be enabled. Enabled bool `json:"enabled"` // Configuration (optional) Touch/gesture events configuration. Default: current platform. Configuration EmulationSetEmitTouchEventsForMouseConfiguration `json:"configuration,omitempty"` }
EmulationSetEmitTouchEventsForMouse (experimental) ...
func (EmulationSetEmitTouchEventsForMouse) Call ¶
func (m EmulationSetEmitTouchEventsForMouse) Call(c Client) error
Call sends the request.
func (EmulationSetEmitTouchEventsForMouse) ProtoReq ¶ added in v0.74.0
func (m EmulationSetEmitTouchEventsForMouse) ProtoReq() string
ProtoReq name.
type EmulationSetEmitTouchEventsForMouseConfiguration ¶
type EmulationSetEmitTouchEventsForMouseConfiguration string
EmulationSetEmitTouchEventsForMouseConfiguration enum.
const ( // EmulationSetEmitTouchEventsForMouseConfigurationMobile enum const. EmulationSetEmitTouchEventsForMouseConfigurationMobile EmulationSetEmitTouchEventsForMouseConfiguration = "mobile" // EmulationSetEmitTouchEventsForMouseConfigurationDesktop enum const. EmulationSetEmitTouchEventsForMouseConfigurationDesktop EmulationSetEmitTouchEventsForMouseConfiguration = "desktop" )
type EmulationSetEmulatedMedia ¶
type EmulationSetEmulatedMedia struct { // Media (optional) Media type to emulate. Empty string disables the override. Media string `json:"media,omitempty"` // Features (optional) Media features to emulate. Features []*EmulationMediaFeature `json:"features,omitempty"` }
EmulationSetEmulatedMedia Emulates the given media type or media feature for CSS media queries.
func (EmulationSetEmulatedMedia) Call ¶
func (m EmulationSetEmulatedMedia) Call(c Client) error
Call sends the request.
func (EmulationSetEmulatedMedia) ProtoReq ¶ added in v0.74.0
func (m EmulationSetEmulatedMedia) ProtoReq() string
ProtoReq name.
type EmulationSetEmulatedVisionDeficiency ¶
type EmulationSetEmulatedVisionDeficiency struct { // Type Vision deficiency to emulate. Order: best-effort emulations come first, followed by any // physiologically accurate emulations for medically recognized color vision deficiencies. Type EmulationSetEmulatedVisionDeficiencyType `json:"type"` }
EmulationSetEmulatedVisionDeficiency Emulates the given vision deficiency.
func (EmulationSetEmulatedVisionDeficiency) Call ¶
func (m EmulationSetEmulatedVisionDeficiency) Call(c Client) error
Call sends the request.
func (EmulationSetEmulatedVisionDeficiency) ProtoReq ¶ added in v0.74.0
func (m EmulationSetEmulatedVisionDeficiency) ProtoReq() string
ProtoReq name.
type EmulationSetEmulatedVisionDeficiencyType ¶
type EmulationSetEmulatedVisionDeficiencyType string
EmulationSetEmulatedVisionDeficiencyType enum.
const ( // EmulationSetEmulatedVisionDeficiencyTypeNone enum const. EmulationSetEmulatedVisionDeficiencyTypeNone EmulationSetEmulatedVisionDeficiencyType = "none" // EmulationSetEmulatedVisionDeficiencyTypeBlurredVision enum const. EmulationSetEmulatedVisionDeficiencyTypeBlurredVision EmulationSetEmulatedVisionDeficiencyType = "blurredVision" // EmulationSetEmulatedVisionDeficiencyTypeReducedContrast enum const. EmulationSetEmulatedVisionDeficiencyTypeReducedContrast EmulationSetEmulatedVisionDeficiencyType = "reducedContrast" // EmulationSetEmulatedVisionDeficiencyTypeAchromatopsia enum const. EmulationSetEmulatedVisionDeficiencyTypeAchromatopsia EmulationSetEmulatedVisionDeficiencyType = "achromatopsia" // EmulationSetEmulatedVisionDeficiencyTypeDeuteranopia enum const. EmulationSetEmulatedVisionDeficiencyTypeDeuteranopia EmulationSetEmulatedVisionDeficiencyType = "deuteranopia" // EmulationSetEmulatedVisionDeficiencyTypeProtanopia enum const. EmulationSetEmulatedVisionDeficiencyTypeProtanopia EmulationSetEmulatedVisionDeficiencyType = "protanopia" // EmulationSetEmulatedVisionDeficiencyTypeTritanopia enum const. EmulationSetEmulatedVisionDeficiencyTypeTritanopia EmulationSetEmulatedVisionDeficiencyType = "tritanopia" )
type EmulationSetFocusEmulationEnabled ¶
type EmulationSetFocusEmulationEnabled struct { // Enabled Whether to enable to disable focus emulation. Enabled bool `json:"enabled"` }
EmulationSetFocusEmulationEnabled (experimental) Enables or disables simulating a focused and active page.
func (EmulationSetFocusEmulationEnabled) Call ¶
func (m EmulationSetFocusEmulationEnabled) Call(c Client) error
Call sends the request.
func (EmulationSetFocusEmulationEnabled) ProtoReq ¶ added in v0.74.0
func (m EmulationSetFocusEmulationEnabled) ProtoReq() string
ProtoReq name.
type EmulationSetGeolocationOverride ¶
type EmulationSetGeolocationOverride struct { // Latitude (optional) Mock latitude Latitude *float64 `json:"latitude,omitempty"` // Longitude (optional) Mock longitude Longitude *float64 `json:"longitude,omitempty"` // Accuracy (optional) Mock accuracy Accuracy *float64 `json:"accuracy,omitempty"` }
EmulationSetGeolocationOverride Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
func (EmulationSetGeolocationOverride) Call ¶
func (m EmulationSetGeolocationOverride) Call(c Client) error
Call sends the request.
func (EmulationSetGeolocationOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetGeolocationOverride) ProtoReq() string
ProtoReq name.
type EmulationSetHardwareConcurrencyOverride ¶ added in v0.107.0
type EmulationSetHardwareConcurrencyOverride struct { // HardwareConcurrency Hardware concurrency to report HardwareConcurrency int `json:"hardwareConcurrency"` }
EmulationSetHardwareConcurrencyOverride (experimental) ...
func (EmulationSetHardwareConcurrencyOverride) Call ¶ added in v0.107.0
func (m EmulationSetHardwareConcurrencyOverride) Call(c Client) error
Call sends the request.
func (EmulationSetHardwareConcurrencyOverride) ProtoReq ¶ added in v0.107.0
func (m EmulationSetHardwareConcurrencyOverride) ProtoReq() string
ProtoReq name.
type EmulationSetIdleOverride ¶ added in v0.72.0
type EmulationSetIdleOverride struct { // IsUserActive Mock isUserActive IsUserActive bool `json:"isUserActive"` // IsScreenUnlocked Mock isScreenUnlocked IsScreenUnlocked bool `json:"isScreenUnlocked"` }
EmulationSetIdleOverride Overrides the Idle state.
func (EmulationSetIdleOverride) Call ¶ added in v0.72.0
func (m EmulationSetIdleOverride) Call(c Client) error
Call sends the request.
func (EmulationSetIdleOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetIdleOverride) ProtoReq() string
ProtoReq name.
type EmulationSetLocaleOverride ¶
type EmulationSetLocaleOverride struct { // Locale (optional) ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and // restores default host system locale. Locale string `json:"locale,omitempty"` }
EmulationSetLocaleOverride (experimental) Overrides default host system locale with the specified one.
func (EmulationSetLocaleOverride) Call ¶
func (m EmulationSetLocaleOverride) Call(c Client) error
Call sends the request.
func (EmulationSetLocaleOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetLocaleOverride) ProtoReq() string
ProtoReq name.
type EmulationSetNavigatorOverrides ¶
type EmulationSetNavigatorOverrides struct { string `json:"platform"` }Platform
EmulationSetNavigatorOverrides (deprecated) (experimental) Overrides value returned by the javascript navigator object.
func (EmulationSetNavigatorOverrides) Call ¶
func (m EmulationSetNavigatorOverrides) Call(c Client) error
Call sends the request.
func (EmulationSetNavigatorOverrides) ProtoReq ¶ added in v0.74.0
func (m EmulationSetNavigatorOverrides) ProtoReq() string
ProtoReq name.
type EmulationSetPageScaleFactor ¶
type EmulationSetPageScaleFactor struct { // PageScaleFactor Page scale factor. PageScaleFactor float64 `json:"pageScaleFactor"` }
EmulationSetPageScaleFactor (experimental) Sets a specified page scale factor.
func (EmulationSetPageScaleFactor) Call ¶
func (m EmulationSetPageScaleFactor) Call(c Client) error
Call sends the request.
func (EmulationSetPageScaleFactor) ProtoReq ¶ added in v0.74.0
func (m EmulationSetPageScaleFactor) ProtoReq() string
ProtoReq name.
type EmulationSetScriptExecutionDisabled ¶
type EmulationSetScriptExecutionDisabled struct { // Value Whether script execution should be disabled in the page. Value bool `json:"value"` }
EmulationSetScriptExecutionDisabled Switches script execution in the page.
func (EmulationSetScriptExecutionDisabled) Call ¶
func (m EmulationSetScriptExecutionDisabled) Call(c Client) error
Call sends the request.
func (EmulationSetScriptExecutionDisabled) ProtoReq ¶ added in v0.74.0
func (m EmulationSetScriptExecutionDisabled) ProtoReq() string
ProtoReq name.
type EmulationSetScrollbarsHidden ¶
type EmulationSetScrollbarsHidden struct { // Hidden Whether scrollbars should be always hidden. Hidden bool `json:"hidden"` }
EmulationSetScrollbarsHidden (experimental) ...
func (EmulationSetScrollbarsHidden) Call ¶
func (m EmulationSetScrollbarsHidden) Call(c Client) error
Call sends the request.
func (EmulationSetScrollbarsHidden) ProtoReq ¶ added in v0.74.0
func (m EmulationSetScrollbarsHidden) ProtoReq() string
ProtoReq name.
type EmulationSetSensorOverrideEnabled ¶ added in v0.115.0
type EmulationSetSensorOverrideEnabled struct { // Enabled ... Enabled bool `json:"enabled"` // Type ... Type EmulationSensorType `json:"type"` // Metadata (optional) ... Metadata *EmulationSensorMetadata `json:"metadata,omitempty"` }
EmulationSetSensorOverrideEnabled (experimental) Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.
func (EmulationSetSensorOverrideEnabled) Call ¶ added in v0.115.0
func (m EmulationSetSensorOverrideEnabled) Call(c Client) error
Call sends the request.
func (EmulationSetSensorOverrideEnabled) ProtoReq ¶ added in v0.115.0
func (m EmulationSetSensorOverrideEnabled) ProtoReq() string
ProtoReq name.
type EmulationSetSensorOverrideReadings ¶ added in v0.115.0
type EmulationSetSensorOverrideReadings struct { // Type ... Type EmulationSensorType `json:"type"` // Reading ... Reading *EmulationSensorReading `json:"reading"` }
EmulationSetSensorOverrideReadings (experimental) Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.
func (EmulationSetSensorOverrideReadings) Call ¶ added in v0.115.0
func (m EmulationSetSensorOverrideReadings) Call(c Client) error
Call sends the request.
func (EmulationSetSensorOverrideReadings) ProtoReq ¶ added in v0.115.0
func (m EmulationSetSensorOverrideReadings) ProtoReq() string
ProtoReq name.
type EmulationSetTimezoneOverride ¶
type EmulationSetTimezoneOverride struct { // TimezoneID The timezone identifier. List of supported timezones: // https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt // If empty, disables the override and restores default host system timezone. TimezoneID string `json:"timezoneId"` }
EmulationSetTimezoneOverride Overrides default host system timezone with the specified one.
func (EmulationSetTimezoneOverride) Call ¶
func (m EmulationSetTimezoneOverride) Call(c Client) error
Call sends the request.
func (EmulationSetTimezoneOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetTimezoneOverride) ProtoReq() string
ProtoReq name.
type EmulationSetTouchEmulationEnabled ¶
type EmulationSetTouchEmulationEnabled struct { // Enabled Whether the touch event emulation should be enabled. Enabled bool `json:"enabled"` // MaxTouchPoints (optional) Maximum touch points supported. Defaults to one. MaxTouchPoints *int `json:"maxTouchPoints,omitempty"` }
EmulationSetTouchEmulationEnabled Enables touch on platforms which do not support them.
func (EmulationSetTouchEmulationEnabled) Call ¶
func (m EmulationSetTouchEmulationEnabled) Call(c Client) error
Call sends the request.
func (EmulationSetTouchEmulationEnabled) ProtoReq ¶ added in v0.74.0
func (m EmulationSetTouchEmulationEnabled) ProtoReq() string
ProtoReq name.
type EmulationSetUserAgentOverride ¶
type EmulationSetUserAgentOverride struct { // UserAgent User agent to use. UserAgent string `json:"userAgent"` // AcceptLanguage (optional) Browser language to emulate. AcceptLanguage string `json:"acceptLanguage,omitempty"` // Platform (optional) The platform navigator.platform should return. Platform string `json:"platform,omitempty"` // UserAgentMetadata (experimental) (optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData UserAgentMetadata *EmulationUserAgentMetadata `json:"userAgentMetadata,omitempty"` }
EmulationSetUserAgentOverride Allows overriding user agent with the given string. `userAgentMetadata` must be set for Client Hint headers to be sent.
func (EmulationSetUserAgentOverride) Call ¶
func (m EmulationSetUserAgentOverride) Call(c Client) error
Call sends the request.
func (EmulationSetUserAgentOverride) ProtoReq ¶ added in v0.74.0
func (m EmulationSetUserAgentOverride) ProtoReq() string
ProtoReq name.
type EmulationSetVirtualTimePolicy ¶
type EmulationSetVirtualTimePolicy struct { // Policy ... Policy EmulationVirtualTimePolicy `json:"policy"` // Budget (optional) If set, after this many virtual milliseconds have elapsed virtual time will be paused and a // virtualTimeBudgetExpired event is sent. Budget *float64 `json:"budget,omitempty"` // MaxVirtualTimeTaskStarvationCount (optional) If set this specifies the maximum number of tasks that can be run before virtual is forced // forwards to prevent deadlock. MaxVirtualTimeTaskStarvationCount *int `json:"maxVirtualTimeTaskStarvationCount,omitempty"` // InitialVirtualTime (optional) If set, base::Time::Now will be overridden to initially return this value. InitialVirtualTime TimeSinceEpoch `json:"initialVirtualTime,omitempty"` }
EmulationSetVirtualTimePolicy (experimental) 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 (EmulationSetVirtualTimePolicy) Call ¶
func (m EmulationSetVirtualTimePolicy) Call(c Client) (*EmulationSetVirtualTimePolicyResult, error)
Call the request.
func (EmulationSetVirtualTimePolicy) ProtoReq ¶ added in v0.74.0
func (m EmulationSetVirtualTimePolicy) ProtoReq() string
ProtoReq name.
type EmulationSetVirtualTimePolicyResult ¶
type EmulationSetVirtualTimePolicyResult struct { // VirtualTimeTicksBase Absolute timestamp at which virtual time was first enabled (up time in milliseconds). VirtualTimeTicksBase float64 `json:"virtualTimeTicksBase"` }
EmulationSetVirtualTimePolicyResult (experimental) ...
type EmulationSetVisibleSize ¶
type EmulationSetVisibleSize struct { // Width Frame width (DIP). Width int `json:"width"` // Height Frame height (DIP). Height int `json:"height"` }
EmulationSetVisibleSize (deprecated) (experimental) 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 (EmulationSetVisibleSize) Call ¶
func (m EmulationSetVisibleSize) Call(c Client) error
Call sends the request.
func (EmulationSetVisibleSize) ProtoReq ¶ added in v0.74.0
func (m EmulationSetVisibleSize) ProtoReq() string
ProtoReq name.
type EmulationUserAgentBrandVersion ¶ added in v0.48.0
type EmulationUserAgentBrandVersion struct { // Brand ... Brand string `json:"brand"` // Version ... Version string `json:"version"` }
EmulationUserAgentBrandVersion (experimental) Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
type EmulationUserAgentMetadata ¶ added in v0.48.0
type EmulationUserAgentMetadata struct { // Brands (optional) Brands appearing in Sec-CH-UA. Brands []*EmulationUserAgentBrandVersion `json:"brands,omitempty"` // FullVersionList (optional) Brands appearing in Sec-CH-UA-Full-Version-List. FullVersionList []*EmulationUserAgentBrandVersion `json:"fullVersionList,omitempty"` // FullVersion (deprecated) (optional) ... FullVersion string `json:"fullVersion,omitempty"` // Platform ... Platform string `json:"platform"` // PlatformVersion ... PlatformVersion string `json:"platformVersion"` // Architecture ... Architecture string `json:"architecture"` // Model ... Model string `json:"model"` // Mobile ... Mobile bool `json:"mobile"` // Bitness (optional) ... Bitness string `json:"bitness,omitempty"` // Wow64 (optional) ... Wow64 bool `json:"wow64,omitempty"` }
EmulationUserAgentMetadata (experimental) Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.
type EmulationVirtualTimeBudgetExpired ¶
type EmulationVirtualTimeBudgetExpired struct{}
EmulationVirtualTimeBudgetExpired (experimental) Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
func (EmulationVirtualTimeBudgetExpired) ProtoEvent ¶ added in v0.72.0
func (evt EmulationVirtualTimeBudgetExpired) ProtoEvent() string
ProtoEvent name.
type EmulationVirtualTimePolicy ¶
type EmulationVirtualTimePolicy string
EmulationVirtualTimePolicy (experimental) advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.
const ( // EmulationVirtualTimePolicyAdvance enum const. EmulationVirtualTimePolicyAdvance EmulationVirtualTimePolicy = "advance" // EmulationVirtualTimePolicyPause enum const. EmulationVirtualTimePolicyPause EmulationVirtualTimePolicy = "pause" // EmulationVirtualTimePolicyPauseIfNetworkFetchesPending enum const. EmulationVirtualTimePolicyPauseIfNetworkFetchesPending EmulationVirtualTimePolicy = "pauseIfNetworkFetchesPending" )
type Event ¶ added in v0.72.0
type Event interface { // ProtoEvent returns the cdp.Event.Method ProtoEvent() string }
Event represents a cdp.Event.Params.
type EventBreakpointsDisable ¶ added in v0.115.0
type EventBreakpointsDisable struct{}
EventBreakpointsDisable Removes all breakpoints.
func (EventBreakpointsDisable) Call ¶ added in v0.115.0
func (m EventBreakpointsDisable) Call(c Client) error
Call sends the request.
func (EventBreakpointsDisable) ProtoReq ¶ added in v0.115.0
func (m EventBreakpointsDisable) ProtoReq() string
ProtoReq name.
type EventBreakpointsRemoveInstrumentationBreakpoint ¶ added in v0.102.0
type EventBreakpointsRemoveInstrumentationBreakpoint struct { // EventName Instrumentation name to stop on. EventName string `json:"eventName"` }
EventBreakpointsRemoveInstrumentationBreakpoint Removes breakpoint on particular native event.
func (EventBreakpointsRemoveInstrumentationBreakpoint) Call ¶ added in v0.102.0
func (m EventBreakpointsRemoveInstrumentationBreakpoint) Call(c Client) error
Call sends the request.
func (EventBreakpointsRemoveInstrumentationBreakpoint) ProtoReq ¶ added in v0.102.0
func (m EventBreakpointsRemoveInstrumentationBreakpoint) ProtoReq() string
ProtoReq name.
type EventBreakpointsSetInstrumentationBreakpoint ¶ added in v0.102.0
type EventBreakpointsSetInstrumentationBreakpoint struct { // EventName Instrumentation name to stop on. EventName string `json:"eventName"` }
EventBreakpointsSetInstrumentationBreakpoint Sets breakpoint on particular native event.
func (EventBreakpointsSetInstrumentationBreakpoint) Call ¶ added in v0.102.0
func (m EventBreakpointsSetInstrumentationBreakpoint) Call(c Client) error
Call sends the request.
func (EventBreakpointsSetInstrumentationBreakpoint) ProtoReq ¶ added in v0.102.0
func (m EventBreakpointsSetInstrumentationBreakpoint) ProtoReq() string
ProtoReq name.
type ExtensionsLoadUnpacked ¶ added in v0.116.0
type ExtensionsLoadUnpacked struct { // Path Absolute file path. Path string `json:"path"` }
ExtensionsLoadUnpacked Installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.
func (ExtensionsLoadUnpacked) Call ¶ added in v0.116.0
func (m ExtensionsLoadUnpacked) Call(c Client) (*ExtensionsLoadUnpackedResult, error)
Call the request.
func (ExtensionsLoadUnpacked) ProtoReq ¶ added in v0.116.0
func (m ExtensionsLoadUnpacked) ProtoReq() string
ProtoReq name.
type ExtensionsLoadUnpackedResult ¶ added in v0.116.0
type ExtensionsLoadUnpackedResult struct { // ID Extension id. ID string `json:"id"` }
ExtensionsLoadUnpackedResult ...
type FedCmAccount ¶ added in v0.112.9
type FedCmAccount struct { // AccountID ... AccountID string `json:"accountId"` // Email ... Email string `json:"email"` // Name ... Name string `json:"name"` // GivenName ... GivenName string `json:"givenName"` // PictureURL ... PictureURL string `json:"pictureUrl"` // IdpConfigURL ... IdpConfigURL string `json:"idpConfigUrl"` // IdpLoginURL ... IdpLoginURL string `json:"idpLoginUrl"` // LoginState ... LoginState FedCmLoginState `json:"loginState"` // TermsOfServiceURL (optional) These two are only set if the loginState is signUp TermsOfServiceURL string `json:"termsOfServiceUrl,omitempty"` // PrivacyPolicyURL (optional) ... PrivacyPolicyURL string `json:"privacyPolicyUrl,omitempty"` }
FedCmAccount Corresponds to IdentityRequestAccount.
type FedCmAccountURLType ¶ added in v0.115.0
type FedCmAccountURLType string
FedCmAccountURLType The URLs that each account has.
const ( // FedCmAccountURLTypeTermsOfService enum const. FedCmAccountURLTypeTermsOfService FedCmAccountURLType = "TermsOfService" // FedCmAccountURLTypePrivacyPolicy enum const. FedCmAccountURLTypePrivacyPolicy FedCmAccountURLType = "PrivacyPolicy" )
type FedCmClickDialogButton ¶ added in v0.115.0
type FedCmClickDialogButton struct { // DialogID ... DialogID string `json:"dialogId"` // DialogButton ... DialogButton FedCmDialogButton `json:"dialogButton"` }
FedCmClickDialogButton ...
func (FedCmClickDialogButton) Call ¶ added in v0.115.0
func (m FedCmClickDialogButton) Call(c Client) error
Call sends the request.
func (FedCmClickDialogButton) ProtoReq ¶ added in v0.115.0
func (m FedCmClickDialogButton) ProtoReq() string
ProtoReq name.
type FedCmDialogButton ¶ added in v0.115.0
type FedCmDialogButton string
FedCmDialogButton The buttons on the FedCM dialog.
const ( // FedCmDialogButtonConfirmIdpLoginContinue enum const. FedCmDialogButtonConfirmIdpLoginContinue FedCmDialogButton = "ConfirmIdpLoginContinue" // FedCmDialogButtonErrorGotIt enum const. FedCmDialogButtonErrorGotIt FedCmDialogButton = "ErrorGotIt" // FedCmDialogButtonErrorMoreDetails enum const. FedCmDialogButtonErrorMoreDetails FedCmDialogButton = "ErrorMoreDetails" )
type FedCmDialogClosed ¶ added in v0.115.0
type FedCmDialogClosed struct { // DialogID ... DialogID string `json:"dialogId"` }
FedCmDialogClosed Triggered when a dialog is closed, either by user action, JS abort, or a command below.
func (FedCmDialogClosed) ProtoEvent ¶ added in v0.115.0
func (evt FedCmDialogClosed) ProtoEvent() string
ProtoEvent name.
type FedCmDialogShown ¶ added in v0.112.9
type FedCmDialogShown struct { // DialogID ... DialogID string `json:"dialogId"` // DialogType ... DialogType FedCmDialogType `json:"dialogType"` // Accounts ... Accounts []*FedCmAccount `json:"accounts"` // Title These exist primarily so that the caller can verify the // RP context was used appropriately. Title string `json:"title"` // Subtitle (optional) ... Subtitle string `json:"subtitle,omitempty"` }
FedCmDialogShown ...
func (FedCmDialogShown) ProtoEvent ¶ added in v0.112.9
func (evt FedCmDialogShown) ProtoEvent() string
ProtoEvent name.
type FedCmDialogType ¶ added in v0.115.0
type FedCmDialogType string
FedCmDialogType The types of FedCM dialogs.
const ( // FedCmDialogTypeAccountChooser enum const. FedCmDialogTypeAccountChooser FedCmDialogType = "AccountChooser" // FedCmDialogTypeAutoReauthn enum const. FedCmDialogTypeAutoReauthn FedCmDialogType = "AutoReauthn" // FedCmDialogTypeConfirmIdpLogin enum const. FedCmDialogTypeConfirmIdpLogin FedCmDialogType = "ConfirmIdpLogin" // FedCmDialogTypeError enum const. FedCmDialogTypeError FedCmDialogType = "Error" )
type FedCmDisable ¶ added in v0.112.9
type FedCmDisable struct{}
FedCmDisable ...
func (FedCmDisable) Call ¶ added in v0.112.9
func (m FedCmDisable) Call(c Client) error
Call sends the request.
func (FedCmDisable) ProtoReq ¶ added in v0.112.9
func (m FedCmDisable) ProtoReq() string
ProtoReq name.
type FedCmDismissDialog ¶ added in v0.112.9
type FedCmDismissDialog struct { // DialogID ... DialogID string `json:"dialogId"` // TriggerCooldown (optional) ... TriggerCooldown bool `json:"triggerCooldown,omitempty"` }
FedCmDismissDialog ...
func (FedCmDismissDialog) Call ¶ added in v0.112.9
func (m FedCmDismissDialog) Call(c Client) error
Call sends the request.
func (FedCmDismissDialog) ProtoReq ¶ added in v0.112.9
func (m FedCmDismissDialog) ProtoReq() string
ProtoReq name.
type FedCmEnable ¶ added in v0.112.9
type FedCmEnable struct { // DisableRejectionDelay (optional) Allows callers to disable the promise rejection delay that would // normally happen, if this is unimportant to what's being tested. // (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in) DisableRejectionDelay bool `json:"disableRejectionDelay,omitempty"` }
FedCmEnable ...
func (FedCmEnable) Call ¶ added in v0.112.9
func (m FedCmEnable) Call(c Client) error
Call sends the request.
func (FedCmEnable) ProtoReq ¶ added in v0.112.9
func (m FedCmEnable) ProtoReq() string
ProtoReq name.
type FedCmLoginState ¶ added in v0.112.9
type FedCmLoginState string
FedCmLoginState Whether this is a sign-up or sign-in action for this account, i.e. whether this account has ever been used to sign in to this RP before.
const ( // FedCmLoginStateSignIn enum const. FedCmLoginStateSignIn FedCmLoginState = "SignIn" // FedCmLoginStateSignUp enum const. FedCmLoginStateSignUp FedCmLoginState = "SignUp" )
type FedCmOpenURL ¶ added in v0.115.0
type FedCmOpenURL struct { // DialogID ... DialogID string `json:"dialogId"` // AccountIndex ... AccountIndex int `json:"accountIndex"` // AccountURLType ... AccountURLType FedCmAccountURLType `json:"accountUrlType"` }
FedCmOpenURL ...
func (FedCmOpenURL) Call ¶ added in v0.115.0
func (m FedCmOpenURL) Call(c Client) error
Call sends the request.
func (FedCmOpenURL) ProtoReq ¶ added in v0.115.0
func (m FedCmOpenURL) ProtoReq() string
ProtoReq name.
type FedCmResetCooldown ¶ added in v0.112.9
type FedCmResetCooldown struct{}
FedCmResetCooldown Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.
func (FedCmResetCooldown) Call ¶ added in v0.112.9
func (m FedCmResetCooldown) Call(c Client) error
Call sends the request.
func (FedCmResetCooldown) ProtoReq ¶ added in v0.112.9
func (m FedCmResetCooldown) ProtoReq() string
ProtoReq name.
type FedCmSelectAccount ¶ added in v0.112.9
type FedCmSelectAccount struct { // DialogID ... DialogID string `json:"dialogId"` // AccountIndex ... AccountIndex int `json:"accountIndex"` }
FedCmSelectAccount ...
func (FedCmSelectAccount) Call ¶ added in v0.112.9
func (m FedCmSelectAccount) Call(c Client) error
Call sends the request.
func (FedCmSelectAccount) ProtoReq ¶ added in v0.112.9
func (m FedCmSelectAccount) ProtoReq() string
ProtoReq name.
type FetchAuthChallenge ¶
type FetchAuthChallenge struct { // Source (optional) Source of the authentication challenge. Source FetchAuthChallengeSource `json:"source,omitempty"` // Origin of the challenger. Origin string `json:"origin"` // Scheme The authentication scheme used, such as basic or digest Scheme string `json:"scheme"` // Realm The realm of the challenge. May be empty. Realm string `json:"realm"` }
FetchAuthChallenge Authorization challenge for HTTP status code 401 or 407.
type FetchAuthChallengeResponse ¶
type FetchAuthChallengeResponse struct { // Response The decision on what to do in response to the authorization challenge. Default means // deferring to the default behavior of the net stack, which will likely either the Cancel // authentication or display a popup dialog box. Response FetchAuthChallengeResponseResponse `json:"response"` // Username (optional) The username to provide, possibly empty. Should only be set if response is // ProvideCredentials. Username string `json:"username,omitempty"` // Password (optional) The password to provide, possibly empty. Should only be set if response is // ProvideCredentials. Password string `json:"password,omitempty"` }
FetchAuthChallengeResponse Response to an AuthChallenge.
type FetchAuthChallengeResponseResponse ¶
type FetchAuthChallengeResponseResponse string
FetchAuthChallengeResponseResponse enum.
const ( // FetchAuthChallengeResponseResponseDefault enum const. FetchAuthChallengeResponseResponseDefault FetchAuthChallengeResponseResponse = "Default" // FetchAuthChallengeResponseResponseCancelAuth enum const. FetchAuthChallengeResponseResponseCancelAuth FetchAuthChallengeResponseResponse = "CancelAuth" // FetchAuthChallengeResponseResponseProvideCredentials enum const. FetchAuthChallengeResponseResponseProvideCredentials FetchAuthChallengeResponseResponse = "ProvideCredentials" )
type FetchAuthChallengeSource ¶
type FetchAuthChallengeSource string
FetchAuthChallengeSource enum.
const ( // FetchAuthChallengeSourceServer enum const. FetchAuthChallengeSourceServer FetchAuthChallengeSource = "Server" // FetchAuthChallengeSourceProxy enum const. FetchAuthChallengeSourceProxy FetchAuthChallengeSource = "Proxy" )
type FetchAuthRequired ¶
type FetchAuthRequired struct { // RequestID Each request the page makes will have a unique id. RequestID FetchRequestID `json:"requestId"` // Request The details of the request. Request *NetworkRequest `json:"request"` // FrameID The id of the frame that initiated the request. FrameID PageFrameID `json:"frameId"` // ResourceType How the requested resource will be used. ResourceType NetworkResourceType `json:"resourceType"` // AuthChallenge Details of the Authorization Challenge encountered. // If this is set, client should respond with continueRequest that // contains AuthChallengeResponse. AuthChallenge *FetchAuthChallenge `json:"authChallenge"` }
FetchAuthRequired Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.
func (FetchAuthRequired) ProtoEvent ¶ added in v0.72.0
func (evt FetchAuthRequired) ProtoEvent() string
ProtoEvent name.
type FetchContinueRequest ¶
type FetchContinueRequest struct { // RequestID An id the client received in requestPaused event. RequestID FetchRequestID `json:"requestId"` // URL (optional) If set, the request url will be modified in a way that's not observable by page. URL string `json:"url,omitempty"` // Method (optional) If set, the request method is overridden. Method string `json:"method,omitempty"` // PostData (optional) If set, overrides the post data in the request. PostData []byte `json:"postData,omitempty"` // Headers (optional) If set, overrides the request headers. Note that the overrides do not // extend to subsequent redirect hops, if a redirect happens. Another override // may be applied to a different request produced by a redirect. Headers []*FetchHeaderEntry `json:"headers,omitempty"` // InterceptResponse (experimental) (optional) If set, overrides response interception behavior for this request. InterceptResponse bool `json:"interceptResponse,omitempty"` }
FetchContinueRequest Continues the request, optionally modifying some of its parameters.
func (FetchContinueRequest) Call ¶
func (m FetchContinueRequest) Call(c Client) error
Call sends the request.
func (FetchContinueRequest) ProtoReq ¶ added in v0.74.0
func (m FetchContinueRequest) ProtoReq() string
ProtoReq name.
type FetchContinueResponse ¶ added in v0.102.0
type FetchContinueResponse struct { // RequestID An id the client received in requestPaused event. RequestID FetchRequestID `json:"requestId"` // ResponseCode (optional) An HTTP response code. If absent, original response code will be used. ResponseCode *int `json:"responseCode,omitempty"` // ResponsePhrase (optional) A textual representation of responseCode. // If absent, a standard phrase matching responseCode is used. ResponsePhrase string `json:"responsePhrase,omitempty"` // ResponseHeaders (optional) Response headers. If absent, original response headers will be used. ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"` // BinaryResponseHeaders (optional) Alternative way of specifying response headers as a \0-separated // series of name: value pairs. Prefer the above method unless you // need to represent some non-UTF8 values that can't be transmitted // over the protocol as text. BinaryResponseHeaders []byte `json:"binaryResponseHeaders,omitempty"` }
FetchContinueResponse (experimental) Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.
func (FetchContinueResponse) Call ¶ added in v0.102.0
func (m FetchContinueResponse) Call(c Client) error
Call sends the request.
func (FetchContinueResponse) ProtoReq ¶ added in v0.102.0
func (m FetchContinueResponse) ProtoReq() string
ProtoReq name.
type FetchContinueWithAuth ¶
type FetchContinueWithAuth struct { // RequestID An id the client received in authRequired event. RequestID FetchRequestID `json:"requestId"` // AuthChallengeResponse Response to with an authChallenge. AuthChallengeResponse *FetchAuthChallengeResponse `json:"authChallengeResponse"` }
FetchContinueWithAuth Continues a request supplying authChallengeResponse following authRequired event.
func (FetchContinueWithAuth) Call ¶
func (m FetchContinueWithAuth) Call(c Client) error
Call sends the request.
func (FetchContinueWithAuth) ProtoReq ¶ added in v0.74.0
func (m FetchContinueWithAuth) ProtoReq() string
ProtoReq name.
type FetchDisable ¶
type FetchDisable struct{}
FetchDisable Disables the fetch domain.
func (FetchDisable) ProtoReq ¶ added in v0.74.0
func (m FetchDisable) ProtoReq() string
ProtoReq name.
type FetchEnable ¶
type FetchEnable struct { // Patterns (optional) If specified, only requests matching any of these patterns will produce // fetchRequested event and will be paused until clients response. If not set, // all requests will be affected. Patterns []*FetchRequestPattern `json:"patterns,omitempty"` // HandleAuthRequests (optional) If true, authRequired events will be issued and requests will be paused // expecting a call to continueWithAuth. HandleAuthRequests bool `json:"handleAuthRequests,omitempty"` }
FetchEnable Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
func (FetchEnable) ProtoReq ¶ added in v0.74.0
func (m FetchEnable) ProtoReq() string
ProtoReq name.
type FetchFailRequest ¶
type FetchFailRequest struct { // RequestID An id the client received in requestPaused event. RequestID FetchRequestID `json:"requestId"` // ErrorReason Causes the request to fail with the given reason. ErrorReason NetworkErrorReason `json:"errorReason"` }
FetchFailRequest Causes the request to fail with specified reason.
func (FetchFailRequest) Call ¶
func (m FetchFailRequest) Call(c Client) error
Call sends the request.
func (FetchFailRequest) ProtoReq ¶ added in v0.74.0
func (m FetchFailRequest) ProtoReq() string
ProtoReq name.
type FetchFulfillRequest ¶
type FetchFulfillRequest struct { // RequestID An id the client received in requestPaused event. RequestID FetchRequestID `json:"requestId"` // ResponseCode An HTTP response code. ResponseCode int `json:"responseCode"` // ResponseHeaders (optional) Response headers. ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"` // BinaryResponseHeaders (optional) Alternative way of specifying response headers as a \0-separated // series of name: value pairs. Prefer the above method unless you // need to represent some non-UTF8 values that can't be transmitted // over the protocol as text. BinaryResponseHeaders []byte `json:"binaryResponseHeaders,omitempty"` // Body A response body. If absent, original response body will be used if // the request is intercepted at the response stage and empty body // will be used if the request is intercepted at the request stage. Body []byte `json:"body"` // ResponsePhrase (optional) A textual representation of responseCode. // If absent, a standard phrase matching responseCode is used. ResponsePhrase string `json:"responsePhrase,omitempty"` }
FetchFulfillRequest Provides response to the request.
func (FetchFulfillRequest) Call ¶
func (m FetchFulfillRequest) Call(c Client) error
Call sends the request.
func (FetchFulfillRequest) ProtoReq ¶ added in v0.74.0
func (m FetchFulfillRequest) ProtoReq() string
ProtoReq name.
type FetchGetResponseBody ¶
type FetchGetResponseBody struct { // RequestID Identifier for the intercepted request to get body for. RequestID FetchRequestID `json:"requestId"` }
FetchGetResponseBody 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. Note that the response body is not available for redirects. Requests paused in the _redirect received_ state may be differentiated by `responseCode` and presence of `location` response header, see comments to `requestPaused` for details.
func (FetchGetResponseBody) Call ¶
func (m FetchGetResponseBody) Call(c Client) (*FetchGetResponseBodyResult, error)
Call the request.
func (FetchGetResponseBody) ProtoReq ¶ added in v0.74.0
func (m FetchGetResponseBody) ProtoReq() string
ProtoReq name.
type FetchGetResponseBodyResult ¶
type FetchGetResponseBodyResult struct { // Body Response body. Body string `json:"body"` // Base64Encoded True, if content was sent as base64. Base64Encoded bool `json:"base64Encoded"` }
FetchGetResponseBodyResult ...
type FetchHeaderEntry ¶
type FetchHeaderEntry struct { // Name ... Name string `json:"name"` // Value ... Value string `json:"value"` }
FetchHeaderEntry Response HTTP header entry.
type FetchRequestPattern ¶
type FetchRequestPattern struct { // URLPattern (optional) Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is // backslash. Omitting is equivalent to `"*"`. URLPattern string `json:"urlPattern,omitempty"` // ResourceType (optional) If set, only requests for matching resource types will be intercepted. ResourceType NetworkResourceType `json:"resourceType,omitempty"` // RequestStage (optional) Stage at which to begin intercepting requests. Default is Request. RequestStage FetchRequestStage `json:"requestStage,omitempty"` }
FetchRequestPattern ...
type FetchRequestPaused ¶
type FetchRequestPaused struct { // RequestID Each request the page makes will have a unique id. RequestID FetchRequestID `json:"requestId"` // Request The details of the request. Request *NetworkRequest `json:"request"` // FrameID The id of the frame that initiated the request. FrameID PageFrameID `json:"frameId"` // ResourceType How the requested resource will be used. ResourceType NetworkResourceType `json:"resourceType"` // ResponseErrorReason (optional) Response error if intercepted at response stage. ResponseErrorReason NetworkErrorReason `json:"responseErrorReason,omitempty"` // ResponseStatusCode (optional) Response code if intercepted at response stage. ResponseStatusCode *int `json:"responseStatusCode,omitempty"` // ResponseStatusText (optional) Response status text if intercepted at response stage. ResponseStatusText string `json:"responseStatusText,omitempty"` // ResponseHeaders (optional) Response headers if intercepted at the response stage. ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"` // NetworkID (optional) If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, // then this networkId will be the same as the requestId present in the requestWillBeSent event. NetworkID NetworkRequestID `json:"networkId,omitempty"` // RedirectedRequestID (experimental) (optional) If the request is due to a redirect response from the server, the id of the request that // has caused the redirect. RedirectedRequestID FetchRequestID `json:"redirectedRequestId,omitempty"` }
FetchRequestPaused Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with presence of the `location` header. Requests resulting from a redirect will have `redirectedRequestId` field set.
func (FetchRequestPaused) ProtoEvent ¶ added in v0.72.0
func (evt FetchRequestPaused) ProtoEvent() string
ProtoEvent name.
type FetchRequestStage ¶
type FetchRequestStage string
FetchRequestStage Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received).
const ( // FetchRequestStageRequest enum const. FetchRequestStageRequest FetchRequestStage = "Request" // FetchRequestStageResponse enum const. FetchRequestStageResponse FetchRequestStage = "Response" )
type FetchTakeResponseBodyAsStream ¶
type FetchTakeResponseBodyAsStream struct { // RequestID ... RequestID FetchRequestID `json:"requestId"` }
FetchTakeResponseBodyAsStream 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 (FetchTakeResponseBodyAsStream) Call ¶
func (m FetchTakeResponseBodyAsStream) Call(c Client) (*FetchTakeResponseBodyAsStreamResult, error)
Call the request.
func (FetchTakeResponseBodyAsStream) ProtoReq ¶ added in v0.74.0
func (m FetchTakeResponseBodyAsStream) ProtoReq() string
ProtoReq name.
type FetchTakeResponseBodyAsStreamResult ¶
type FetchTakeResponseBodyAsStreamResult struct { // Stream ... Stream IOStreamHandle `json:"stream"` }
FetchTakeResponseBodyAsStreamResult ...
type HeadlessExperimentalBeginFrame ¶
type HeadlessExperimentalBeginFrame struct { // FrameTimeTicks (optional) Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, // the current time will be used. FrameTimeTicks *float64 `json:"frameTimeTicks,omitempty"` // Interval (optional) The interval between BeginFrames that is reported to the compositor, in milliseconds. // Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. Interval *float64 `json:"interval,omitempty"` // NoDisplayUpdates (optional) Whether updates should not be committed and drawn onto the display. False by default. If // true, only side effects of the BeginFrame will be run, such as layout and animations, but // any visual updates may not be visible on the display or in screenshots. NoDisplayUpdates bool `json:"noDisplayUpdates,omitempty"` // Screenshot (optional) If set, a screenshot of the frame will be captured and returned in the response. Otherwise, // no screenshot will be captured. Note that capturing a screenshot can fail, for example, // during renderer initialization. In such a case, no screenshot data will be returned. Screenshot *HeadlessExperimentalScreenshotParams `json:"screenshot,omitempty"` }
HeadlessExperimentalBeginFrame 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.gle/chrome-headless-rendering for more background.
func (HeadlessExperimentalBeginFrame) Call ¶
func (m HeadlessExperimentalBeginFrame) Call(c Client) (*HeadlessExperimentalBeginFrameResult, error)
Call the request.
func (HeadlessExperimentalBeginFrame) ProtoReq ¶ added in v0.74.0
func (m HeadlessExperimentalBeginFrame) ProtoReq() string
ProtoReq name.
type HeadlessExperimentalBeginFrameResult ¶
type HeadlessExperimentalBeginFrameResult struct { // HasDamage Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the // display. Reported for diagnostic uses, may be removed in the future. HasDamage bool `json:"hasDamage"` // ScreenshotData (optional) Base64-encoded image data of the screenshot, if one was requested and successfully taken. ScreenshotData []byte `json:"screenshotData,omitempty"` }
HeadlessExperimentalBeginFrameResult ...
type HeadlessExperimentalDisable ¶
type HeadlessExperimentalDisable struct{}
HeadlessExperimentalDisable (deprecated) Disables headless events for the target.
func (HeadlessExperimentalDisable) Call ¶
func (m HeadlessExperimentalDisable) Call(c Client) error
Call sends the request.
func (HeadlessExperimentalDisable) ProtoReq ¶ added in v0.74.0
func (m HeadlessExperimentalDisable) ProtoReq() string
ProtoReq name.
type HeadlessExperimentalEnable ¶
type HeadlessExperimentalEnable struct{}
HeadlessExperimentalEnable (deprecated) Enables headless events for the target.
func (HeadlessExperimentalEnable) Call ¶
func (m HeadlessExperimentalEnable) Call(c Client) error
Call sends the request.
func (HeadlessExperimentalEnable) ProtoReq ¶ added in v0.74.0
func (m HeadlessExperimentalEnable) ProtoReq() string
ProtoReq name.
type HeadlessExperimentalScreenshotParams ¶
type HeadlessExperimentalScreenshotParams struct { // Format (optional) Image compression format (defaults to png). Format HeadlessExperimentalScreenshotParamsFormat `json:"format,omitempty"` // Quality (optional) Compression quality from range [0..100] (jpeg and webp only). Quality *int `json:"quality,omitempty"` // OptimizeForSpeed (optional) Optimize image encoding for speed, not for resulting size (defaults to false) OptimizeForSpeed bool `json:"optimizeForSpeed,omitempty"` }
HeadlessExperimentalScreenshotParams Encoding options for a screenshot.
type HeadlessExperimentalScreenshotParamsFormat ¶
type HeadlessExperimentalScreenshotParamsFormat string
HeadlessExperimentalScreenshotParamsFormat enum.
const ( // HeadlessExperimentalScreenshotParamsFormatJpeg enum const. HeadlessExperimentalScreenshotParamsFormatJpeg HeadlessExperimentalScreenshotParamsFormat = "jpeg" // HeadlessExperimentalScreenshotParamsFormatPng enum const. HeadlessExperimentalScreenshotParamsFormatPng HeadlessExperimentalScreenshotParamsFormat = "png" // HeadlessExperimentalScreenshotParamsFormatWebp enum const. HeadlessExperimentalScreenshotParamsFormatWebp HeadlessExperimentalScreenshotParamsFormat = "webp" )
type HeapProfilerAddHeapSnapshotChunk ¶
type HeapProfilerAddHeapSnapshotChunk struct { // Chunk ... Chunk string `json:"chunk"` }
HeapProfilerAddHeapSnapshotChunk ...
func (HeapProfilerAddHeapSnapshotChunk) ProtoEvent ¶ added in v0.72.0
func (evt HeapProfilerAddHeapSnapshotChunk) ProtoEvent() string
ProtoEvent name.
type HeapProfilerAddInspectedHeapObject ¶
type HeapProfilerAddInspectedHeapObject struct { // HeapObjectID Heap snapshot object id to be accessible by means of $x command line API. HeapObjectID HeapProfilerHeapSnapshotObjectID `json:"heapObjectId"` }
HeapProfilerAddInspectedHeapObject Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
func (HeapProfilerAddInspectedHeapObject) Call ¶
func (m HeapProfilerAddInspectedHeapObject) Call(c Client) error
Call sends the request.
func (HeapProfilerAddInspectedHeapObject) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerAddInspectedHeapObject) ProtoReq() string
ProtoReq name.
type HeapProfilerCollectGarbage ¶
type HeapProfilerCollectGarbage struct{}
HeapProfilerCollectGarbage ...
func (HeapProfilerCollectGarbage) Call ¶
func (m HeapProfilerCollectGarbage) Call(c Client) error
Call sends the request.
func (HeapProfilerCollectGarbage) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerCollectGarbage) ProtoReq() string
ProtoReq name.
type HeapProfilerDisable ¶
type HeapProfilerDisable struct{}
HeapProfilerDisable ...
func (HeapProfilerDisable) Call ¶
func (m HeapProfilerDisable) Call(c Client) error
Call sends the request.
func (HeapProfilerDisable) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerDisable) ProtoReq() string
ProtoReq name.
type HeapProfilerEnable ¶
type HeapProfilerEnable struct{}
HeapProfilerEnable ...
func (HeapProfilerEnable) Call ¶
func (m HeapProfilerEnable) Call(c Client) error
Call sends the request.
func (HeapProfilerEnable) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerEnable) ProtoReq() string
ProtoReq name.
type HeapProfilerGetHeapObjectID ¶
type HeapProfilerGetHeapObjectID struct { // ObjectID Identifier of the object to get heap object id for. ObjectID RuntimeRemoteObjectID `json:"objectId"` }
HeapProfilerGetHeapObjectID ...
func (HeapProfilerGetHeapObjectID) Call ¶
func (m HeapProfilerGetHeapObjectID) Call(c Client) (*HeapProfilerGetHeapObjectIDResult, error)
Call the request.
func (HeapProfilerGetHeapObjectID) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerGetHeapObjectID) ProtoReq() string
ProtoReq name.
type HeapProfilerGetHeapObjectIDResult ¶
type HeapProfilerGetHeapObjectIDResult struct { // HeapSnapshotObjectID Id of the heap snapshot object corresponding to the passed remote object id. HeapSnapshotObjectID HeapProfilerHeapSnapshotObjectID `json:"heapSnapshotObjectId"` }
HeapProfilerGetHeapObjectIDResult ...
type HeapProfilerGetObjectByHeapObjectID ¶
type HeapProfilerGetObjectByHeapObjectID struct { // ObjectID ... ObjectID HeapProfilerHeapSnapshotObjectID `json:"objectId"` // ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. ObjectGroup string `json:"objectGroup,omitempty"` }
HeapProfilerGetObjectByHeapObjectID ...
func (HeapProfilerGetObjectByHeapObjectID) Call ¶
func (m HeapProfilerGetObjectByHeapObjectID) Call(c Client) (*HeapProfilerGetObjectByHeapObjectIDResult, error)
Call the request.
func (HeapProfilerGetObjectByHeapObjectID) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerGetObjectByHeapObjectID) ProtoReq() string
ProtoReq name.
type HeapProfilerGetObjectByHeapObjectIDResult ¶
type HeapProfilerGetObjectByHeapObjectIDResult struct { // Result Evaluation result. Result *RuntimeRemoteObject `json:"result"` }
HeapProfilerGetObjectByHeapObjectIDResult ...
type HeapProfilerGetSamplingProfile ¶
type HeapProfilerGetSamplingProfile struct{}
HeapProfilerGetSamplingProfile ...
func (HeapProfilerGetSamplingProfile) Call ¶
func (m HeapProfilerGetSamplingProfile) Call(c Client) (*HeapProfilerGetSamplingProfileResult, error)
Call the request.
func (HeapProfilerGetSamplingProfile) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerGetSamplingProfile) ProtoReq() string
ProtoReq name.
type HeapProfilerGetSamplingProfileResult ¶
type HeapProfilerGetSamplingProfileResult struct { // Profile Return the sampling profile being collected. Profile *HeapProfilerSamplingHeapProfile `json:"profile"` }
HeapProfilerGetSamplingProfileResult ...
type HeapProfilerHeapSnapshotObjectID ¶
type HeapProfilerHeapSnapshotObjectID string
HeapProfilerHeapSnapshotObjectID Heap snapshot object id.
type HeapProfilerHeapStatsUpdate ¶
type HeapProfilerHeapStatsUpdate struct { // StatsUpdate An array of triplets. Each triplet describes a fragment. The first integer is the fragment // index, the second integer is a total count of objects for the fragment, the third integer is // a total size of the objects for the fragment. StatsUpdate []int `json:"statsUpdate"` }
HeapProfilerHeapStatsUpdate If heap objects tracking has been started then backend may send update for one or more fragments.
func (HeapProfilerHeapStatsUpdate) ProtoEvent ¶ added in v0.72.0
func (evt HeapProfilerHeapStatsUpdate) ProtoEvent() string
ProtoEvent name.
type HeapProfilerLastSeenObjectID ¶
type HeapProfilerLastSeenObjectID struct { // LastSeenObjectID ... LastSeenObjectID int `json:"lastSeenObjectId"` // Timestamp ... Timestamp float64 `json:"timestamp"` }
HeapProfilerLastSeenObjectID If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
func (HeapProfilerLastSeenObjectID) ProtoEvent ¶ added in v0.72.0
func (evt HeapProfilerLastSeenObjectID) ProtoEvent() string
ProtoEvent name.
type HeapProfilerReportHeapSnapshotProgress ¶
type HeapProfilerReportHeapSnapshotProgress struct { // Done ... Done int `json:"done"` // Total ... Total int `json:"total"` // Finished (optional) ... Finished bool `json:"finished,omitempty"` }
HeapProfilerReportHeapSnapshotProgress ...
func (HeapProfilerReportHeapSnapshotProgress) ProtoEvent ¶ added in v0.72.0
func (evt HeapProfilerReportHeapSnapshotProgress) ProtoEvent() string
ProtoEvent name.
type HeapProfilerResetProfiles ¶
type HeapProfilerResetProfiles struct{}
HeapProfilerResetProfiles ...
func (HeapProfilerResetProfiles) ProtoEvent ¶ added in v0.72.0
func (evt HeapProfilerResetProfiles) ProtoEvent() string
ProtoEvent name.
type HeapProfilerSamplingHeapProfile ¶
type HeapProfilerSamplingHeapProfile struct { // Head ... Head *HeapProfilerSamplingHeapProfileNode `json:"head"` // Samples ... Samples []*HeapProfilerSamplingHeapProfileSample `json:"samples"` }
HeapProfilerSamplingHeapProfile Sampling profile.
type HeapProfilerSamplingHeapProfileNode ¶
type HeapProfilerSamplingHeapProfileNode struct { // CallFrame Function location. CallFrame *RuntimeCallFrame `json:"callFrame"` // SelfSize Allocations size in bytes for the node excluding children. SelfSize float64 `json:"selfSize"` // ID Node id. Ids are unique across all profiles collected between startSampling and stopSampling. ID int `json:"id"` // Children Child nodes. Children []*HeapProfilerSamplingHeapProfileNode `json:"children"` }
HeapProfilerSamplingHeapProfileNode Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
type HeapProfilerSamplingHeapProfileSample ¶
type HeapProfilerSamplingHeapProfileSample struct { // Size Allocation size in bytes attributed to the sample. Size float64 `json:"size"` // NodeID Id of the corresponding profile tree node. NodeID int `json:"nodeId"` // Ordinal Time-ordered sample ordinal number. It is unique across all profiles retrieved // between startSampling and stopSampling. Ordinal float64 `json:"ordinal"` }
HeapProfilerSamplingHeapProfileSample A single sample from a sampling profile.
type HeapProfilerStartSampling ¶
type HeapProfilerStartSampling struct { // SamplingInterval (optional) Average sample interval in bytes. Poisson distribution is used for the intervals. The // default value is 32768 bytes. SamplingInterval *float64 `json:"samplingInterval,omitempty"` // IncludeObjectsCollectedByMajorGC (optional) By default, the sampling heap profiler reports only objects which are // still alive when the profile is returned via getSamplingProfile or // stopSampling, which is useful for determining what functions contribute // the most to steady-state memory usage. This flag instructs the sampling // heap profiler to also include information about objects discarded by // major GC, which will show which functions cause large temporary memory // usage or long GC pauses. IncludeObjectsCollectedByMajorGC bool `json:"includeObjectsCollectedByMajorGC,omitempty"` // IncludeObjectsCollectedByMinorGC (optional) By default, the sampling heap profiler reports only objects which are // still alive when the profile is returned via getSamplingProfile or // stopSampling, which is useful for determining what functions contribute // the most to steady-state memory usage. This flag instructs the sampling // heap profiler to also include information about objects discarded by // minor GC, which is useful when tuning a latency-sensitive application // for minimal GC activity. IncludeObjectsCollectedByMinorGC bool `json:"includeObjectsCollectedByMinorGC,omitempty"` }
HeapProfilerStartSampling ...
func (HeapProfilerStartSampling) Call ¶
func (m HeapProfilerStartSampling) Call(c Client) error
Call sends the request.
func (HeapProfilerStartSampling) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerStartSampling) ProtoReq() string
ProtoReq name.
type HeapProfilerStartTrackingHeapObjects ¶
type HeapProfilerStartTrackingHeapObjects struct { // TrackAllocations (optional) ... TrackAllocations bool `json:"trackAllocations,omitempty"` }
HeapProfilerStartTrackingHeapObjects ...
func (HeapProfilerStartTrackingHeapObjects) Call ¶
func (m HeapProfilerStartTrackingHeapObjects) Call(c Client) error
Call sends the request.
func (HeapProfilerStartTrackingHeapObjects) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerStartTrackingHeapObjects) ProtoReq() string
ProtoReq name.
type HeapProfilerStopSampling ¶
type HeapProfilerStopSampling struct{}
HeapProfilerStopSampling ...
func (HeapProfilerStopSampling) Call ¶
func (m HeapProfilerStopSampling) Call(c Client) (*HeapProfilerStopSamplingResult, error)
Call the request.
func (HeapProfilerStopSampling) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerStopSampling) ProtoReq() string
ProtoReq name.
type HeapProfilerStopSamplingResult ¶
type HeapProfilerStopSamplingResult struct { // Profile Recorded sampling heap profile. Profile *HeapProfilerSamplingHeapProfile `json:"profile"` }
HeapProfilerStopSamplingResult ...
type HeapProfilerStopTrackingHeapObjects ¶
type HeapProfilerStopTrackingHeapObjects struct { // ReportProgress (optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken // when the tracking is stopped. ReportProgress bool `json:"reportProgress,omitempty"` // TreatGlobalObjectsAsRoots (deprecated) (optional) Deprecated in favor of `exposeInternals`. TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"` // CaptureNumericValue (optional) If true, numerical values are included in the snapshot CaptureNumericValue bool `json:"captureNumericValue,omitempty"` // ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot. ExposeInternals bool `json:"exposeInternals,omitempty"` }
HeapProfilerStopTrackingHeapObjects ...
func (HeapProfilerStopTrackingHeapObjects) Call ¶
func (m HeapProfilerStopTrackingHeapObjects) Call(c Client) error
Call sends the request.
func (HeapProfilerStopTrackingHeapObjects) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerStopTrackingHeapObjects) ProtoReq() string
ProtoReq name.
type HeapProfilerTakeHeapSnapshot ¶
type HeapProfilerTakeHeapSnapshot struct { // ReportProgress (optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. ReportProgress bool `json:"reportProgress,omitempty"` // TreatGlobalObjectsAsRoots (deprecated) (optional) If true, a raw snapshot without artificial roots will be generated. // Deprecated in favor of `exposeInternals`. TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"` // CaptureNumericValue (optional) If true, numerical values are included in the snapshot CaptureNumericValue bool `json:"captureNumericValue,omitempty"` // ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot. ExposeInternals bool `json:"exposeInternals,omitempty"` }
HeapProfilerTakeHeapSnapshot ...
func (HeapProfilerTakeHeapSnapshot) Call ¶
func (m HeapProfilerTakeHeapSnapshot) Call(c Client) error
Call sends the request.
func (HeapProfilerTakeHeapSnapshot) ProtoReq ¶ added in v0.74.0
func (m HeapProfilerTakeHeapSnapshot) ProtoReq() string
ProtoReq name.
type IOClose ¶
type IOClose struct { // Handle of the stream to close. Handle IOStreamHandle `json:"handle"` }
IOClose Close the stream, discard any temporary backing storage.
type IORead ¶
type IORead struct { // Handle of the stream to read. Handle IOStreamHandle `json:"handle"` // Offset (optional) Seek to the specified offset before reading (if not specified, proceed with offset // following the last read). Some types of streams may only support sequential reads. Offset *int `json:"offset,omitempty"` // Size (optional) Maximum number of bytes to read (left upon the agent discretion if not specified). Size *int `json:"size,omitempty"` }
IORead Read a chunk of the stream.
type IOReadResult ¶
type IOReadResult struct { // Base64Encoded (optional) Set if the data is base64-encoded Base64Encoded bool `json:"base64Encoded,omitempty"` // Data that were read. Data string `json:"data"` // EOF Set if the end-of-file condition occurred while reading. EOF bool `json:"eof"` }
IOReadResult ...
type IOResolveBlob ¶
type IOResolveBlob struct { // ObjectID Object id of a Blob object wrapper. ObjectID RuntimeRemoteObjectID `json:"objectId"` }
IOResolveBlob Return UUID of Blob object specified by a remote object id.
func (IOResolveBlob) Call ¶
func (m IOResolveBlob) Call(c Client) (*IOResolveBlobResult, error)
Call the request.
func (IOResolveBlob) ProtoReq ¶ added in v0.74.0
func (m IOResolveBlob) ProtoReq() string
ProtoReq name.
type IOResolveBlobResult ¶
type IOResolveBlobResult struct { // UUID of the specified Blob. UUID string `json:"uuid"` }
IOResolveBlobResult ...
type IOStreamHandle ¶
type IOStreamHandle string
IOStreamHandle This is either obtained from another method or specified as `blob:<uuid>` where `<uuid>` is an UUID of a Blob.
type IndexedDBClearObjectStore ¶
type IndexedDBClearObjectStore struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName Database name. DatabaseName string `json:"databaseName"` // ObjectStoreName Object store name. ObjectStoreName string `json:"objectStoreName"` }
IndexedDBClearObjectStore Clears all entries from an object store.
func (IndexedDBClearObjectStore) Call ¶
func (m IndexedDBClearObjectStore) Call(c Client) error
Call sends the request.
func (IndexedDBClearObjectStore) ProtoReq ¶ added in v0.74.0
func (m IndexedDBClearObjectStore) ProtoReq() string
ProtoReq name.
type IndexedDBDataEntry ¶
type IndexedDBDataEntry struct { // Key object. Key *RuntimeRemoteObject `json:"key"` // PrimaryKey Primary key object. PrimaryKey *RuntimeRemoteObject `json:"primaryKey"` // Value object. Value *RuntimeRemoteObject `json:"value"` }
IndexedDBDataEntry Data entry.
type IndexedDBDatabaseWithObjectStores ¶
type IndexedDBDatabaseWithObjectStores struct { // Name Database name. Name string `json:"name"` // Version Database version (type is not 'integer', as the standard // requires the version number to be 'unsigned long long') Version float64 `json:"version"` // ObjectStores Object stores in this database. ObjectStores []*IndexedDBObjectStore `json:"objectStores"` }
IndexedDBDatabaseWithObjectStores Database with an array of object stores.
type IndexedDBDeleteDatabase ¶
type IndexedDBDeleteDatabase struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName Database name. DatabaseName string `json:"databaseName"` }
IndexedDBDeleteDatabase Deletes a database.
func (IndexedDBDeleteDatabase) Call ¶
func (m IndexedDBDeleteDatabase) Call(c Client) error
Call sends the request.
func (IndexedDBDeleteDatabase) ProtoReq ¶ added in v0.74.0
func (m IndexedDBDeleteDatabase) ProtoReq() string
ProtoReq name.
type IndexedDBDeleteObjectStoreEntries ¶
type IndexedDBDeleteObjectStoreEntries struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName ... DatabaseName string `json:"databaseName"` // ObjectStoreName ... ObjectStoreName string `json:"objectStoreName"` // KeyRange Range of entry keys to delete KeyRange *IndexedDBKeyRange `json:"keyRange"` }
IndexedDBDeleteObjectStoreEntries Delete a range of entries from an object store.
func (IndexedDBDeleteObjectStoreEntries) Call ¶
func (m IndexedDBDeleteObjectStoreEntries) Call(c Client) error
Call sends the request.
func (IndexedDBDeleteObjectStoreEntries) ProtoReq ¶ added in v0.74.0
func (m IndexedDBDeleteObjectStoreEntries) ProtoReq() string
ProtoReq name.
type IndexedDBDisable ¶
type IndexedDBDisable struct{}
IndexedDBDisable Disables events from backend.
func (IndexedDBDisable) Call ¶
func (m IndexedDBDisable) Call(c Client) error
Call sends the request.
func (IndexedDBDisable) ProtoReq ¶ added in v0.74.0
func (m IndexedDBDisable) ProtoReq() string
ProtoReq name.
type IndexedDBEnable ¶
type IndexedDBEnable struct{}
IndexedDBEnable Enables events from backend.
func (IndexedDBEnable) ProtoReq ¶ added in v0.74.0
func (m IndexedDBEnable) ProtoReq() string
ProtoReq name.
type IndexedDBGetMetadata ¶
type IndexedDBGetMetadata struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName Database name. DatabaseName string `json:"databaseName"` // ObjectStoreName Object store name. ObjectStoreName string `json:"objectStoreName"` }
IndexedDBGetMetadata Gets metadata of an object store.
func (IndexedDBGetMetadata) Call ¶
func (m IndexedDBGetMetadata) Call(c Client) (*IndexedDBGetMetadataResult, error)
Call the request.
func (IndexedDBGetMetadata) ProtoReq ¶ added in v0.74.0
func (m IndexedDBGetMetadata) ProtoReq() string
ProtoReq name.
type IndexedDBGetMetadataResult ¶
type IndexedDBGetMetadataResult struct { // EntriesCount the entries count EntriesCount float64 `json:"entriesCount"` // KeyGeneratorValue the current value of key generator, to become the next inserted // key into the object store. Valid if objectStore.autoIncrement // is true. KeyGeneratorValue float64 `json:"keyGeneratorValue"` }
IndexedDBGetMetadataResult ...
type IndexedDBKey ¶
type IndexedDBKey struct { // Type Key type. Type IndexedDBKeyType `json:"type"` // Number (optional) Number value. Number *float64 `json:"number,omitempty"` // String (optional) String value. String string `json:"string,omitempty"` // Date (optional) Date value. Date *float64 `json:"date,omitempty"` // Array (optional) Array value. Array []*IndexedDBKey `json:"array,omitempty"` }
IndexedDBKey Key.
type IndexedDBKeyPath ¶
type IndexedDBKeyPath struct { // Type Key path type. Type IndexedDBKeyPathType `json:"type"` // String (optional) String value. String string `json:"string,omitempty"` // Array (optional) Array value. Array []string `json:"array,omitempty"` }
IndexedDBKeyPath Key path.
type IndexedDBKeyPathType ¶
type IndexedDBKeyPathType string
IndexedDBKeyPathType enum.
const ( // IndexedDBKeyPathTypeNull enum const. IndexedDBKeyPathTypeNull IndexedDBKeyPathType = "null" // IndexedDBKeyPathTypeString enum const. IndexedDBKeyPathTypeString IndexedDBKeyPathType = "string" // IndexedDBKeyPathTypeArray enum const. IndexedDBKeyPathTypeArray IndexedDBKeyPathType = "array" )
type IndexedDBKeyRange ¶
type IndexedDBKeyRange struct { // Lower (optional) Lower bound. Lower *IndexedDBKey `json:"lower,omitempty"` // Upper (optional) Upper bound. Upper *IndexedDBKey `json:"upper,omitempty"` // LowerOpen If true lower bound is open. LowerOpen bool `json:"lowerOpen"` // UpperOpen If true upper bound is open. UpperOpen bool `json:"upperOpen"` }
IndexedDBKeyRange Key range.
type IndexedDBKeyType ¶
type IndexedDBKeyType string
IndexedDBKeyType enum.
const ( // IndexedDBKeyTypeNumber enum const. IndexedDBKeyTypeNumber IndexedDBKeyType = "number" // IndexedDBKeyTypeString enum const. IndexedDBKeyTypeString IndexedDBKeyType = "string" // IndexedDBKeyTypeDate enum const. IndexedDBKeyTypeDate IndexedDBKeyType = "date" // IndexedDBKeyTypeArray enum const. IndexedDBKeyTypeArray IndexedDBKeyType = "array" )
type IndexedDBObjectStore ¶
type IndexedDBObjectStore struct { // Name Object store name. Name string `json:"name"` // KeyPath Object store key path. KeyPath *IndexedDBKeyPath `json:"keyPath"` // AutoIncrement If true, object store has auto increment flag set. AutoIncrement bool `json:"autoIncrement"` // Indexes in this object store. Indexes []*IndexedDBObjectStoreIndex `json:"indexes"` }
IndexedDBObjectStore Object store.
type IndexedDBObjectStoreIndex ¶
type IndexedDBObjectStoreIndex struct { // Name Index name. Name string `json:"name"` // KeyPath Index key path. KeyPath *IndexedDBKeyPath `json:"keyPath"` // Unique If true, index is unique. Unique bool `json:"unique"` // MultiEntry If true, index allows multiple entries for a key. MultiEntry bool `json:"multiEntry"` }
IndexedDBObjectStoreIndex Object store index.
type IndexedDBRequestData ¶
type IndexedDBRequestData struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName Database name. DatabaseName string `json:"databaseName"` // ObjectStoreName Object store name. ObjectStoreName string `json:"objectStoreName"` // IndexName Index name, empty string for object store data requests. IndexName string `json:"indexName"` // SkipCount Number of records to skip. SkipCount int `json:"skipCount"` // PageSize Number of records to fetch. PageSize int `json:"pageSize"` // KeyRange (optional) Key range. KeyRange *IndexedDBKeyRange `json:"keyRange,omitempty"` }
IndexedDBRequestData Requests data from object store or index.
func (IndexedDBRequestData) Call ¶
func (m IndexedDBRequestData) Call(c Client) (*IndexedDBRequestDataResult, error)
Call the request.
func (IndexedDBRequestData) ProtoReq ¶ added in v0.74.0
func (m IndexedDBRequestData) ProtoReq() string
ProtoReq name.
type IndexedDBRequestDataResult ¶
type IndexedDBRequestDataResult struct { // ObjectStoreDataEntries Array of object store data entries. ObjectStoreDataEntries []*IndexedDBDataEntry `json:"objectStoreDataEntries"` // HasMore If true, there are more entries to fetch in the given range. HasMore bool `json:"hasMore"` }
IndexedDBRequestDataResult ...
type IndexedDBRequestDatabase ¶
type IndexedDBRequestDatabase struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` // DatabaseName Database name. DatabaseName string `json:"databaseName"` }
IndexedDBRequestDatabase Requests database with given name in given frame.
func (IndexedDBRequestDatabase) Call ¶
func (m IndexedDBRequestDatabase) Call(c Client) (*IndexedDBRequestDatabaseResult, error)
Call the request.
func (IndexedDBRequestDatabase) ProtoReq ¶ added in v0.74.0
func (m IndexedDBRequestDatabase) ProtoReq() string
ProtoReq name.
type IndexedDBRequestDatabaseNames ¶
type IndexedDBRequestDatabaseNames struct { // SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. // Security origin. SecurityOrigin string `json:"securityOrigin,omitempty"` // StorageKey (optional) Storage key. StorageKey string `json:"storageKey,omitempty"` // StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket. StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"` }
IndexedDBRequestDatabaseNames Requests database names for given security origin.
func (IndexedDBRequestDatabaseNames) Call ¶
func (m IndexedDBRequestDatabaseNames) Call(c Client) (*IndexedDBRequestDatabaseNamesResult, error)
Call the request.
func (IndexedDBRequestDatabaseNames) ProtoReq ¶ added in v0.74.0
func (m IndexedDBRequestDatabaseNames) ProtoReq() string
ProtoReq name.
type IndexedDBRequestDatabaseNamesResult ¶
type IndexedDBRequestDatabaseNamesResult struct { // DatabaseNames Database names for origin. DatabaseNames []string `json:"databaseNames"` }
IndexedDBRequestDatabaseNamesResult ...
type IndexedDBRequestDatabaseResult ¶
type IndexedDBRequestDatabaseResult struct { // DatabaseWithObjectStores Database with an array of object stores. DatabaseWithObjectStores *IndexedDBDatabaseWithObjectStores `json:"databaseWithObjectStores"` }
IndexedDBRequestDatabaseResult ...
type InputCancelDragging ¶ added in v0.115.0
type InputCancelDragging struct{}
InputCancelDragging Cancels any active dragging in the page.
func (InputCancelDragging) Call ¶ added in v0.115.0
func (m InputCancelDragging) Call(c Client) error
Call sends the request.
func (InputCancelDragging) ProtoReq ¶ added in v0.115.0
func (m InputCancelDragging) ProtoReq() string
ProtoReq name.
type InputDispatchDragEvent ¶ added in v0.97.5
type InputDispatchDragEvent struct { // Type of the drag event. Type InputDispatchDragEventType `json:"type"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. X float64 `json:"x"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to // the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. Y float64 `json:"y"` // Data ... Data *InputDragData `json:"data"` // Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 // (default: 0). Modifiers int `json:"modifiers,omitempty"` }
InputDispatchDragEvent (experimental) Dispatches a drag event into the page.
func (InputDispatchDragEvent) Call ¶ added in v0.97.5
func (m InputDispatchDragEvent) Call(c Client) error
Call sends the request.
func (InputDispatchDragEvent) ProtoReq ¶ added in v0.97.5
func (m InputDispatchDragEvent) ProtoReq() string
ProtoReq name.
type InputDispatchDragEventType ¶ added in v0.97.5
type InputDispatchDragEventType string
InputDispatchDragEventType enum.
const ( // InputDispatchDragEventTypeDragEnter enum const. InputDispatchDragEventTypeDragEnter InputDispatchDragEventType = "dragEnter" // InputDispatchDragEventTypeDragOver enum const. InputDispatchDragEventTypeDragOver InputDispatchDragEventType = "dragOver" // InputDispatchDragEventTypeDrop enum const. InputDispatchDragEventTypeDrop InputDispatchDragEventType = "drop" // InputDispatchDragEventTypeDragCancel enum const. InputDispatchDragEventTypeDragCancel InputDispatchDragEventType = "dragCancel" )
type InputDispatchKeyEvent ¶
type InputDispatchKeyEvent struct { // Type of the key event. Type InputDispatchKeyEventType `json:"type"` // Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 // (default: 0). Modifiers int `json:"modifiers,omitempty"` // Timestamp (optional) Time at which the event occurred. Timestamp TimeSinceEpoch `json:"timestamp,omitempty"` // Text (optional) Text as generated by processing a virtual key code with a keyboard layout. Not needed for // for `keyUp` and `rawKeyDown` events (default: "") Text string `json:"text,omitempty"` // UnmodifiedText (optional) Text that would have been generated by the keyboard if no modifiers were pressed (except for // shift). Useful for shortcut (accelerator) key handling (default: ""). UnmodifiedText string `json:"unmodifiedText,omitempty"` // KeyIdentifier (optional) Unique key identifier (e.g., 'U+0041') (default: ""). KeyIdentifier string `json:"keyIdentifier,omitempty"` // Code (optional) Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). Code string `json:"code,omitempty"` // Key (optional) Unique DOM defined string value describing the meaning of the key in the context of active // modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). Key string `json:"key,omitempty"` // WindowsVirtualKeyCode (optional) Windows virtual key code (default: 0). WindowsVirtualKeyCode int `json:"windowsVirtualKeyCode,omitempty"` // NativeVirtualKeyCode (optional) Native virtual key code (default: 0). NativeVirtualKeyCode int `json:"nativeVirtualKeyCode,omitempty"` // AutoRepeat (optional) Whether the event was generated from auto repeat (default: false). AutoRepeat bool `json:"autoRepeat,omitempty"` // IsKeypad (optional) Whether the event was generated from the keypad (default: false). IsKeypad bool `json:"isKeypad,omitempty"` // IsSystemKey (optional) Whether the event was a system key event (default: false). IsSystemKey bool `json:"isSystemKey,omitempty"` // Location (optional) Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: // 0). Location *int `json:"location,omitempty"` // Commands (experimental) (optional) Editing commands to send with the key event (e.g., 'selectAll') (default: []). // These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. // See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. Commands []string `json:"commands,omitempty"` }
InputDispatchKeyEvent Dispatches a key event to the page.
func (InputDispatchKeyEvent) Call ¶
func (m InputDispatchKeyEvent) Call(c Client) error
Call sends the request.
func (InputDispatchKeyEvent) ProtoReq ¶ added in v0.74.0
func (m InputDispatchKeyEvent) ProtoReq() string
ProtoReq name.
type InputDispatchKeyEventType ¶
type InputDispatchKeyEventType string
InputDispatchKeyEventType enum.
const ( // InputDispatchKeyEventTypeKeyDown enum const. InputDispatchKeyEventTypeKeyDown InputDispatchKeyEventType = "keyDown" // InputDispatchKeyEventTypeKeyUp enum const. InputDispatchKeyEventTypeKeyUp InputDispatchKeyEventType = "keyUp" // InputDispatchKeyEventTypeRawKeyDown enum const. InputDispatchKeyEventTypeRawKeyDown InputDispatchKeyEventType = "rawKeyDown" // InputDispatchKeyEventTypeChar enum const. InputDispatchKeyEventTypeChar InputDispatchKeyEventType = "char" )
type InputDispatchMouseEvent ¶
type InputDispatchMouseEvent struct { // Type of the mouse event. Type InputDispatchMouseEventType `json:"type"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. X float64 `json:"x"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to // the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. Y float64 `json:"y"` // Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 // (default: 0). Modifiers int `json:"modifiers,omitempty"` // Timestamp (optional) Time at which the event occurred. Timestamp TimeSinceEpoch `json:"timestamp,omitempty"` // Button (optional) Mouse button (default: "none"). Button InputMouseButton `json:"button,omitempty"` // Buttons (optional) A number indicating which buttons are pressed on the mouse when a mouse event is triggered. // Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0. Buttons *int `json:"buttons,omitempty"` // ClickCount (optional) Number of times the mouse button was clicked (default: 0). ClickCount int `json:"clickCount,omitempty"` // Force (experimental) (optional) The normalized pressure, which has a range of [0,1] (default: 0). Force float64 `json:"force,omitempty"` // TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0). TangentialPressure float64 `json:"tangentialPressure,omitempty"` // TiltX (optional) The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). TiltX float64 `json:"tiltX,omitempty"` // TiltY (optional) The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). TiltY float64 `json:"tiltY,omitempty"` // Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). Twist int `json:"twist,omitempty"` // DeltaX X delta in CSS pixels for mouse wheel event (default: 0). DeltaX float64 `json:"deltaX"` // DeltaY Y delta in CSS pixels for mouse wheel event (default: 0). DeltaY float64 `json:"deltaY"` // PointerType (optional) Pointer type (default: "mouse"). PointerType InputDispatchMouseEventPointerType `json:"pointerType,omitempty"` }
InputDispatchMouseEvent Dispatches a mouse event to the page.
func (InputDispatchMouseEvent) Call ¶
func (m InputDispatchMouseEvent) Call(c Client) error
Call sends the request.
func (InputDispatchMouseEvent) ProtoReq ¶ added in v0.74.0
func (m InputDispatchMouseEvent) ProtoReq() string
ProtoReq name.
type InputDispatchMouseEventPointerType ¶
type InputDispatchMouseEventPointerType string
InputDispatchMouseEventPointerType enum.
const ( // InputDispatchMouseEventPointerTypeMouse enum const. InputDispatchMouseEventPointerTypeMouse InputDispatchMouseEventPointerType = "mouse" // InputDispatchMouseEventPointerTypePen enum const. InputDispatchMouseEventPointerTypePen InputDispatchMouseEventPointerType = "pen" )
type InputDispatchMouseEventType ¶
type InputDispatchMouseEventType string
InputDispatchMouseEventType enum.
const ( // InputDispatchMouseEventTypeMousePressed enum const. InputDispatchMouseEventTypeMousePressed InputDispatchMouseEventType = "mousePressed" // InputDispatchMouseEventTypeMouseReleased enum const. InputDispatchMouseEventTypeMouseReleased InputDispatchMouseEventType = "mouseReleased" // InputDispatchMouseEventTypeMouseMoved enum const. InputDispatchMouseEventTypeMouseMoved InputDispatchMouseEventType = "mouseMoved" // InputDispatchMouseEventTypeMouseWheel enum const. InputDispatchMouseEventTypeMouseWheel InputDispatchMouseEventType = "mouseWheel" )
type InputDispatchTouchEvent ¶
type InputDispatchTouchEvent struct { // Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while // TouchStart and TouchMove must contains at least one. Type InputDispatchTouchEventType `json:"type"` // TouchPoints Active touch points on the touch device. One event per any changed point (compared to // previous touch event in a sequence) is generated, emulating pressing/moving/releasing points // one by one. TouchPoints []*InputTouchPoint `json:"touchPoints"` // Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 // (default: 0). Modifiers int `json:"modifiers,omitempty"` // Timestamp (optional) Time at which the event occurred. Timestamp TimeSinceEpoch `json:"timestamp,omitempty"` }
InputDispatchTouchEvent Dispatches a touch event to the page.
func (InputDispatchTouchEvent) Call ¶
func (m InputDispatchTouchEvent) Call(c Client) error
Call sends the request.
func (InputDispatchTouchEvent) ProtoReq ¶ added in v0.74.0
func (m InputDispatchTouchEvent) ProtoReq() string
ProtoReq name.
type InputDispatchTouchEventType ¶
type InputDispatchTouchEventType string
InputDispatchTouchEventType enum.
const ( // InputDispatchTouchEventTypeTouchStart enum const. InputDispatchTouchEventTypeTouchStart InputDispatchTouchEventType = "touchStart" // InputDispatchTouchEventTypeTouchEnd enum const. InputDispatchTouchEventTypeTouchEnd InputDispatchTouchEventType = "touchEnd" // InputDispatchTouchEventTypeTouchMove enum const. InputDispatchTouchEventTypeTouchMove InputDispatchTouchEventType = "touchMove" // InputDispatchTouchEventTypeTouchCancel enum const. InputDispatchTouchEventTypeTouchCancel InputDispatchTouchEventType = "touchCancel" )
type InputDragData ¶ added in v0.97.5
type InputDragData struct { // Items ... Items []*InputDragDataItem `json:"items"` // Files (optional) List of filenames that should be included when dropping Files []string `json:"files,omitempty"` // DragOperationsMask Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 DragOperationsMask int `json:"dragOperationsMask"` }
InputDragData (experimental) ...
type InputDragDataItem ¶ added in v0.97.5
type InputDragDataItem struct { // MIMEType Mime type of the dragged data. MIMEType string `json:"mimeType"` // Data Depending of the value of `mimeType`, it contains the dragged link, // text, HTML markup or any other data. Data string `json:"data"` // Title (optional) Title associated with a link. Only valid when `mimeType` == "text/uri-list". Title string `json:"title,omitempty"` // BaseURL (optional) Stores the base URL for the contained markup. Only valid when `mimeType` // == "text/html". BaseURL string `json:"baseURL,omitempty"` }
InputDragDataItem (experimental) ...
type InputDragIntercepted ¶ added in v0.100.0
type InputDragIntercepted struct { // Data ... Data *InputDragData `json:"data"` }
InputDragIntercepted (experimental) Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to restore normal drag and drop behavior.
func (InputDragIntercepted) ProtoEvent ¶ added in v0.100.0
func (evt InputDragIntercepted) ProtoEvent() string
ProtoEvent name.
type InputEmulateTouchFromMouseEvent ¶
type InputEmulateTouchFromMouseEvent struct { // Type of the mouse event. Type InputEmulateTouchFromMouseEventType `json:"type"` // X coordinate of the mouse pointer in DIP. X int `json:"x"` // Y coordinate of the mouse pointer in DIP. Y int `json:"y"` // Button Mouse button. Only "none", "left", "right" are supported. Button InputMouseButton `json:"button"` // Timestamp (optional) Time at which the event occurred (default: current time). Timestamp TimeSinceEpoch `json:"timestamp,omitempty"` // DeltaX (optional) X delta in DIP for mouse wheel event (default: 0). DeltaX float64 `json:"deltaX,omitempty"` // DeltaY (optional) Y delta in DIP for mouse wheel event (default: 0). DeltaY float64 `json:"deltaY,omitempty"` // Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 // (default: 0). Modifiers int `json:"modifiers,omitempty"` // ClickCount (optional) Number of times the mouse button was clicked (default: 0). ClickCount int `json:"clickCount,omitempty"` }
InputEmulateTouchFromMouseEvent (experimental) Emulates touch event from the mouse event parameters.
func (InputEmulateTouchFromMouseEvent) Call ¶
func (m InputEmulateTouchFromMouseEvent) Call(c Client) error
Call sends the request.
func (InputEmulateTouchFromMouseEvent) ProtoReq ¶ added in v0.74.0
func (m InputEmulateTouchFromMouseEvent) ProtoReq() string
ProtoReq name.
type InputEmulateTouchFromMouseEventType ¶
type InputEmulateTouchFromMouseEventType string
InputEmulateTouchFromMouseEventType enum.
const ( // InputEmulateTouchFromMouseEventTypeMousePressed enum const. InputEmulateTouchFromMouseEventTypeMousePressed InputEmulateTouchFromMouseEventType = "mousePressed" // InputEmulateTouchFromMouseEventTypeMouseReleased enum const. InputEmulateTouchFromMouseEventTypeMouseReleased InputEmulateTouchFromMouseEventType = "mouseReleased" // InputEmulateTouchFromMouseEventTypeMouseMoved enum const. InputEmulateTouchFromMouseEventTypeMouseMoved InputEmulateTouchFromMouseEventType = "mouseMoved" // InputEmulateTouchFromMouseEventTypeMouseWheel enum const. InputEmulateTouchFromMouseEventTypeMouseWheel InputEmulateTouchFromMouseEventType = "mouseWheel" )
type InputGestureSourceType ¶
type InputGestureSourceType string
InputGestureSourceType (experimental) ...
const ( // InputGestureSourceTypeDefault enum const. InputGestureSourceTypeDefault InputGestureSourceType = "default" // InputGestureSourceTypeTouch enum const. InputGestureSourceTypeTouch InputGestureSourceType = "touch" // InputGestureSourceTypeMouse enum const. InputGestureSourceTypeMouse InputGestureSourceType = "mouse" )
type InputImeSetComposition ¶ added in v0.102.0
type InputImeSetComposition struct { // Text The text to insert Text string `json:"text"` // SelectionStart selection start SelectionStart int `json:"selectionStart"` // SelectionEnd selection end SelectionEnd int `json:"selectionEnd"` // ReplacementStart (optional) replacement start ReplacementStart *int `json:"replacementStart,omitempty"` // ReplacementEnd (optional) replacement end ReplacementEnd *int `json:"replacementEnd,omitempty"` }
InputImeSetComposition (experimental) This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.
func (InputImeSetComposition) Call ¶ added in v0.102.0
func (m InputImeSetComposition) Call(c Client) error
Call sends the request.
func (InputImeSetComposition) ProtoReq ¶ added in v0.102.0
func (m InputImeSetComposition) ProtoReq() string
ProtoReq name.
type InputInsertText ¶
type InputInsertText struct { // Text The text to insert. Text string `json:"text"` }
InputInsertText (experimental) This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.
func (InputInsertText) ProtoReq ¶ added in v0.74.0
func (m InputInsertText) ProtoReq() string
ProtoReq name.
type InputMouseButton ¶
type InputMouseButton string
InputMouseButton ...
const ( // InputMouseButtonNone enum const. InputMouseButtonNone InputMouseButton = "none" // InputMouseButtonLeft enum const. InputMouseButtonLeft InputMouseButton = "left" // InputMouseButtonMiddle enum const. InputMouseButtonMiddle InputMouseButton = "middle" // InputMouseButtonRight enum const. InputMouseButtonRight InputMouseButton = "right" // InputMouseButtonBack enum const. InputMouseButtonBack InputMouseButton = "back" // InputMouseButtonForward enum const. InputMouseButtonForward InputMouseButton = "forward" )
type InputSetIgnoreInputEvents ¶
type InputSetIgnoreInputEvents struct { // Ignores input events processing when set to true. Ignore bool `json:"ignore"` }
InputSetIgnoreInputEvents Ignores input events (useful while auditing page).
func (InputSetIgnoreInputEvents) Call ¶
func (m InputSetIgnoreInputEvents) Call(c Client) error
Call sends the request.
func (InputSetIgnoreInputEvents) ProtoReq ¶ added in v0.74.0
func (m InputSetIgnoreInputEvents) ProtoReq() string
ProtoReq name.
type InputSetInterceptDrags ¶ added in v0.100.0
type InputSetInterceptDrags struct { // Enabled ... Enabled bool `json:"enabled"` }
InputSetInterceptDrags (experimental) Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
func (InputSetInterceptDrags) Call ¶ added in v0.100.0
func (m InputSetInterceptDrags) Call(c Client) error
Call sends the request.
func (InputSetInterceptDrags) ProtoReq ¶ added in v0.100.0
func (m InputSetInterceptDrags) ProtoReq() string
ProtoReq name.
type InputSynthesizePinchGesture ¶
type InputSynthesizePinchGesture struct { // X coordinate of the start of the gesture in CSS pixels. X float64 `json:"x"` // Y coordinate of the start of the gesture in CSS pixels. Y float64 `json:"y"` // ScaleFactor Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out). ScaleFactor float64 `json:"scaleFactor"` // RelativeSpeed (optional) Relative pointer speed in pixels per second (default: 800). RelativeSpeed *int `json:"relativeSpeed,omitempty"` // GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform // for the preferred input type). GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"` }
InputSynthesizePinchGesture (experimental) Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
func (InputSynthesizePinchGesture) Call ¶
func (m InputSynthesizePinchGesture) Call(c Client) error
Call sends the request.
func (InputSynthesizePinchGesture) ProtoReq ¶ added in v0.74.0
func (m InputSynthesizePinchGesture) ProtoReq() string
ProtoReq name.
type InputSynthesizeScrollGesture ¶
type InputSynthesizeScrollGesture struct { // X coordinate of the start of the gesture in CSS pixels. X float64 `json:"x"` // Y coordinate of the start of the gesture in CSS pixels. Y float64 `json:"y"` // XDistance (optional) The distance to scroll along the X axis (positive to scroll left). XDistance *float64 `json:"xDistance,omitempty"` // YDistance (optional) The distance to scroll along the Y axis (positive to scroll up). YDistance *float64 `json:"yDistance,omitempty"` // XOverscroll (optional) The number of additional pixels to scroll back along the X axis, in addition to the given // distance. XOverscroll *float64 `json:"xOverscroll,omitempty"` // YOverscroll (optional) The number of additional pixels to scroll back along the Y axis, in addition to the given // distance. YOverscroll *float64 `json:"yOverscroll,omitempty"` // PreventFling (optional) Prevent fling (default: true). PreventFling bool `json:"preventFling,omitempty"` // Speed (optional) Swipe speed in pixels per second (default: 800). Speed *int `json:"speed,omitempty"` // GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform // for the preferred input type). GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"` // RepeatCount (optional) The number of times to repeat the gesture (default: 0). RepeatCount int `json:"repeatCount,omitempty"` // RepeatDelayMs (optional) The number of milliseconds delay between each repeat. (default: 250). RepeatDelayMs *int `json:"repeatDelayMs,omitempty"` // InteractionMarkerName (optional) The name of the interaction markers to generate, if not empty (default: ""). InteractionMarkerName string `json:"interactionMarkerName,omitempty"` }
InputSynthesizeScrollGesture (experimental) Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
func (InputSynthesizeScrollGesture) Call ¶
func (m InputSynthesizeScrollGesture) Call(c Client) error
Call sends the request.
func (InputSynthesizeScrollGesture) ProtoReq ¶ added in v0.74.0
func (m InputSynthesizeScrollGesture) ProtoReq() string
ProtoReq name.
type InputSynthesizeTapGesture ¶
type InputSynthesizeTapGesture struct { // X coordinate of the start of the gesture in CSS pixels. X float64 `json:"x"` // Y coordinate of the start of the gesture in CSS pixels. Y float64 `json:"y"` // Duration (optional) Duration between touchdown and touchup events in ms (default: 50). Duration *int `json:"duration,omitempty"` // TapCount (optional) Number of times to perform the tap (e.g. 2 for double tap, default: 1). TapCount *int `json:"tapCount,omitempty"` // GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform // for the preferred input type). GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"` }
InputSynthesizeTapGesture (experimental) Synthesizes a tap gesture over a time period by issuing appropriate touch events.
func (InputSynthesizeTapGesture) Call ¶
func (m InputSynthesizeTapGesture) Call(c Client) error
Call sends the request.
func (InputSynthesizeTapGesture) ProtoReq ¶ added in v0.74.0
func (m InputSynthesizeTapGesture) ProtoReq() string
ProtoReq name.
type InputTouchPoint ¶
type InputTouchPoint struct { // X coordinate of the event relative to the main frame's viewport in CSS pixels. X float64 `json:"x"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to // the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. Y float64 `json:"y"` // RadiusX (optional) X radius of the touch area (default: 1.0). RadiusX *float64 `json:"radiusX,omitempty"` // RadiusY (optional) Y radius of the touch area (default: 1.0). RadiusY *float64 `json:"radiusY,omitempty"` // RotationAngle (optional) Rotation angle (default: 0.0). RotationAngle *float64 `json:"rotationAngle,omitempty"` // Force (optional) Force (default: 1.0). Force *float64 `json:"force,omitempty"` // TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0). TangentialPressure float64 `json:"tangentialPressure,omitempty"` // TiltX (optional) The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) TiltX float64 `json:"tiltX,omitempty"` // TiltY (optional) The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). TiltY float64 `json:"tiltY,omitempty"` // Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). Twist int `json:"twist,omitempty"` // ID (optional) Identifier used to track touch sources between events, must be unique within an event. ID *float64 `json:"id,omitempty"` }
InputTouchPoint ...
func (*InputTouchPoint) MoveTo ¶ added in v0.61.1
func (p *InputTouchPoint) MoveTo(x, y float64)
MoveTo X and Y to x and y.
type InspectorDetached ¶
type InspectorDetached struct { // Reason The reason why connection has been terminated. Reason string `json:"reason"` }
InspectorDetached Fired when remote debugging connection is about to be terminated. Contains detach reason.
func (InspectorDetached) ProtoEvent ¶ added in v0.72.0
func (evt InspectorDetached) ProtoEvent() string
ProtoEvent name.
type InspectorDisable ¶
type InspectorDisable struct{}
InspectorDisable Disables inspector domain notifications.
func (InspectorDisable) Call ¶
func (m InspectorDisable) Call(c Client) error
Call sends the request.
func (InspectorDisable) ProtoReq ¶ added in v0.74.0
func (m InspectorDisable) ProtoReq() string
ProtoReq name.
type InspectorEnable ¶
type InspectorEnable struct{}
InspectorEnable Enables inspector domain notifications.
func (InspectorEnable) ProtoReq ¶ added in v0.74.0
func (m InspectorEnable) ProtoReq() string
ProtoReq name.
type InspectorTargetCrashed ¶
type InspectorTargetCrashed struct{}
InspectorTargetCrashed Fired when debugging target has crashed.
func (InspectorTargetCrashed) ProtoEvent ¶ added in v0.72.0
func (evt InspectorTargetCrashed) ProtoEvent() string
ProtoEvent name.
type InspectorTargetReloadedAfterCrash ¶
type InspectorTargetReloadedAfterCrash struct{}
InspectorTargetReloadedAfterCrash Fired when debugging target has reloaded after crash.
func (InspectorTargetReloadedAfterCrash) ProtoEvent ¶ added in v0.72.0
func (evt InspectorTargetReloadedAfterCrash) ProtoEvent() string
ProtoEvent name.
type LayerTreeCompositingReasons ¶
type LayerTreeCompositingReasons struct { // LayerID The id of the layer for which we want to get the reasons it was composited. LayerID LayerTreeLayerID `json:"layerId"` }
LayerTreeCompositingReasons Provides the reasons why the given layer was composited.
func (LayerTreeCompositingReasons) Call ¶
func (m LayerTreeCompositingReasons) Call(c Client) (*LayerTreeCompositingReasonsResult, error)
Call the request.
func (LayerTreeCompositingReasons) ProtoReq ¶ added in v0.74.0
func (m LayerTreeCompositingReasons) ProtoReq() string
ProtoReq name.
type LayerTreeCompositingReasonsResult ¶
type LayerTreeCompositingReasonsResult struct { // CompositingReasons A list of strings specifying reasons for the given layer to become composited. CompositingReasons []string `json:"compositingReasons"` // CompositingReasonIDs A list of strings specifying reason IDs for the given layer to become composited. CompositingReasonIDs []string `json:"compositingReasonIds"` }
LayerTreeCompositingReasonsResult ...
type LayerTreeDisable ¶
type LayerTreeDisable struct{}
LayerTreeDisable Disables compositing tree inspection.
func (LayerTreeDisable) Call ¶
func (m LayerTreeDisable) Call(c Client) error
Call sends the request.
func (LayerTreeDisable) ProtoReq ¶ added in v0.74.0
func (m LayerTreeDisable) ProtoReq() string
ProtoReq name.
type LayerTreeEnable ¶
type LayerTreeEnable struct{}
LayerTreeEnable Enables compositing tree inspection.
func (LayerTreeEnable) ProtoReq ¶ added in v0.74.0
func (m LayerTreeEnable) ProtoReq() string
ProtoReq name.
type LayerTreeLayer ¶
type LayerTreeLayer struct { // LayerID The unique id for this layer. LayerID LayerTreeLayerID `json:"layerId"` // ParentLayerID (optional) The id of parent (not present for root). ParentLayerID LayerTreeLayerID `json:"parentLayerId,omitempty"` // BackendNodeID (optional) The backend id for the node associated with this layer. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // OffsetX Offset from parent layer, X coordinate. OffsetX float64 `json:"offsetX"` // OffsetY Offset from parent layer, Y coordinate. OffsetY float64 `json:"offsetY"` // Width Layer width. Width float64 `json:"width"` // Height Layer height. Height float64 `json:"height"` // Transform (optional) Transformation matrix for layer, default is identity matrix Transform []float64 `json:"transform,omitempty"` // AnchorX (optional) Transform anchor point X, absent if no transform specified AnchorX *float64 `json:"anchorX,omitempty"` // AnchorY (optional) Transform anchor point Y, absent if no transform specified AnchorY *float64 `json:"anchorY,omitempty"` // AnchorZ (optional) Transform anchor point Z, absent if no transform specified AnchorZ *float64 `json:"anchorZ,omitempty"` // PaintCount Indicates how many time this layer has painted. PaintCount int `json:"paintCount"` // DrawsContent Indicates whether this layer hosts any content, rather than being used for // transform/scrolling purposes only. DrawsContent bool `json:"drawsContent"` // Invisible (optional) Set if layer is not visible. Invisible bool `json:"invisible,omitempty"` // ScrollRects (optional) Rectangles scrolling on main thread only. ScrollRects []*LayerTreeScrollRect `json:"scrollRects,omitempty"` // StickyPositionConstraint (optional) Sticky position constraint information StickyPositionConstraint *LayerTreeStickyPositionConstraint `json:"stickyPositionConstraint,omitempty"` }
LayerTreeLayer Information about a compositing layer.
type LayerTreeLayerPainted ¶
type LayerTreeLayerPainted struct { // LayerID The id of the painted layer. LayerID LayerTreeLayerID `json:"layerId"` // Clip rectangle. Clip *DOMRect `json:"clip"` }
LayerTreeLayerPainted ...
func (LayerTreeLayerPainted) ProtoEvent ¶ added in v0.72.0
func (evt LayerTreeLayerPainted) ProtoEvent() string
ProtoEvent name.
type LayerTreeLayerTreeDidChange ¶
type LayerTreeLayerTreeDidChange struct { // Layers (optional) Layer tree, absent if not in the compositing mode. Layers []*LayerTreeLayer `json:"layers,omitempty"` }
LayerTreeLayerTreeDidChange ...
func (LayerTreeLayerTreeDidChange) ProtoEvent ¶ added in v0.72.0
func (evt LayerTreeLayerTreeDidChange) ProtoEvent() string
ProtoEvent name.
type LayerTreeLoadSnapshot ¶
type LayerTreeLoadSnapshot struct { // Tiles An array of tiles composing the snapshot. Tiles []*LayerTreePictureTile `json:"tiles"` }
LayerTreeLoadSnapshot Returns the snapshot identifier.
func (LayerTreeLoadSnapshot) Call ¶
func (m LayerTreeLoadSnapshot) Call(c Client) (*LayerTreeLoadSnapshotResult, error)
Call the request.
func (LayerTreeLoadSnapshot) ProtoReq ¶ added in v0.74.0
func (m LayerTreeLoadSnapshot) ProtoReq() string
ProtoReq name.
type LayerTreeLoadSnapshotResult ¶
type LayerTreeLoadSnapshotResult struct { // SnapshotID The id of the snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` }
LayerTreeLoadSnapshotResult ...
type LayerTreeMakeSnapshot ¶
type LayerTreeMakeSnapshot struct { // LayerID The id of the layer. LayerID LayerTreeLayerID `json:"layerId"` }
LayerTreeMakeSnapshot Returns the layer snapshot identifier.
func (LayerTreeMakeSnapshot) Call ¶
func (m LayerTreeMakeSnapshot) Call(c Client) (*LayerTreeMakeSnapshotResult, error)
Call the request.
func (LayerTreeMakeSnapshot) ProtoReq ¶ added in v0.74.0
func (m LayerTreeMakeSnapshot) ProtoReq() string
ProtoReq name.
type LayerTreeMakeSnapshotResult ¶
type LayerTreeMakeSnapshotResult struct { // SnapshotID The id of the layer snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` }
LayerTreeMakeSnapshotResult ...
type LayerTreePaintProfile ¶
type LayerTreePaintProfile []float64
LayerTreePaintProfile Array of timings, one per paint step.
type LayerTreePictureTile ¶
type LayerTreePictureTile struct { // X Offset from owning layer left boundary X float64 `json:"x"` // Y Offset from owning layer top boundary Y float64 `json:"y"` // Picture Base64-encoded snapshot data. Picture []byte `json:"picture"` }
LayerTreePictureTile Serialized fragment of layer picture along with its offset within the layer.
type LayerTreeProfileSnapshot ¶
type LayerTreeProfileSnapshot struct { // SnapshotID The id of the layer snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` // MinRepeatCount (optional) The maximum number of times to replay the snapshot (1, if not specified). MinRepeatCount *int `json:"minRepeatCount,omitempty"` // MinDuration (optional) The minimum duration (in seconds) to replay the snapshot. MinDuration *float64 `json:"minDuration,omitempty"` // ClipRect (optional) The clip rectangle to apply when replaying the snapshot. ClipRect *DOMRect `json:"clipRect,omitempty"` }
LayerTreeProfileSnapshot ...
func (LayerTreeProfileSnapshot) Call ¶
func (m LayerTreeProfileSnapshot) Call(c Client) (*LayerTreeProfileSnapshotResult, error)
Call the request.
func (LayerTreeProfileSnapshot) ProtoReq ¶ added in v0.74.0
func (m LayerTreeProfileSnapshot) ProtoReq() string
ProtoReq name.
type LayerTreeProfileSnapshotResult ¶
type LayerTreeProfileSnapshotResult struct { // Timings The array of paint profiles, one per run. Timings []LayerTreePaintProfile `json:"timings"` }
LayerTreeProfileSnapshotResult ...
type LayerTreeReleaseSnapshot ¶
type LayerTreeReleaseSnapshot struct { // SnapshotID The id of the layer snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` }
LayerTreeReleaseSnapshot Releases layer snapshot captured by the back-end.
func (LayerTreeReleaseSnapshot) Call ¶
func (m LayerTreeReleaseSnapshot) Call(c Client) error
Call sends the request.
func (LayerTreeReleaseSnapshot) ProtoReq ¶ added in v0.74.0
func (m LayerTreeReleaseSnapshot) ProtoReq() string
ProtoReq name.
type LayerTreeReplaySnapshot ¶
type LayerTreeReplaySnapshot struct { // SnapshotID The id of the layer snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` // FromStep (optional) The first step to replay from (replay from the very start if not specified). FromStep *int `json:"fromStep,omitempty"` // ToStep (optional) The last step to replay to (replay till the end if not specified). ToStep *int `json:"toStep,omitempty"` // Scale (optional) The scale to apply while replaying (defaults to 1). Scale *float64 `json:"scale,omitempty"` }
LayerTreeReplaySnapshot Replays the layer snapshot and returns the resulting bitmap.
func (LayerTreeReplaySnapshot) Call ¶
func (m LayerTreeReplaySnapshot) Call(c Client) (*LayerTreeReplaySnapshotResult, error)
Call the request.
func (LayerTreeReplaySnapshot) ProtoReq ¶ added in v0.74.0
func (m LayerTreeReplaySnapshot) ProtoReq() string
ProtoReq name.
type LayerTreeReplaySnapshotResult ¶
type LayerTreeReplaySnapshotResult struct { // DataURL A data: URL for resulting image. DataURL string `json:"dataURL"` }
LayerTreeReplaySnapshotResult ...
type LayerTreeScrollRect ¶
type LayerTreeScrollRect struct { // Rectangle itself. Rect *DOMRect `json:"rect"` // Type Reason for rectangle to force scrolling on the main thread Type LayerTreeScrollRectType `json:"type"` }
LayerTreeScrollRect Rectangle where scrolling happens on the main thread.
type LayerTreeScrollRectType ¶
type LayerTreeScrollRectType string
LayerTreeScrollRectType enum.
const ( // LayerTreeScrollRectTypeRepaintsOnScroll enum const. LayerTreeScrollRectTypeRepaintsOnScroll LayerTreeScrollRectType = "RepaintsOnScroll" // LayerTreeScrollRectTypeTouchEventHandler enum const. LayerTreeScrollRectTypeTouchEventHandler LayerTreeScrollRectType = "TouchEventHandler" // LayerTreeScrollRectTypeWheelEventHandler enum const. LayerTreeScrollRectTypeWheelEventHandler LayerTreeScrollRectType = "WheelEventHandler" )
type LayerTreeSnapshotCommandLog ¶
type LayerTreeSnapshotCommandLog struct { // SnapshotID The id of the layer snapshot. SnapshotID LayerTreeSnapshotID `json:"snapshotId"` }
LayerTreeSnapshotCommandLog Replays the layer snapshot and returns canvas log.
func (LayerTreeSnapshotCommandLog) Call ¶
func (m LayerTreeSnapshotCommandLog) Call(c Client) (*LayerTreeSnapshotCommandLogResult, error)
Call the request.
func (LayerTreeSnapshotCommandLog) ProtoReq ¶ added in v0.74.0
func (m LayerTreeSnapshotCommandLog) ProtoReq() string
ProtoReq name.
type LayerTreeSnapshotCommandLogResult ¶
type LayerTreeSnapshotCommandLogResult struct { // CommandLog The array of canvas function calls. CommandLog []map[string]gson.JSON `json:"commandLog"` }
LayerTreeSnapshotCommandLogResult ...
type LayerTreeSnapshotID ¶
type LayerTreeSnapshotID string
LayerTreeSnapshotID Unique snapshot identifier.
type LayerTreeStickyPositionConstraint ¶
type LayerTreeStickyPositionConstraint struct { // StickyBoxRect Layout rectangle of the sticky element before being shifted StickyBoxRect *DOMRect `json:"stickyBoxRect"` // ContainingBlockRect Layout rectangle of the containing block of the sticky element ContainingBlockRect *DOMRect `json:"containingBlockRect"` // NearestLayerShiftingStickyBox (optional) The nearest sticky layer that shifts the sticky box NearestLayerShiftingStickyBox LayerTreeLayerID `json:"nearestLayerShiftingStickyBox,omitempty"` // NearestLayerShiftingContainingBlock (optional) The nearest sticky layer that shifts the containing block NearestLayerShiftingContainingBlock LayerTreeLayerID `json:"nearestLayerShiftingContainingBlock,omitempty"` }
LayerTreeStickyPositionConstraint Sticky position constraints.
type LogDisable ¶
type LogDisable struct{}
LogDisable Disables log domain, prevents further log entries from being reported to the client.
type LogEnable ¶
type LogEnable struct{}
LogEnable Enables log domain, sends the entries collected so far to the client by means of the `entryAdded` notification.
type LogEntryAdded ¶
type LogEntryAdded struct { // Entry The entry. Entry *LogLogEntry `json:"entry"` }
LogEntryAdded Issued when new message was logged.
func (LogEntryAdded) ProtoEvent ¶ added in v0.72.0
func (evt LogEntryAdded) ProtoEvent() string
ProtoEvent name.
type LogLogEntry ¶
type LogLogEntry struct { // Source Log entry source. Source LogLogEntrySource `json:"source"` // Level Log entry severity. Level LogLogEntryLevel `json:"level"` // Text Logged text. Text string `json:"text"` // Category (optional) ... Category LogLogEntryCategory `json:"category,omitempty"` // Timestamp when this entry was added. Timestamp RuntimeTimestamp `json:"timestamp"` // URL (optional) URL of the resource if known. URL string `json:"url,omitempty"` // LineNumber (optional) Line number in the resource. LineNumber *int `json:"lineNumber,omitempty"` // StackTrace (optional) JavaScript stack trace. StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // NetworkRequestID (optional) Identifier of the network request associated with this entry. NetworkRequestID NetworkRequestID `json:"networkRequestId,omitempty"` // WorkerID (optional) Identifier of the worker associated with this entry. WorkerID string `json:"workerId,omitempty"` // Args (optional) Call arguments. Args []*RuntimeRemoteObject `json:"args,omitempty"` }
LogLogEntry Log entry.
type LogLogEntryCategory ¶ added in v0.102.0
type LogLogEntryCategory string
LogLogEntryCategory enum.
const ( // LogLogEntryCategoryCors enum const. LogLogEntryCategoryCors LogLogEntryCategory = "cors" )
type LogLogEntryLevel ¶
type LogLogEntryLevel string
LogLogEntryLevel enum.
const ( // LogLogEntryLevelVerbose enum const. LogLogEntryLevelVerbose LogLogEntryLevel = "verbose" // LogLogEntryLevelInfo enum const. LogLogEntryLevelInfo LogLogEntryLevel = "info" // LogLogEntryLevelWarning enum const. LogLogEntryLevelWarning LogLogEntryLevel = "warning" // LogLogEntryLevelError enum const. LogLogEntryLevelError LogLogEntryLevel = "error" )
type LogLogEntrySource ¶
type LogLogEntrySource string
LogLogEntrySource enum.
const ( // LogLogEntrySourceXML enum const. LogLogEntrySourceXML LogLogEntrySource = "xml" // LogLogEntrySourceJavascript enum const. LogLogEntrySourceJavascript LogLogEntrySource = "javascript" // LogLogEntrySourceNetwork enum const. LogLogEntrySourceNetwork LogLogEntrySource = "network" // LogLogEntrySourceStorage enum const. LogLogEntrySourceStorage LogLogEntrySource = "storage" // LogLogEntrySourceAppcache enum const. LogLogEntrySourceAppcache LogLogEntrySource = "appcache" // LogLogEntrySourceRendering enum const. LogLogEntrySourceRendering LogLogEntrySource = "rendering" // LogLogEntrySourceSecurity enum const. LogLogEntrySourceSecurity LogLogEntrySource = "security" // LogLogEntrySourceDeprecation enum const. LogLogEntrySourceDeprecation LogLogEntrySource = "deprecation" // LogLogEntrySourceWorker enum const. LogLogEntrySourceWorker LogLogEntrySource = "worker" // LogLogEntrySourceViolation enum const. LogLogEntrySourceViolation LogLogEntrySource = "violation" // LogLogEntrySourceIntervention enum const. LogLogEntrySourceIntervention LogLogEntrySource = "intervention" // LogLogEntrySourceRecommendation enum const. LogLogEntrySourceRecommendation LogLogEntrySource = "recommendation" // LogLogEntrySourceOther enum const. LogLogEntrySourceOther LogLogEntrySource = "other" )
type LogStartViolationsReport ¶
type LogStartViolationsReport struct { // Configuration for violations. Config []*LogViolationSetting `json:"config"` }
LogStartViolationsReport start violation reporting.
func (LogStartViolationsReport) Call ¶
func (m LogStartViolationsReport) Call(c Client) error
Call sends the request.
func (LogStartViolationsReport) ProtoReq ¶ added in v0.74.0
func (m LogStartViolationsReport) ProtoReq() string
ProtoReq name.
type LogStopViolationsReport ¶
type LogStopViolationsReport struct{}
LogStopViolationsReport Stop violation reporting.
func (LogStopViolationsReport) Call ¶
func (m LogStopViolationsReport) Call(c Client) error
Call sends the request.
func (LogStopViolationsReport) ProtoReq ¶ added in v0.74.0
func (m LogStopViolationsReport) ProtoReq() string
ProtoReq name.
type LogViolationSetting ¶
type LogViolationSetting struct { // Name Violation type. Name LogViolationSettingName `json:"name"` // Threshold Time threshold to trigger upon. Threshold float64 `json:"threshold"` }
LogViolationSetting Violation configuration setting.
type LogViolationSettingName ¶
type LogViolationSettingName string
LogViolationSettingName enum.
const ( // LogViolationSettingNameLongTask enum const. LogViolationSettingNameLongTask LogViolationSettingName = "longTask" // LogViolationSettingNameLongLayout enum const. LogViolationSettingNameLongLayout LogViolationSettingName = "longLayout" // LogViolationSettingNameBlockedEvent enum const. LogViolationSettingNameBlockedEvent LogViolationSettingName = "blockedEvent" // LogViolationSettingNameBlockedParser enum const. LogViolationSettingNameBlockedParser LogViolationSettingName = "blockedParser" // LogViolationSettingNameDiscouragedAPIUse enum const. LogViolationSettingNameDiscouragedAPIUse LogViolationSettingName = "discouragedAPIUse" // LogViolationSettingNameHandler enum const. LogViolationSettingNameHandler LogViolationSettingName = "handler" // LogViolationSettingNameRecurringHandler enum const. LogViolationSettingNameRecurringHandler LogViolationSettingName = "recurringHandler" )
type MediaDisable ¶
type MediaDisable struct{}
MediaDisable Disables the Media domain.
func (MediaDisable) ProtoReq ¶ added in v0.74.0
func (m MediaDisable) ProtoReq() string
ProtoReq name.
type MediaEnable ¶
type MediaEnable struct{}
MediaEnable Enables the Media domain.
func (MediaEnable) ProtoReq ¶ added in v0.74.0
func (m MediaEnable) ProtoReq() string
ProtoReq name.
type MediaPlayerError ¶ added in v0.48.0
type MediaPlayerError struct { // ErrorType ... ErrorType string `json:"errorType"` // Code is the numeric enum entry for a specific set of error codes, such // as PipelineStatusCodes in media/base/pipeline_status.h Code int `json:"code"` // Stack A trace of where this error was caused / where it passed through. Stack []*MediaPlayerErrorSourceLocation `json:"stack"` // Cause Errors potentially have a root cause error, ie, a DecoderError might be // caused by an WindowsError Cause []*MediaPlayerError `json:"cause"` // Data Extra data attached to an error, such as an HRESULT, Video Codec, etc. Data map[string]gson.JSON `json:"data"` }
MediaPlayerError Corresponds to kMediaError.
type MediaPlayerErrorSourceLocation ¶ added in v0.106.0
type MediaPlayerErrorSourceLocation struct { // File ... File string `json:"file"` // Line ... Line int `json:"line"` }
MediaPlayerErrorSourceLocation Represents logged source line numbers reported in an error. NOTE: file and line are from chromium c++ implementation code, not js.
type MediaPlayerErrorsRaised ¶ added in v0.48.0
type MediaPlayerErrorsRaised struct { // PlayerID ... PlayerID MediaPlayerID `json:"playerId"` // Errors ... Errors []*MediaPlayerError `json:"errors"` }
MediaPlayerErrorsRaised Send a list of any errors that need to be delivered.
func (MediaPlayerErrorsRaised) ProtoEvent ¶ added in v0.72.0
func (evt MediaPlayerErrorsRaised) ProtoEvent() string
ProtoEvent name.
type MediaPlayerEvent ¶
type MediaPlayerEvent struct { // Timestamp ... Timestamp MediaTimestamp `json:"timestamp"` // Value ... Value string `json:"value"` }
MediaPlayerEvent Corresponds to kMediaEventTriggered.
type MediaPlayerEventsAdded ¶
type MediaPlayerEventsAdded struct { // PlayerID ... PlayerID MediaPlayerID `json:"playerId"` // Events ... Events []*MediaPlayerEvent `json:"events"` }
MediaPlayerEventsAdded Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.
func (MediaPlayerEventsAdded) ProtoEvent ¶ added in v0.72.0
func (evt MediaPlayerEventsAdded) ProtoEvent() string
ProtoEvent name.
type MediaPlayerID ¶
type MediaPlayerID string
MediaPlayerID Players will get an ID that is unique within the agent context.
type MediaPlayerMessage ¶ added in v0.48.0
type MediaPlayerMessage struct { // Level Keep in sync with MediaLogMessageLevel // We are currently keeping the message level 'error' separate from the // PlayerError type because right now they represent different things, // this one being a DVLOG(ERROR) style log message that gets printed // based on what log level is selected in the UI, and the other is a // representation of a media::PipelineStatus object. Soon however we're // going to be moving away from using PipelineStatus for errors and // introducing a new error type which should hopefully let us integrate // the error log level into the PlayerError type. Level MediaPlayerMessageLevel `json:"level"` // Message ... Message string `json:"message"` }
MediaPlayerMessage Have one type per entry in MediaLogRecord::Type Corresponds to kMessage.
type MediaPlayerMessageLevel ¶ added in v0.48.0
type MediaPlayerMessageLevel string
MediaPlayerMessageLevel enum.
const ( // MediaPlayerMessageLevelError enum const. MediaPlayerMessageLevelError MediaPlayerMessageLevel = "error" // MediaPlayerMessageLevelWarning enum const. MediaPlayerMessageLevelWarning MediaPlayerMessageLevel = "warning" // MediaPlayerMessageLevelInfo enum const. MediaPlayerMessageLevelInfo MediaPlayerMessageLevel = "info" // MediaPlayerMessageLevelDebug enum const. MediaPlayerMessageLevelDebug MediaPlayerMessageLevel = "debug" )
type MediaPlayerMessagesLogged ¶ added in v0.48.0
type MediaPlayerMessagesLogged struct { // PlayerID ... PlayerID MediaPlayerID `json:"playerId"` // Messages ... Messages []*MediaPlayerMessage `json:"messages"` }
MediaPlayerMessagesLogged Send a list of any messages that need to be delivered.
func (MediaPlayerMessagesLogged) ProtoEvent ¶ added in v0.72.0
func (evt MediaPlayerMessagesLogged) ProtoEvent() string
ProtoEvent name.
type MediaPlayerPropertiesChanged ¶
type MediaPlayerPropertiesChanged struct { // PlayerID ... PlayerID MediaPlayerID `json:"playerId"` // Properties ... Properties []*MediaPlayerProperty `json:"properties"` }
MediaPlayerPropertiesChanged This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.
func (MediaPlayerPropertiesChanged) ProtoEvent ¶ added in v0.72.0
func (evt MediaPlayerPropertiesChanged) ProtoEvent() string
ProtoEvent name.
type MediaPlayerProperty ¶
type MediaPlayerProperty struct { // Name ... Name string `json:"name"` // Value ... Value string `json:"value"` }
MediaPlayerProperty Corresponds to kMediaPropertyChange.
type MediaPlayersCreated ¶
type MediaPlayersCreated struct { // Players ... Players []MediaPlayerID `json:"players"` }
MediaPlayersCreated Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.
func (MediaPlayersCreated) ProtoEvent ¶ added in v0.72.0
func (evt MediaPlayersCreated) ProtoEvent() string
ProtoEvent name.
type MemoryForciblyPurgeJavaScriptMemory ¶
type MemoryForciblyPurgeJavaScriptMemory struct{}
MemoryForciblyPurgeJavaScriptMemory Simulate OomIntervention by purging V8 memory.
func (MemoryForciblyPurgeJavaScriptMemory) Call ¶
func (m MemoryForciblyPurgeJavaScriptMemory) Call(c Client) error
Call sends the request.
func (MemoryForciblyPurgeJavaScriptMemory) ProtoReq ¶ added in v0.74.0
func (m MemoryForciblyPurgeJavaScriptMemory) ProtoReq() string
ProtoReq name.
type MemoryGetAllTimeSamplingProfile ¶
type MemoryGetAllTimeSamplingProfile struct{}
MemoryGetAllTimeSamplingProfile Retrieve native memory allocations profile collected since renderer process startup.
func (MemoryGetAllTimeSamplingProfile) Call ¶
func (m MemoryGetAllTimeSamplingProfile) Call(c Client) (*MemoryGetAllTimeSamplingProfileResult, error)
Call the request.
func (MemoryGetAllTimeSamplingProfile) ProtoReq ¶ added in v0.74.0
func (m MemoryGetAllTimeSamplingProfile) ProtoReq() string
ProtoReq name.
type MemoryGetAllTimeSamplingProfileResult ¶
type MemoryGetAllTimeSamplingProfileResult struct { // Profile ... Profile *MemorySamplingProfile `json:"profile"` }
MemoryGetAllTimeSamplingProfileResult ...
type MemoryGetBrowserSamplingProfile ¶
type MemoryGetBrowserSamplingProfile struct{}
MemoryGetBrowserSamplingProfile Retrieve native memory allocations profile collected since browser process startup.
func (MemoryGetBrowserSamplingProfile) Call ¶
func (m MemoryGetBrowserSamplingProfile) Call(c Client) (*MemoryGetBrowserSamplingProfileResult, error)
Call the request.
func (MemoryGetBrowserSamplingProfile) ProtoReq ¶ added in v0.74.0
func (m MemoryGetBrowserSamplingProfile) ProtoReq() string
ProtoReq name.
type MemoryGetBrowserSamplingProfileResult ¶
type MemoryGetBrowserSamplingProfileResult struct { // Profile ... Profile *MemorySamplingProfile `json:"profile"` }
MemoryGetBrowserSamplingProfileResult ...
type MemoryGetDOMCounters ¶
type MemoryGetDOMCounters struct{}
MemoryGetDOMCounters ...
func (MemoryGetDOMCounters) Call ¶
func (m MemoryGetDOMCounters) Call(c Client) (*MemoryGetDOMCountersResult, error)
Call the request.
func (MemoryGetDOMCounters) ProtoReq ¶ added in v0.74.0
func (m MemoryGetDOMCounters) ProtoReq() string
ProtoReq name.
type MemoryGetDOMCountersResult ¶
type MemoryGetDOMCountersResult struct { // Documents ... Documents int `json:"documents"` // Nodes ... Nodes int `json:"nodes"` // JsEventListeners ... JsEventListeners int `json:"jsEventListeners"` }
MemoryGetDOMCountersResult ...
type MemoryGetSamplingProfile ¶
type MemoryGetSamplingProfile struct{}
MemoryGetSamplingProfile Retrieve native memory allocations profile collected since last `startSampling` call.
func (MemoryGetSamplingProfile) Call ¶
func (m MemoryGetSamplingProfile) Call(c Client) (*MemoryGetSamplingProfileResult, error)
Call the request.
func (MemoryGetSamplingProfile) ProtoReq ¶ added in v0.74.0
func (m MemoryGetSamplingProfile) ProtoReq() string
ProtoReq name.
type MemoryGetSamplingProfileResult ¶
type MemoryGetSamplingProfileResult struct { // Profile ... Profile *MemorySamplingProfile `json:"profile"` }
MemoryGetSamplingProfileResult ...
type MemoryModule ¶
type MemoryModule struct { // Name of the module. Name string `json:"name"` // UUID of the module. UUID string `json:"uuid"` // BaseAddress Base address where the module is loaded into memory. Encoded as a decimal // or hexadecimal (0x prefixed) string. BaseAddress string `json:"baseAddress"` // Size of the module in bytes. Size float64 `json:"size"` }
MemoryModule Executable module information.
type MemoryPrepareForLeakDetection ¶
type MemoryPrepareForLeakDetection struct{}
MemoryPrepareForLeakDetection ...
func (MemoryPrepareForLeakDetection) Call ¶
func (m MemoryPrepareForLeakDetection) Call(c Client) error
Call sends the request.
func (MemoryPrepareForLeakDetection) ProtoReq ¶ added in v0.74.0
func (m MemoryPrepareForLeakDetection) ProtoReq() string
ProtoReq name.
type MemoryPressureLevel ¶
type MemoryPressureLevel string
MemoryPressureLevel Memory pressure level.
const ( // MemoryPressureLevelModerate enum const. MemoryPressureLevelModerate MemoryPressureLevel = "moderate" // MemoryPressureLevelCritical enum const. MemoryPressureLevelCritical MemoryPressureLevel = "critical" )
type MemorySamplingProfile ¶
type MemorySamplingProfile struct { // Samples ... Samples []*MemorySamplingProfileNode `json:"samples"` // Modules ... Modules []*MemoryModule `json:"modules"` }
MemorySamplingProfile Array of heap profile samples.
type MemorySamplingProfileNode ¶
type MemorySamplingProfileNode struct { // Size of the sampled allocation. Size float64 `json:"size"` // Total bytes attributed to this sample. Total float64 `json:"total"` // Stack Execution stack at the point of allocation. Stack []string `json:"stack"` }
MemorySamplingProfileNode Heap profile sample.
type MemorySetPressureNotificationsSuppressed ¶
type MemorySetPressureNotificationsSuppressed struct { // Suppressed If true, memory pressure notifications will be suppressed. Suppressed bool `json:"suppressed"` }
MemorySetPressureNotificationsSuppressed Enable/disable suppressing memory pressure notifications in all processes.
func (MemorySetPressureNotificationsSuppressed) Call ¶
func (m MemorySetPressureNotificationsSuppressed) Call(c Client) error
Call sends the request.
func (MemorySetPressureNotificationsSuppressed) ProtoReq ¶ added in v0.74.0
func (m MemorySetPressureNotificationsSuppressed) ProtoReq() string
ProtoReq name.
type MemorySimulatePressureNotification ¶
type MemorySimulatePressureNotification struct { // Level Memory pressure level of the notification. Level MemoryPressureLevel `json:"level"` }
MemorySimulatePressureNotification Simulate a memory pressure notification in all processes.
func (MemorySimulatePressureNotification) Call ¶
func (m MemorySimulatePressureNotification) Call(c Client) error
Call sends the request.
func (MemorySimulatePressureNotification) ProtoReq ¶ added in v0.74.0
func (m MemorySimulatePressureNotification) ProtoReq() string
ProtoReq name.
type MemoryStartSampling ¶
type MemoryStartSampling struct { // SamplingInterval (optional) Average number of bytes between samples. SamplingInterval *int `json:"samplingInterval,omitempty"` // SuppressRandomness (optional) Do not randomize intervals between samples. SuppressRandomness bool `json:"suppressRandomness,omitempty"` }
MemoryStartSampling Start collecting native memory profile.
func (MemoryStartSampling) Call ¶
func (m MemoryStartSampling) Call(c Client) error
Call sends the request.
func (MemoryStartSampling) ProtoReq ¶ added in v0.74.0
func (m MemoryStartSampling) ProtoReq() string
ProtoReq name.
type MemoryStopSampling ¶
type MemoryStopSampling struct{}
MemoryStopSampling Stop collecting native memory profile.
func (MemoryStopSampling) Call ¶
func (m MemoryStopSampling) Call(c Client) error
Call sends the request.
func (MemoryStopSampling) ProtoReq ¶ added in v0.74.0
func (m MemoryStopSampling) ProtoReq() string
ProtoReq name.
type MonotonicTime ¶
type MonotonicTime float64
MonotonicTime Monotonically increasing time in seconds since an arbitrary point in the past.
func (MonotonicTime) Duration ¶ added in v0.93.0
func (t MonotonicTime) Duration() time.Duration
Duration interface.
func (MonotonicTime) String ¶ added in v0.93.0
func (t MonotonicTime) String() string
String interface.
type NetworkAlternateProtocolUsage ¶ added in v0.112.1
type NetworkAlternateProtocolUsage string
NetworkAlternateProtocolUsage (experimental) The reason why Chrome uses a specific transport protocol for HTTP semantics.
const ( // NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace enum const. NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace NetworkAlternateProtocolUsage = "alternativeJobWonWithoutRace" // NetworkAlternateProtocolUsageAlternativeJobWonRace enum const. NetworkAlternateProtocolUsageAlternativeJobWonRace NetworkAlternateProtocolUsage = "alternativeJobWonRace" // NetworkAlternateProtocolUsageMainJobWonRace enum const. NetworkAlternateProtocolUsageMainJobWonRace NetworkAlternateProtocolUsage = "mainJobWonRace" // NetworkAlternateProtocolUsageMappingMissing enum const. NetworkAlternateProtocolUsageMappingMissing NetworkAlternateProtocolUsage = "mappingMissing" // NetworkAlternateProtocolUsageBroken enum const. NetworkAlternateProtocolUsageBroken NetworkAlternateProtocolUsage = "broken" // NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace enum const. NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonWithoutRace" // NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace enum const. NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonRace" // NetworkAlternateProtocolUsageUnspecifiedReason enum const. NetworkAlternateProtocolUsageUnspecifiedReason NetworkAlternateProtocolUsage = "unspecifiedReason" )
type NetworkAssociatedCookie ¶ added in v0.115.0
type NetworkAssociatedCookie struct { // Cookie The cookie object representing the cookie which was not sent. Cookie *NetworkCookie `json:"cookie"` // BlockedReasons The reason(s) the cookie was blocked. If empty means the cookie is included. BlockedReasons []NetworkCookieBlockedReason `json:"blockedReasons"` // ExemptionReason (optional) The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could // only have at most one exemption reason. ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason,omitempty"` }
NetworkAssociatedCookie (experimental) A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption.
type NetworkAuthChallenge ¶
type NetworkAuthChallenge struct { // Source (optional) Source of the authentication challenge. Source NetworkAuthChallengeSource `json:"source,omitempty"` // Origin of the challenger. Origin string `json:"origin"` // Scheme The authentication scheme used, such as basic or digest Scheme string `json:"scheme"` // Realm The realm of the challenge. May be empty. Realm string `json:"realm"` }
NetworkAuthChallenge (experimental) Authorization challenge for HTTP status code 401 or 407.
type NetworkAuthChallengeResponse ¶
type NetworkAuthChallengeResponse struct { // Response The decision on what to do in response to the authorization challenge. Default means // deferring to the default behavior of the net stack, which will likely either the Cancel // authentication or display a popup dialog box. Response NetworkAuthChallengeResponseResponse `json:"response"` // Username (optional) The username to provide, possibly empty. Should only be set if response is // ProvideCredentials. Username string `json:"username,omitempty"` // Password (optional) The password to provide, possibly empty. Should only be set if response is // ProvideCredentials. Password string `json:"password,omitempty"` }
NetworkAuthChallengeResponse (experimental) Response to an AuthChallenge.
type NetworkAuthChallengeResponseResponse ¶
type NetworkAuthChallengeResponseResponse string
NetworkAuthChallengeResponseResponse enum.
const ( // NetworkAuthChallengeResponseResponseDefault enum const. NetworkAuthChallengeResponseResponseDefault NetworkAuthChallengeResponseResponse = "Default" // NetworkAuthChallengeResponseResponseCancelAuth enum const. NetworkAuthChallengeResponseResponseCancelAuth NetworkAuthChallengeResponseResponse = "CancelAuth" // NetworkAuthChallengeResponseResponseProvideCredentials enum const. NetworkAuthChallengeResponseResponseProvideCredentials NetworkAuthChallengeResponseResponse = "ProvideCredentials" )
type NetworkAuthChallengeSource ¶
type NetworkAuthChallengeSource string
NetworkAuthChallengeSource enum.
const ( // NetworkAuthChallengeSourceServer enum const. NetworkAuthChallengeSourceServer NetworkAuthChallengeSource = "Server" // NetworkAuthChallengeSourceProxy enum const. NetworkAuthChallengeSourceProxy NetworkAuthChallengeSource = "Proxy" )
type NetworkBlockedReason ¶
type NetworkBlockedReason string
NetworkBlockedReason The reason why request was blocked.
const ( // NetworkBlockedReasonOther enum const. NetworkBlockedReasonOther NetworkBlockedReason = "other" // NetworkBlockedReasonCsp enum const. NetworkBlockedReasonCsp NetworkBlockedReason = "csp" // NetworkBlockedReasonMixedContent enum const. NetworkBlockedReasonMixedContent NetworkBlockedReason = "mixed-content" // NetworkBlockedReasonOrigin enum const. NetworkBlockedReasonOrigin NetworkBlockedReason = "origin" // NetworkBlockedReasonInspector enum const. NetworkBlockedReasonInspector NetworkBlockedReason = "inspector" // NetworkBlockedReasonSubresourceFilter enum const. NetworkBlockedReasonSubresourceFilter NetworkBlockedReason = "subresource-filter" // NetworkBlockedReasonContentType enum const. NetworkBlockedReasonContentType NetworkBlockedReason = "content-type" // NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader enum const. NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader NetworkBlockedReason = "coep-frame-resource-needs-coep-header" NetworkBlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage NetworkBlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page" // NetworkBlockedReasonCorpNotSameOrigin enum const. NetworkBlockedReasonCorpNotSameOrigin NetworkBlockedReason = "corp-not-same-origin" // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const. NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep" // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip enum const. NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip" // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip enum const. NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip" // NetworkBlockedReasonCorpNotSameSite enum const. NetworkBlockedReasonCorpNotSameSite NetworkBlockedReason = "corp-not-same-site" )
type NetworkBlockedSetCookieWithReason ¶
type NetworkBlockedSetCookieWithReason struct { // BlockedReasons The reason(s) this cookie was blocked. BlockedReasons []NetworkSetCookieBlockedReason `json:"blockedReasons"` // CookieLine The string representing this individual cookie as it would appear in the header. // This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. CookieLine string `json:"cookieLine"` // Cookie (optional) The cookie object which represents the cookie which was not stored. It is optional because // sometimes complete cookie information is not available, such as in the case of parsing // errors. Cookie *NetworkCookie `json:"cookie,omitempty"` }
NetworkBlockedSetCookieWithReason (experimental) A cookie which was not stored from a response with the corresponding reason.
type NetworkCachedResource ¶
type NetworkCachedResource struct { // URL Resource URL. This is the url of the original network request. URL string `json:"url"` // Type of this resource. Type NetworkResourceType `json:"type"` // Response (optional) Cached response data. Response *NetworkResponse `json:"response,omitempty"` // BodySize Cached response body size. BodySize float64 `json:"bodySize"` }
NetworkCachedResource Information about the cached resource.
type NetworkCanClearBrowserCache ¶
type NetworkCanClearBrowserCache struct{}
NetworkCanClearBrowserCache (deprecated) Tells whether clearing browser cache is supported.
func (NetworkCanClearBrowserCache) Call ¶
func (m NetworkCanClearBrowserCache) Call(c Client) (*NetworkCanClearBrowserCacheResult, error)
Call the request.
func (NetworkCanClearBrowserCache) ProtoReq ¶ added in v0.74.0
func (m NetworkCanClearBrowserCache) ProtoReq() string
ProtoReq name.
type NetworkCanClearBrowserCacheResult ¶
type NetworkCanClearBrowserCacheResult struct { // Result True if browser cache can be cleared. Result bool `json:"result"` }
NetworkCanClearBrowserCacheResult (deprecated) ...
type NetworkCanClearBrowserCookies ¶
type NetworkCanClearBrowserCookies struct{}
NetworkCanClearBrowserCookies (deprecated) Tells whether clearing browser cookies is supported.
func (NetworkCanClearBrowserCookies) Call ¶
func (m NetworkCanClearBrowserCookies) Call(c Client) (*NetworkCanClearBrowserCookiesResult, error)
Call the request.
func (NetworkCanClearBrowserCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkCanClearBrowserCookies) ProtoReq() string
ProtoReq name.
type NetworkCanClearBrowserCookiesResult ¶
type NetworkCanClearBrowserCookiesResult struct { // Result True if browser cookies can be cleared. Result bool `json:"result"` }
NetworkCanClearBrowserCookiesResult (deprecated) ...
type NetworkCanEmulateNetworkConditions ¶
type NetworkCanEmulateNetworkConditions struct{}
NetworkCanEmulateNetworkConditions (deprecated) Tells whether emulation of network conditions is supported.
func (NetworkCanEmulateNetworkConditions) Call ¶
func (m NetworkCanEmulateNetworkConditions) Call(c Client) (*NetworkCanEmulateNetworkConditionsResult, error)
Call the request.
func (NetworkCanEmulateNetworkConditions) ProtoReq ¶ added in v0.74.0
func (m NetworkCanEmulateNetworkConditions) ProtoReq() string
ProtoReq name.
type NetworkCanEmulateNetworkConditionsResult ¶
type NetworkCanEmulateNetworkConditionsResult struct { // Result True if emulation of network conditions is supported. Result bool `json:"result"` }
NetworkCanEmulateNetworkConditionsResult (deprecated) ...
type NetworkCertificateTransparencyCompliance ¶
type NetworkCertificateTransparencyCompliance string
NetworkCertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy.
const ( // NetworkCertificateTransparencyComplianceUnknown enum const. NetworkCertificateTransparencyComplianceUnknown NetworkCertificateTransparencyCompliance = "unknown" // NetworkCertificateTransparencyComplianceNotCompliant enum const. NetworkCertificateTransparencyComplianceNotCompliant NetworkCertificateTransparencyCompliance = "not-compliant" // NetworkCertificateTransparencyComplianceCompliant enum const. NetworkCertificateTransparencyComplianceCompliant NetworkCertificateTransparencyCompliance = "compliant" )
type NetworkClearAcceptedEncodingsOverride ¶ added in v0.97.5
type NetworkClearAcceptedEncodingsOverride struct{}
NetworkClearAcceptedEncodingsOverride (experimental) Clears accepted encodings set by setAcceptedEncodings.
func (NetworkClearAcceptedEncodingsOverride) Call ¶ added in v0.97.5
func (m NetworkClearAcceptedEncodingsOverride) Call(c Client) error
Call sends the request.
func (NetworkClearAcceptedEncodingsOverride) ProtoReq ¶ added in v0.97.5
func (m NetworkClearAcceptedEncodingsOverride) ProtoReq() string
ProtoReq name.
type NetworkClearBrowserCache ¶
type NetworkClearBrowserCache struct{}
NetworkClearBrowserCache Clears browser cache.
func (NetworkClearBrowserCache) Call ¶
func (m NetworkClearBrowserCache) Call(c Client) error
Call sends the request.
func (NetworkClearBrowserCache) ProtoReq ¶ added in v0.74.0
func (m NetworkClearBrowserCache) ProtoReq() string
ProtoReq name.
type NetworkClearBrowserCookies ¶
type NetworkClearBrowserCookies struct{}
NetworkClearBrowserCookies Clears browser cookies.
func (NetworkClearBrowserCookies) Call ¶
func (m NetworkClearBrowserCookies) Call(c Client) error
Call sends the request.
func (NetworkClearBrowserCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkClearBrowserCookies) ProtoReq() string
ProtoReq name.
type NetworkClientSecurityState ¶ added in v0.90.0
type NetworkClientSecurityState struct { // InitiatorIsSecureContext ... InitiatorIsSecureContext bool `json:"initiatorIsSecureContext"` // InitiatorIPAddressSpace ... InitiatorIPAddressSpace NetworkIPAddressSpace `json:"initiatorIPAddressSpace"` // PrivateNetworkRequestPolicy ... PrivateNetworkRequestPolicy NetworkPrivateNetworkRequestPolicy `json:"privateNetworkRequestPolicy"` }
NetworkClientSecurityState (experimental) ...
type NetworkConnectTiming ¶ added in v0.102.0
type NetworkConnectTiming struct { // RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in // milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for // the same request (but not for redirected requests). RequestTime float64 `json:"requestTime"` }
NetworkConnectTiming (experimental) ...
type NetworkConnectionType ¶
type NetworkConnectionType string
NetworkConnectionType The underlying connection technology that the browser is supposedly using.
const ( // NetworkConnectionTypeNone enum const. NetworkConnectionTypeNone NetworkConnectionType = "none" // NetworkConnectionTypeCellular2g enum const. NetworkConnectionTypeCellular2g NetworkConnectionType = "cellular2g" // NetworkConnectionTypeCellular3g enum const. NetworkConnectionTypeCellular3g NetworkConnectionType = "cellular3g" // NetworkConnectionTypeCellular4g enum const. NetworkConnectionTypeCellular4g NetworkConnectionType = "cellular4g" // NetworkConnectionTypeBluetooth enum const. NetworkConnectionTypeBluetooth NetworkConnectionType = "bluetooth" // NetworkConnectionTypeEthernet enum const. NetworkConnectionTypeEthernet NetworkConnectionType = "ethernet" // NetworkConnectionTypeWifi enum const. NetworkConnectionTypeWifi NetworkConnectionType = "wifi" // NetworkConnectionTypeWimax enum const. NetworkConnectionTypeWimax NetworkConnectionType = "wimax" // NetworkConnectionTypeOther enum const. NetworkConnectionTypeOther NetworkConnectionType = "other" )
type NetworkContentEncoding ¶ added in v0.97.5
type NetworkContentEncoding string
NetworkContentEncoding (experimental) List of content encodings supported by the backend.
const ( // NetworkContentEncodingDeflate enum const. NetworkContentEncodingDeflate NetworkContentEncoding = "deflate" // NetworkContentEncodingGzip enum const. NetworkContentEncodingGzip NetworkContentEncoding = "gzip" // NetworkContentEncodingBr enum const. NetworkContentEncodingBr NetworkContentEncoding = "br" // NetworkContentEncodingZstd enum const. NetworkContentEncodingZstd NetworkContentEncoding = "zstd" )
type NetworkContentSecurityPolicySource ¶ added in v0.115.0
type NetworkContentSecurityPolicySource string
NetworkContentSecurityPolicySource (experimental) ...
const ( // NetworkContentSecurityPolicySourceHTTP enum const. NetworkContentSecurityPolicySourceHTTP NetworkContentSecurityPolicySource = "HTTP" // NetworkContentSecurityPolicySourceMeta enum const. NetworkContentSecurityPolicySourceMeta NetworkContentSecurityPolicySource = "Meta" )
type NetworkContentSecurityPolicyStatus ¶ added in v0.115.0
type NetworkContentSecurityPolicyStatus struct { // EffectiveDirectives ... EffectiveDirectives string `json:"effectiveDirectives"` // IsEnforced ... IsEnforced bool `json:"isEnforced"` // Source ... Source NetworkContentSecurityPolicySource `json:"source"` }
NetworkContentSecurityPolicyStatus (experimental) ...
type NetworkContinueInterceptedRequest ¶
type NetworkContinueInterceptedRequest struct { // InterceptionID ... InterceptionID NetworkInterceptionID `json:"interceptionId"` // ErrorReason (optional) If set this causes the request to fail with the given reason. Passing `Aborted` for requests // marked with `isNavigationRequest` also cancels the navigation. Must not be set in response // to an authChallenge. ErrorReason NetworkErrorReason `json:"errorReason,omitempty"` // RawResponse (optional) If set the requests completes using with the provided base64 encoded raw response, including // HTTP status line and headers etc... Must not be set in response to an authChallenge. RawResponse []byte `json:"rawResponse,omitempty"` // URL (optional) If set the request url will be modified in a way that's not observable by page. Must not be // set in response to an authChallenge. URL string `json:"url,omitempty"` // Method (optional) If set this allows the request method to be overridden. Must not be set in response to an // authChallenge. Method string `json:"method,omitempty"` // PostData (optional) If set this allows postData to be set. Must not be set in response to an authChallenge. PostData string `json:"postData,omitempty"` // Headers (optional) If set this allows the request headers to be changed. Must not be set in response to an // authChallenge. Headers NetworkHeaders `json:"headers,omitempty"` // AuthChallengeResponse (optional) Response to a requestIntercepted with an authChallenge. Must not be set otherwise. AuthChallengeResponse *NetworkAuthChallengeResponse `json:"authChallengeResponse,omitempty"` }
NetworkContinueInterceptedRequest (deprecated) (experimental) 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 (NetworkContinueInterceptedRequest) Call ¶
func (m NetworkContinueInterceptedRequest) Call(c Client) error
Call sends the request.
func (NetworkContinueInterceptedRequest) ProtoReq ¶ added in v0.74.0
func (m NetworkContinueInterceptedRequest) ProtoReq() string
ProtoReq name.
type NetworkCookie ¶
type NetworkCookie struct { // Name Cookie name. Name string `json:"name"` // Value Cookie value. Value string `json:"value"` // Domain Cookie domain. Domain string `json:"domain"` // Path Cookie path. Path string `json:"path"` // Expires Cookie expiration date Expires TimeSinceEpoch `json:"expires"` // Size Cookie size. Size int `json:"size"` // HTTPOnly True if cookie is http-only. HTTPOnly bool `json:"httpOnly"` // Secure True if cookie is secure. Secure bool `json:"secure"` // Session True in case of session cookie. Session bool `json:"session"` // SameSite (optional) Cookie SameSite type. SameSite NetworkCookieSameSite `json:"sameSite,omitempty"` // Priority (experimental) Cookie Priority Priority NetworkCookiePriority `json:"priority"` // SameParty (deprecated) (experimental) True if cookie is SameParty. SameParty bool `json:"sameParty"` // SourceScheme (experimental) Cookie source scheme type. SourceScheme NetworkCookieSourceScheme `json:"sourceScheme"` // SourcePort (experimental) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. // This is a temporary ability and it will be removed in the future. SourcePort int `json:"sourcePort"` // PartitionKey (experimental) (optional) Cookie partition key. PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"` // PartitionKeyOpaque (experimental) (optional) True if cookie partition key is opaque. PartitionKeyOpaque bool `json:"partitionKeyOpaque,omitempty"` }
NetworkCookie Cookie object.
type NetworkCookieBlockedReason ¶
type NetworkCookieBlockedReason string
NetworkCookieBlockedReason (experimental) Types of reasons why a cookie may not be sent with a request.
const ( // NetworkCookieBlockedReasonSecureOnly enum const. NetworkCookieBlockedReasonSecureOnly NetworkCookieBlockedReason = "SecureOnly" // NetworkCookieBlockedReasonNotOnPath enum const. NetworkCookieBlockedReasonNotOnPath NetworkCookieBlockedReason = "NotOnPath" // NetworkCookieBlockedReasonDomainMismatch enum const. NetworkCookieBlockedReasonDomainMismatch NetworkCookieBlockedReason = "DomainMismatch" // NetworkCookieBlockedReasonSameSiteStrict enum const. NetworkCookieBlockedReasonSameSiteStrict NetworkCookieBlockedReason = "SameSiteStrict" // NetworkCookieBlockedReasonSameSiteLax enum const. NetworkCookieBlockedReasonSameSiteLax NetworkCookieBlockedReason = "SameSiteLax" // NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const. NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" // NetworkCookieBlockedReasonSameSiteNoneInsecure enum const. NetworkCookieBlockedReasonSameSiteNoneInsecure NetworkCookieBlockedReason = "SameSiteNoneInsecure" // NetworkCookieBlockedReasonUserPreferences enum const. NetworkCookieBlockedReasonUserPreferences NetworkCookieBlockedReason = "UserPreferences" // NetworkCookieBlockedReasonThirdPartyPhaseout enum const. NetworkCookieBlockedReasonThirdPartyPhaseout NetworkCookieBlockedReason = "ThirdPartyPhaseout" // NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const. NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet" // NetworkCookieBlockedReasonUnknownError enum const. NetworkCookieBlockedReasonUnknownError NetworkCookieBlockedReason = "UnknownError" // NetworkCookieBlockedReasonSchemefulSameSiteStrict enum const. NetworkCookieBlockedReasonSchemefulSameSiteStrict NetworkCookieBlockedReason = "SchemefulSameSiteStrict" // NetworkCookieBlockedReasonSchemefulSameSiteLax enum const. NetworkCookieBlockedReasonSchemefulSameSiteLax NetworkCookieBlockedReason = "SchemefulSameSiteLax" // NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const. NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax" // NetworkCookieBlockedReasonSamePartyFromCrossPartyContext enum const. NetworkCookieBlockedReasonSamePartyFromCrossPartyContext NetworkCookieBlockedReason = "SamePartyFromCrossPartyContext" // NetworkCookieBlockedReasonNameValuePairExceedsMaxSize enum const. NetworkCookieBlockedReasonNameValuePairExceedsMaxSize NetworkCookieBlockedReason = "NameValuePairExceedsMaxSize" )
type NetworkCookieExemptionReason ¶ added in v0.115.0
type NetworkCookieExemptionReason string
NetworkCookieExemptionReason (experimental) Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
const ( // NetworkCookieExemptionReasonNone enum const. NetworkCookieExemptionReasonNone NetworkCookieExemptionReason = "None" // NetworkCookieExemptionReasonUserSetting enum const. NetworkCookieExemptionReasonUserSetting NetworkCookieExemptionReason = "UserSetting" // NetworkCookieExemptionReasonTPCDMetadata enum const. NetworkCookieExemptionReasonTPCDMetadata NetworkCookieExemptionReason = "TPCDMetadata" // NetworkCookieExemptionReasonTPCDDeprecationTrial enum const. NetworkCookieExemptionReasonTPCDDeprecationTrial NetworkCookieExemptionReason = "TPCDDeprecationTrial" // NetworkCookieExemptionReasonTPCDHeuristics enum const. NetworkCookieExemptionReasonTPCDHeuristics NetworkCookieExemptionReason = "TPCDHeuristics" // NetworkCookieExemptionReasonEnterprisePolicy enum const. NetworkCookieExemptionReasonEnterprisePolicy NetworkCookieExemptionReason = "EnterprisePolicy" // NetworkCookieExemptionReasonStorageAccess enum const. NetworkCookieExemptionReasonStorageAccess NetworkCookieExemptionReason = "StorageAccess" // NetworkCookieExemptionReasonTopLevelStorageAccess enum const. NetworkCookieExemptionReasonTopLevelStorageAccess NetworkCookieExemptionReason = "TopLevelStorageAccess" // NetworkCookieExemptionReasonCorsOptIn enum const. NetworkCookieExemptionReasonCorsOptIn NetworkCookieExemptionReason = "CorsOptIn" // NetworkCookieExemptionReasonScheme enum const. NetworkCookieExemptionReasonScheme NetworkCookieExemptionReason = "Scheme" )
type NetworkCookieParam ¶
type NetworkCookieParam struct { // Name Cookie name. Name string `json:"name"` // Value Cookie value. Value string `json:"value"` // URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the // default domain, path, source port, and source scheme values of the created cookie. URL string `json:"url,omitempty"` // Domain (optional) Cookie domain. Domain string `json:"domain,omitempty"` // Path (optional) Cookie path. Path string `json:"path,omitempty"` // Secure (optional) True if cookie is secure. Secure bool `json:"secure,omitempty"` // HTTPOnly (optional) True if cookie is http-only. HTTPOnly bool `json:"httpOnly,omitempty"` // SameSite (optional) Cookie SameSite type. SameSite NetworkCookieSameSite `json:"sameSite,omitempty"` // Expires (optional) Cookie expiration date, session cookie if not set Expires TimeSinceEpoch `json:"expires,omitempty"` // Priority (experimental) (optional) Cookie Priority. Priority NetworkCookiePriority `json:"priority,omitempty"` // SameParty (experimental) (optional) True if cookie is SameParty. SameParty bool `json:"sameParty,omitempty"` // SourceScheme (experimental) (optional) Cookie source scheme type. SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"` // SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. // This is a temporary ability and it will be removed in the future. SourcePort *int `json:"sourcePort,omitempty"` // PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned. PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"` }
NetworkCookieParam Cookie parameter object.
func CookiesToParams ¶ added in v0.71.0
func CookiesToParams(cookies []*NetworkCookie) []*NetworkCookieParam
CookiesToParams converts Cookies list to NetworkCookieParam list.
type NetworkCookiePartitionKey ¶ added in v0.116.2
type NetworkCookiePartitionKey struct { // TopLevelSite The site of the top-level URL the browser was visiting at the start // of the request to the endpoint that set the cookie. TopLevelSite string `json:"topLevelSite"` // HasCrossSiteAncestor Indicates if the cookie has any ancestors that are cross-site to the topLevelSite. HasCrossSiteAncestor bool `json:"hasCrossSiteAncestor"` }
NetworkCookiePartitionKey (experimental) cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.
type NetworkCookiePriority ¶
type NetworkCookiePriority string
NetworkCookiePriority (experimental) Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00
const ( // NetworkCookiePriorityLow enum const. NetworkCookiePriorityLow NetworkCookiePriority = "Low" // NetworkCookiePriorityMedium enum const. NetworkCookiePriorityMedium NetworkCookiePriority = "Medium" // NetworkCookiePriorityHigh enum const. NetworkCookiePriorityHigh NetworkCookiePriority = "High" )
type NetworkCookieSameSite ¶
type NetworkCookieSameSite string
NetworkCookieSameSite Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
const ( // NetworkCookieSameSiteStrict enum const. NetworkCookieSameSiteStrict NetworkCookieSameSite = "Strict" // NetworkCookieSameSiteLax enum const. NetworkCookieSameSiteLax NetworkCookieSameSite = "Lax" // NetworkCookieSameSiteNone enum const. NetworkCookieSameSiteNone NetworkCookieSameSite = "None" )
type NetworkCookieSourceScheme ¶ added in v0.93.0
type NetworkCookieSourceScheme string
NetworkCookieSourceScheme (experimental) Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.
const ( // NetworkCookieSourceSchemeUnset enum const. NetworkCookieSourceSchemeUnset NetworkCookieSourceScheme = "Unset" // NetworkCookieSourceSchemeNonSecure enum const. NetworkCookieSourceSchemeNonSecure NetworkCookieSourceScheme = "NonSecure" // NetworkCookieSourceSchemeSecure enum const. NetworkCookieSourceSchemeSecure NetworkCookieSourceScheme = "Secure" )
type NetworkCorsError ¶ added in v0.90.0
type NetworkCorsError string
NetworkCorsError The reason why request was blocked.
const ( // NetworkCorsErrorDisallowedByMode enum const. NetworkCorsErrorDisallowedByMode NetworkCorsError = "DisallowedByMode" // NetworkCorsErrorInvalidResponse enum const. NetworkCorsErrorInvalidResponse NetworkCorsError = "InvalidResponse" // NetworkCorsErrorWildcardOriginNotAllowed enum const. NetworkCorsErrorWildcardOriginNotAllowed NetworkCorsError = "WildcardOriginNotAllowed" // NetworkCorsErrorMissingAllowOriginHeader enum const. NetworkCorsErrorMissingAllowOriginHeader NetworkCorsError = "MissingAllowOriginHeader" // NetworkCorsErrorMultipleAllowOriginValues enum const. NetworkCorsErrorMultipleAllowOriginValues NetworkCorsError = "MultipleAllowOriginValues" // NetworkCorsErrorInvalidAllowOriginValue enum const. NetworkCorsErrorInvalidAllowOriginValue NetworkCorsError = "InvalidAllowOriginValue" // NetworkCorsErrorAllowOriginMismatch enum const. NetworkCorsErrorAllowOriginMismatch NetworkCorsError = "AllowOriginMismatch" // NetworkCorsErrorInvalidAllowCredentials enum const. NetworkCorsErrorInvalidAllowCredentials NetworkCorsError = "InvalidAllowCredentials" // NetworkCorsErrorCorsDisabledScheme enum const. NetworkCorsErrorCorsDisabledScheme NetworkCorsError = "CorsDisabledScheme" // NetworkCorsErrorPreflightInvalidStatus enum const. NetworkCorsErrorPreflightInvalidStatus NetworkCorsError = "PreflightInvalidStatus" // NetworkCorsErrorPreflightDisallowedRedirect enum const. NetworkCorsErrorPreflightDisallowedRedirect NetworkCorsError = "PreflightDisallowedRedirect" // NetworkCorsErrorPreflightWildcardOriginNotAllowed enum const. NetworkCorsErrorPreflightWildcardOriginNotAllowed NetworkCorsError = "PreflightWildcardOriginNotAllowed" // NetworkCorsErrorPreflightMissingAllowOriginHeader enum const. NetworkCorsErrorPreflightMissingAllowOriginHeader NetworkCorsError = "PreflightMissingAllowOriginHeader" // NetworkCorsErrorPreflightMultipleAllowOriginValues enum const. NetworkCorsErrorPreflightMultipleAllowOriginValues NetworkCorsError = "PreflightMultipleAllowOriginValues" // NetworkCorsErrorPreflightInvalidAllowOriginValue enum const. NetworkCorsErrorPreflightInvalidAllowOriginValue NetworkCorsError = "PreflightInvalidAllowOriginValue" // NetworkCorsErrorPreflightAllowOriginMismatch enum const. NetworkCorsErrorPreflightAllowOriginMismatch NetworkCorsError = "PreflightAllowOriginMismatch" // NetworkCorsErrorPreflightInvalidAllowCredentials enum const. NetworkCorsErrorPreflightInvalidAllowCredentials NetworkCorsError = "PreflightInvalidAllowCredentials" // NetworkCorsErrorPreflightMissingAllowExternal enum const. NetworkCorsErrorPreflightMissingAllowExternal NetworkCorsError = "PreflightMissingAllowExternal" // NetworkCorsErrorPreflightInvalidAllowExternal enum const. NetworkCorsErrorPreflightInvalidAllowExternal NetworkCorsError = "PreflightInvalidAllowExternal" // NetworkCorsErrorPreflightMissingAllowPrivateNetwork enum const. NetworkCorsErrorPreflightMissingAllowPrivateNetwork NetworkCorsError = "PreflightMissingAllowPrivateNetwork" // NetworkCorsErrorPreflightInvalidAllowPrivateNetwork enum const. NetworkCorsErrorPreflightInvalidAllowPrivateNetwork NetworkCorsError = "PreflightInvalidAllowPrivateNetwork" // NetworkCorsErrorInvalidAllowMethodsPreflightResponse enum const. NetworkCorsErrorInvalidAllowMethodsPreflightResponse NetworkCorsError = "InvalidAllowMethodsPreflightResponse" // NetworkCorsErrorInvalidAllowHeadersPreflightResponse enum const. NetworkCorsErrorInvalidAllowHeadersPreflightResponse NetworkCorsError = "InvalidAllowHeadersPreflightResponse" // NetworkCorsErrorMethodDisallowedByPreflightResponse enum const. NetworkCorsErrorMethodDisallowedByPreflightResponse NetworkCorsError = "MethodDisallowedByPreflightResponse" // NetworkCorsErrorHeaderDisallowedByPreflightResponse enum const. NetworkCorsErrorHeaderDisallowedByPreflightResponse NetworkCorsError = "HeaderDisallowedByPreflightResponse" // NetworkCorsErrorRedirectContainsCredentials enum const. NetworkCorsErrorRedirectContainsCredentials NetworkCorsError = "RedirectContainsCredentials" // NetworkCorsErrorInsecurePrivateNetwork enum const. NetworkCorsErrorInsecurePrivateNetwork NetworkCorsError = "InsecurePrivateNetwork" // NetworkCorsErrorInvalidPrivateNetworkAccess enum const. NetworkCorsErrorInvalidPrivateNetworkAccess NetworkCorsError = "InvalidPrivateNetworkAccess" // NetworkCorsErrorUnexpectedPrivateNetworkAccess enum const. NetworkCorsErrorUnexpectedPrivateNetworkAccess NetworkCorsError = "UnexpectedPrivateNetworkAccess" // NetworkCorsErrorNoCorsRedirectModeNotFollow enum const. NetworkCorsErrorNoCorsRedirectModeNotFollow NetworkCorsError = "NoCorsRedirectModeNotFollow" // NetworkCorsErrorPreflightMissingPrivateNetworkAccessID enum const. NetworkCorsErrorPreflightMissingPrivateNetworkAccessID NetworkCorsError = "PreflightMissingPrivateNetworkAccessId" // NetworkCorsErrorPreflightMissingPrivateNetworkAccessName enum const. NetworkCorsErrorPreflightMissingPrivateNetworkAccessName NetworkCorsError = "PreflightMissingPrivateNetworkAccessName" NetworkCorsErrorPrivateNetworkAccessPermissionUnavailable NetworkCorsError = "PrivateNetworkAccessPermissionUnavailable" // NetworkCorsErrorPrivateNetworkAccessPermissionDenied enum const. NetworkCorsErrorPrivateNetworkAccessPermissionDenied NetworkCorsError = "PrivateNetworkAccessPermissionDenied" )
type NetworkCorsErrorStatus ¶ added in v0.90.0
type NetworkCorsErrorStatus struct { // CorsError ... CorsError NetworkCorsError `json:"corsError"` // FailedParameter ... FailedParameter string `json:"failedParameter"` }
NetworkCorsErrorStatus ...
type NetworkCrossOriginEmbedderPolicyStatus ¶ added in v0.72.0
type NetworkCrossOriginEmbedderPolicyStatus struct { // Value ... Value NetworkCrossOriginEmbedderPolicyValue `json:"value"` // ReportOnlyValue ... ReportOnlyValue NetworkCrossOriginEmbedderPolicyValue `json:"reportOnlyValue"` // ReportingEndpoint (optional) ... ReportingEndpoint string `json:"reportingEndpoint,omitempty"` // ReportOnlyReportingEndpoint (optional) ... ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"` }
NetworkCrossOriginEmbedderPolicyStatus (experimental) ...
type NetworkCrossOriginEmbedderPolicyValue ¶ added in v0.72.0
type NetworkCrossOriginEmbedderPolicyValue string
NetworkCrossOriginEmbedderPolicyValue (experimental) ...
const ( // NetworkCrossOriginEmbedderPolicyValueNone enum const. NetworkCrossOriginEmbedderPolicyValueNone NetworkCrossOriginEmbedderPolicyValue = "None" // NetworkCrossOriginEmbedderPolicyValueCredentialless enum const. NetworkCrossOriginEmbedderPolicyValueCredentialless NetworkCrossOriginEmbedderPolicyValue = "Credentialless" // NetworkCrossOriginEmbedderPolicyValueRequireCorp enum const. NetworkCrossOriginEmbedderPolicyValueRequireCorp NetworkCrossOriginEmbedderPolicyValue = "RequireCorp" )
type NetworkCrossOriginOpenerPolicyStatus ¶ added in v0.72.0
type NetworkCrossOriginOpenerPolicyStatus struct { // Value ... Value NetworkCrossOriginOpenerPolicyValue `json:"value"` // ReportOnlyValue ... ReportOnlyValue NetworkCrossOriginOpenerPolicyValue `json:"reportOnlyValue"` // ReportingEndpoint (optional) ... ReportingEndpoint string `json:"reportingEndpoint,omitempty"` // ReportOnlyReportingEndpoint (optional) ... ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"` }
NetworkCrossOriginOpenerPolicyStatus (experimental) ...
type NetworkCrossOriginOpenerPolicyValue ¶ added in v0.72.0
type NetworkCrossOriginOpenerPolicyValue string
NetworkCrossOriginOpenerPolicyValue (experimental) ...
const ( // NetworkCrossOriginOpenerPolicyValueSameOrigin enum const. NetworkCrossOriginOpenerPolicyValueSameOrigin NetworkCrossOriginOpenerPolicyValue = "SameOrigin" // NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups enum const. NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups NetworkCrossOriginOpenerPolicyValue = "SameOriginAllowPopups" // NetworkCrossOriginOpenerPolicyValueRestrictProperties enum const. NetworkCrossOriginOpenerPolicyValueRestrictProperties NetworkCrossOriginOpenerPolicyValue = "RestrictProperties" // NetworkCrossOriginOpenerPolicyValueUnsafeNone enum const. NetworkCrossOriginOpenerPolicyValueUnsafeNone NetworkCrossOriginOpenerPolicyValue = "UnsafeNone" // NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep enum const. NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep NetworkCrossOriginOpenerPolicyValue = "SameOriginPlusCoep" // NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep enum const. NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep NetworkCrossOriginOpenerPolicyValue = "RestrictPropertiesPlusCoep" )
type NetworkDataReceived ¶
type NetworkDataReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // DataLength Data chunk length. DataLength int `json:"dataLength"` // EncodedDataLength Actual bytes received (might be less than dataLength for compressed encodings). EncodedDataLength int `json:"encodedDataLength"` // Data (experimental) (optional) Data that was received. Data []byte `json:"data,omitempty"` }
NetworkDataReceived Fired when data chunk was received over the network.
func (NetworkDataReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkDataReceived) ProtoEvent() string
ProtoEvent name.
type NetworkDeleteCookies ¶
type NetworkDeleteCookies struct { // Name of the cookies to remove. Name string `json:"name"` // URL (optional) If specified, deletes all the cookies with the given name where domain and path match // provided URL. URL string `json:"url,omitempty"` // Domain (optional) If specified, deletes only cookies with the exact domain. Domain string `json:"domain,omitempty"` // Path (optional) If specified, deletes only cookies with the exact path. Path string `json:"path,omitempty"` // PartitionKey (experimental) (optional) If specified, deletes only cookies with the the given name and partitionKey where // all partition key attributes match the cookie partition key attribute. PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"` }
NetworkDeleteCookies Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
func (NetworkDeleteCookies) Call ¶
func (m NetworkDeleteCookies) Call(c Client) error
Call sends the request.
func (NetworkDeleteCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkDeleteCookies) ProtoReq() string
ProtoReq name.
type NetworkDisable ¶
type NetworkDisable struct{}
NetworkDisable Disables network tracking, prevents network events from being sent to the client.
func (NetworkDisable) ProtoReq ¶ added in v0.74.0
func (m NetworkDisable) ProtoReq() string
ProtoReq name.
type NetworkEmulateNetworkConditions ¶
type NetworkEmulateNetworkConditions struct { // Offline True to emulate internet disconnection. Offline bool `json:"offline"` // Latency Minimum latency from request sent to response headers received (ms). Latency float64 `json:"latency"` // DownloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. DownloadThroughput float64 `json:"downloadThroughput"` // UploadThroughput Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. UploadThroughput float64 `json:"uploadThroughput"` // ConnectionType (optional) Connection type if known. ConnectionType NetworkConnectionType `json:"connectionType,omitempty"` // PacketLoss (experimental) (optional) WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets. PacketLoss *float64 `json:"packetLoss,omitempty"` // PacketQueueLength (experimental) (optional) WebRTC packet queue length (packet). 0 removes any queue length limitations. PacketQueueLength *int `json:"packetQueueLength,omitempty"` // PacketReordering (experimental) (optional) WebRTC packetReordering feature. PacketReordering bool `json:"packetReordering,omitempty"` }
NetworkEmulateNetworkConditions Activates emulation of network conditions.
func (NetworkEmulateNetworkConditions) Call ¶
func (m NetworkEmulateNetworkConditions) Call(c Client) error
Call sends the request.
func (NetworkEmulateNetworkConditions) ProtoReq ¶ added in v0.74.0
func (m NetworkEmulateNetworkConditions) ProtoReq() string
ProtoReq name.
type NetworkEnable ¶
type NetworkEnable struct { // MaxTotalBufferSize (experimental) (optional) Buffer size in bytes to use when preserving network payloads (XHRs, etc). MaxTotalBufferSize *int `json:"maxTotalBufferSize,omitempty"` // MaxResourceBufferSize (experimental) (optional) Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). MaxResourceBufferSize *int `json:"maxResourceBufferSize,omitempty"` // MaxPostDataSize (optional) Longest post body size (in bytes) that would be included in requestWillBeSent notification MaxPostDataSize *int `json:"maxPostDataSize,omitempty"` }
NetworkEnable Enables network tracking, network events will now be delivered to the client.
func (NetworkEnable) ProtoReq ¶ added in v0.74.0
func (m NetworkEnable) ProtoReq() string
ProtoReq name.
type NetworkEnableReportingAPI ¶ added in v0.102.0
type NetworkEnableReportingAPI struct { // Enable Whether to enable or disable events for the Reporting API Enable bool `json:"enable"` }
NetworkEnableReportingAPI (experimental) Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.
func (NetworkEnableReportingAPI) Call ¶ added in v0.102.0
func (m NetworkEnableReportingAPI) Call(c Client) error
Call sends the request.
func (NetworkEnableReportingAPI) ProtoReq ¶ added in v0.102.0
func (m NetworkEnableReportingAPI) ProtoReq() string
ProtoReq name.
type NetworkErrorReason ¶
type NetworkErrorReason string
NetworkErrorReason Network level fetch failure reason.
const ( // NetworkErrorReasonFailed enum const. NetworkErrorReasonFailed NetworkErrorReason = "Failed" // NetworkErrorReasonAborted enum const. NetworkErrorReasonAborted NetworkErrorReason = "Aborted" // NetworkErrorReasonTimedOut enum const. NetworkErrorReasonTimedOut NetworkErrorReason = "TimedOut" // NetworkErrorReasonAccessDenied enum const. NetworkErrorReasonAccessDenied NetworkErrorReason = "AccessDenied" // NetworkErrorReasonConnectionClosed enum const. NetworkErrorReasonConnectionClosed NetworkErrorReason = "ConnectionClosed" // NetworkErrorReasonConnectionReset enum const. NetworkErrorReasonConnectionReset NetworkErrorReason = "ConnectionReset" // NetworkErrorReasonConnectionRefused enum const. NetworkErrorReasonConnectionRefused NetworkErrorReason = "ConnectionRefused" // NetworkErrorReasonConnectionAborted enum const. NetworkErrorReasonConnectionAborted NetworkErrorReason = "ConnectionAborted" // NetworkErrorReasonConnectionFailed enum const. NetworkErrorReasonConnectionFailed NetworkErrorReason = "ConnectionFailed" // NetworkErrorReasonNameNotResolved enum const. NetworkErrorReasonNameNotResolved NetworkErrorReason = "NameNotResolved" // NetworkErrorReasonInternetDisconnected enum const. NetworkErrorReasonInternetDisconnected NetworkErrorReason = "InternetDisconnected" // NetworkErrorReasonAddressUnreachable enum const. NetworkErrorReasonAddressUnreachable NetworkErrorReason = "AddressUnreachable" // NetworkErrorReasonBlockedByClient enum const. NetworkErrorReasonBlockedByClient NetworkErrorReason = "BlockedByClient" // NetworkErrorReasonBlockedByResponse enum const. NetworkErrorReasonBlockedByResponse NetworkErrorReason = "BlockedByResponse" )
type NetworkEventSourceMessageReceived ¶
type NetworkEventSourceMessageReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // EventName Message type. EventName string `json:"eventName"` // EventID Message identifier. EventID string `json:"eventId"` // Data Message content. Data string `json:"data"` }
NetworkEventSourceMessageReceived Fired when EventSource message is received.
func (NetworkEventSourceMessageReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkEventSourceMessageReceived) ProtoEvent() string
ProtoEvent name.
type NetworkExemptedSetCookieWithReason ¶ added in v0.115.0
type NetworkExemptedSetCookieWithReason struct { // ExemptionReason The reason the cookie was exempted. ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason"` // CookieLine The string representing this individual cookie as it would appear in the header. CookieLine string `json:"cookieLine"` // Cookie The cookie object representing the cookie. Cookie *NetworkCookie `json:"cookie"` }
NetworkExemptedSetCookieWithReason (experimental) A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.
type NetworkGetAllCookies ¶
type NetworkGetAllCookies struct{}
NetworkGetAllCookies (deprecated) Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the `cookies` field. Deprecated. Use Storage.getCookies instead.
func (NetworkGetAllCookies) Call ¶
func (m NetworkGetAllCookies) Call(c Client) (*NetworkGetAllCookiesResult, error)
Call the request.
func (NetworkGetAllCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkGetAllCookies) ProtoReq() string
ProtoReq name.
type NetworkGetAllCookiesResult ¶
type NetworkGetAllCookiesResult struct { // Cookies Array of cookie objects. Cookies []*NetworkCookie `json:"cookies"` }
NetworkGetAllCookiesResult (deprecated) ...
type NetworkGetCertificate ¶
type NetworkGetCertificate struct { // Origin to get certificate for. Origin string `json:"origin"` }
NetworkGetCertificate (experimental) Returns the DER-encoded certificate.
func (NetworkGetCertificate) Call ¶
func (m NetworkGetCertificate) Call(c Client) (*NetworkGetCertificateResult, error)
Call the request.
func (NetworkGetCertificate) ProtoReq ¶ added in v0.74.0
func (m NetworkGetCertificate) ProtoReq() string
ProtoReq name.
type NetworkGetCertificateResult ¶
type NetworkGetCertificateResult struct { // TableNames ... TableNames []string `json:"tableNames"` }
NetworkGetCertificateResult (experimental) ...
type NetworkGetCookies ¶
type NetworkGetCookies struct { // Urls (optional) The list of URLs for which applicable cookies will be fetched. // If not specified, it's assumed to be set to the list containing // the URLs of the page and all of its subframes. Urls []string `json:"urls,omitempty"` }
NetworkGetCookies Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the `cookies` field.
func (NetworkGetCookies) Call ¶
func (m NetworkGetCookies) Call(c Client) (*NetworkGetCookiesResult, error)
Call the request.
func (NetworkGetCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkGetCookies) ProtoReq() string
ProtoReq name.
type NetworkGetCookiesResult ¶
type NetworkGetCookiesResult struct { // Cookies Array of cookie objects. Cookies []*NetworkCookie `json:"cookies"` }
NetworkGetCookiesResult ...
type NetworkGetRequestPostData ¶
type NetworkGetRequestPostData struct { // RequestID Identifier of the network request to get content for. RequestID NetworkRequestID `json:"requestId"` }
NetworkGetRequestPostData Returns post data sent with the request. Returns an error when no data was sent with the request.
func (NetworkGetRequestPostData) Call ¶
func (m NetworkGetRequestPostData) Call(c Client) (*NetworkGetRequestPostDataResult, error)
Call the request.
func (NetworkGetRequestPostData) ProtoReq ¶ added in v0.74.0
func (m NetworkGetRequestPostData) ProtoReq() string
ProtoReq name.
type NetworkGetRequestPostDataResult ¶
type NetworkGetRequestPostDataResult struct { // PostData Request body string, omitting files from multipart requests PostData string `json:"postData"` }
NetworkGetRequestPostDataResult ...
type NetworkGetResponseBody ¶
type NetworkGetResponseBody struct { // RequestID Identifier of the network request to get content for. RequestID NetworkRequestID `json:"requestId"` }
NetworkGetResponseBody Returns content served for the given request.
func (NetworkGetResponseBody) Call ¶
func (m NetworkGetResponseBody) Call(c Client) (*NetworkGetResponseBodyResult, error)
Call the request.
func (NetworkGetResponseBody) ProtoReq ¶ added in v0.74.0
func (m NetworkGetResponseBody) ProtoReq() string
ProtoReq name.
type NetworkGetResponseBodyForInterception ¶
type NetworkGetResponseBodyForInterception struct { // InterceptionID Identifier for the intercepted request to get body for. InterceptionID NetworkInterceptionID `json:"interceptionId"` }
NetworkGetResponseBodyForInterception (experimental) Returns content served for the given currently intercepted request.
func (NetworkGetResponseBodyForInterception) Call ¶
func (m NetworkGetResponseBodyForInterception) Call(c Client) (*NetworkGetResponseBodyForInterceptionResult, error)
Call the request.
func (NetworkGetResponseBodyForInterception) ProtoReq ¶ added in v0.74.0
func (m NetworkGetResponseBodyForInterception) ProtoReq() string
ProtoReq name.
type NetworkGetResponseBodyForInterceptionResult ¶
type NetworkGetResponseBodyForInterceptionResult struct { // Body Response body. Body string `json:"body"` // Base64Encoded True, if content was sent as base64. Base64Encoded bool `json:"base64Encoded"` }
NetworkGetResponseBodyForInterceptionResult (experimental) ...
type NetworkGetResponseBodyResult ¶
type NetworkGetResponseBodyResult struct { // Body Response body. Body string `json:"body"` // Base64Encoded True, if content was sent as base64. Base64Encoded bool `json:"base64Encoded"` }
NetworkGetResponseBodyResult ...
type NetworkGetSecurityIsolationStatus ¶ added in v0.72.0
type NetworkGetSecurityIsolationStatus struct { // FrameID (optional) If no frameId is provided, the status of the target is provided. FrameID PageFrameID `json:"frameId,omitempty"` }
NetworkGetSecurityIsolationStatus (experimental) Returns information about the COEP/COOP isolation status.
func (NetworkGetSecurityIsolationStatus) Call ¶ added in v0.72.0
func (m NetworkGetSecurityIsolationStatus) Call(c Client) (*NetworkGetSecurityIsolationStatusResult, error)
Call the request.
func (NetworkGetSecurityIsolationStatus) ProtoReq ¶ added in v0.74.0
func (m NetworkGetSecurityIsolationStatus) ProtoReq() string
ProtoReq name.
type NetworkGetSecurityIsolationStatusResult ¶ added in v0.72.0
type NetworkGetSecurityIsolationStatusResult struct { // Status ... Status *NetworkSecurityIsolationStatus `json:"status"` }
NetworkGetSecurityIsolationStatusResult (experimental) ...
type NetworkHeaders ¶
NetworkHeaders Request / response headers as keys / values of JSON object.
type NetworkIPAddressSpace ¶ added in v0.90.0
type NetworkIPAddressSpace string
NetworkIPAddressSpace (experimental) ...
const ( // NetworkIPAddressSpaceLocal enum const. NetworkIPAddressSpaceLocal NetworkIPAddressSpace = "Local" // NetworkIPAddressSpacePrivate enum const. NetworkIPAddressSpacePrivate NetworkIPAddressSpace = "Private" // NetworkIPAddressSpacePublic enum const. NetworkIPAddressSpacePublic NetworkIPAddressSpace = "Public" // NetworkIPAddressSpaceUnknown enum const. NetworkIPAddressSpaceUnknown NetworkIPAddressSpace = "Unknown" )
type NetworkInitiator ¶
type NetworkInitiator struct { // Type of this initiator. Type NetworkInitiatorType `json:"type"` // Stack (optional) Initiator JavaScript stack trace, set for Script only. Stack *RuntimeStackTrace `json:"stack,omitempty"` // URL (optional) Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. URL string `json:"url,omitempty"` // LineNumber (optional) Initiator line number, set for Parser type or for Script type (when script is importing // module) (0-based). LineNumber *float64 `json:"lineNumber,omitempty"` // ColumnNumber (optional) Initiator column number, set for Parser type or for Script type (when script is importing // module) (0-based). ColumnNumber *float64 `json:"columnNumber,omitempty"` // RequestID (optional) Set if another request triggered this request (e.g. preflight). RequestID NetworkRequestID `json:"requestId,omitempty"` }
NetworkInitiator Information about the request initiator.
type NetworkInitiatorType ¶
type NetworkInitiatorType string
NetworkInitiatorType enum.
const ( // NetworkInitiatorTypeParser enum const. NetworkInitiatorTypeParser NetworkInitiatorType = "parser" // NetworkInitiatorTypeScript enum const. NetworkInitiatorTypeScript NetworkInitiatorType = "script" // NetworkInitiatorTypePreload enum const. NetworkInitiatorTypePreload NetworkInitiatorType = "preload" // NetworkInitiatorTypeSignedExchange enum const. NetworkInitiatorTypeSignedExchange NetworkInitiatorType = "SignedExchange" // NetworkInitiatorTypePreflight enum const. NetworkInitiatorTypePreflight NetworkInitiatorType = "preflight" // NetworkInitiatorTypeOther enum const. NetworkInitiatorTypeOther NetworkInitiatorType = "other" )
type NetworkInterceptionID ¶
type NetworkInterceptionID string
NetworkInterceptionID Unique intercepted request identifier.
type NetworkInterceptionStage ¶
type NetworkInterceptionStage string
NetworkInterceptionStage (experimental) Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
const ( // NetworkInterceptionStageRequest enum const. NetworkInterceptionStageRequest NetworkInterceptionStage = "Request" // NetworkInterceptionStageHeadersReceived enum const. NetworkInterceptionStageHeadersReceived NetworkInterceptionStage = "HeadersReceived" )
type NetworkLoadNetworkResource ¶ added in v0.82.3
type NetworkLoadNetworkResource struct { // FrameID (optional) Frame id to get the resource for. Mandatory for frame targets, and // should be omitted for worker targets. FrameID PageFrameID `json:"frameId,omitempty"` // URL of the resource to get content for. URL string `json:"url"` // Options for the request. Options *NetworkLoadNetworkResourceOptions `json:"options"` }
NetworkLoadNetworkResource (experimental) Fetches the resource and returns the content.
func (NetworkLoadNetworkResource) Call ¶ added in v0.82.3
func (m NetworkLoadNetworkResource) Call(c Client) (*NetworkLoadNetworkResourceResult, error)
Call the request.
func (NetworkLoadNetworkResource) ProtoReq ¶ added in v0.82.3
func (m NetworkLoadNetworkResource) ProtoReq() string
ProtoReq name.
type NetworkLoadNetworkResourceOptions ¶ added in v0.82.3
type NetworkLoadNetworkResourceOptions struct { // DisableCache ... DisableCache bool `json:"disableCache"` // IncludeCredentials ... IncludeCredentials bool `json:"includeCredentials"` }
NetworkLoadNetworkResourceOptions (experimental) An options object that may be extended later to better support CORS, CORB and streaming.
type NetworkLoadNetworkResourcePageResult ¶ added in v0.82.3
type NetworkLoadNetworkResourcePageResult struct { // Success ... Success bool `json:"success"` // NetError (optional) Optional values used for error reporting. NetError *float64 `json:"netError,omitempty"` // NetErrorName (optional) ... NetErrorName string `json:"netErrorName,omitempty"` // HTTPStatusCode (optional) ... HTTPStatusCode *float64 `json:"httpStatusCode,omitempty"` // Stream (optional) If successful, one of the following two fields holds the result. Stream IOStreamHandle `json:"stream,omitempty"` // Headers (optional) Response headers. Headers NetworkHeaders `json:"headers,omitempty"` }
NetworkLoadNetworkResourcePageResult (experimental) An object providing the result of a network resource load.
type NetworkLoadNetworkResourceResult ¶ added in v0.82.3
type NetworkLoadNetworkResourceResult struct { // Resource ... Resource *NetworkLoadNetworkResourcePageResult `json:"resource"` }
NetworkLoadNetworkResourceResult (experimental) ...
type NetworkLoadingFailed ¶
type NetworkLoadingFailed struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Type Resource type. Type NetworkResourceType `json:"type"` // ErrorText Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h ErrorText string `json:"errorText"` // Canceled (optional) True if loading was canceled. Canceled bool `json:"canceled,omitempty"` // BlockedReason (optional) The reason why loading was blocked, if any. BlockedReason NetworkBlockedReason `json:"blockedReason,omitempty"` // CorsErrorStatus (optional) The reason why loading was blocked by CORS, if any. CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus,omitempty"` }
NetworkLoadingFailed Fired when HTTP request has failed to load.
func (NetworkLoadingFailed) ProtoEvent ¶ added in v0.72.0
func (evt NetworkLoadingFailed) ProtoEvent() string
ProtoEvent name.
type NetworkLoadingFinished ¶
type NetworkLoadingFinished struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // EncodedDataLength Total number of bytes received for this request. EncodedDataLength float64 `json:"encodedDataLength"` }
NetworkLoadingFinished Fired when HTTP request has finished loading.
func (NetworkLoadingFinished) ProtoEvent ¶ added in v0.72.0
func (evt NetworkLoadingFinished) ProtoEvent() string
ProtoEvent name.
type NetworkPolicyUpdated ¶ added in v0.116.2
type NetworkPolicyUpdated struct{}
NetworkPolicyUpdated (experimental) Fired once security policy has been updated.
func (NetworkPolicyUpdated) ProtoEvent ¶ added in v0.116.2
func (evt NetworkPolicyUpdated) ProtoEvent() string
ProtoEvent name.
type NetworkPostDataEntry ¶ added in v0.72.0
type NetworkPostDataEntry struct { // Bytes (optional) ... Bytes []byte `json:"bytes,omitempty"` }
NetworkPostDataEntry Post data entry for HTTP request.
type NetworkPrivateNetworkRequestPolicy ¶ added in v0.90.0
type NetworkPrivateNetworkRequestPolicy string
NetworkPrivateNetworkRequestPolicy (experimental) ...
const ( // NetworkPrivateNetworkRequestPolicyAllow enum const. NetworkPrivateNetworkRequestPolicyAllow NetworkPrivateNetworkRequestPolicy = "Allow" // NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate enum const. NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "BlockFromInsecureToMorePrivate" // NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate enum const. NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "WarnFromInsecureToMorePrivate" // NetworkPrivateNetworkRequestPolicyPreflightBlock enum const. NetworkPrivateNetworkRequestPolicyPreflightBlock NetworkPrivateNetworkRequestPolicy = "PreflightBlock" // NetworkPrivateNetworkRequestPolicyPreflightWarn enum const. NetworkPrivateNetworkRequestPolicyPreflightWarn NetworkPrivateNetworkRequestPolicy = "PreflightWarn" )
type NetworkReplayXHR ¶
type NetworkReplayXHR struct { // RequestID Identifier of XHR to replay. RequestID NetworkRequestID `json:"requestId"` }
NetworkReplayXHR (experimental) 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 (NetworkReplayXHR) Call ¶
func (m NetworkReplayXHR) Call(c Client) error
Call sends the request.
func (NetworkReplayXHR) ProtoReq ¶ added in v0.74.0
func (m NetworkReplayXHR) ProtoReq() string
ProtoReq name.
type NetworkReportID ¶ added in v0.102.0
type NetworkReportID string
NetworkReportID (experimental) ...
type NetworkReportStatus ¶ added in v0.102.0
type NetworkReportStatus string
NetworkReportStatus (experimental) The status of a Reporting API report.
const ( // NetworkReportStatusQueued enum const. NetworkReportStatusQueued NetworkReportStatus = "Queued" // NetworkReportStatusPending enum const. NetworkReportStatusPending NetworkReportStatus = "Pending" // NetworkReportStatusMarkedForRemoval enum const. NetworkReportStatusMarkedForRemoval NetworkReportStatus = "MarkedForRemoval" // NetworkReportStatusSuccess enum const. NetworkReportStatusSuccess NetworkReportStatus = "Success" )
type NetworkReportingAPIEndpoint ¶ added in v0.102.0
type NetworkReportingAPIEndpoint struct { // URL The URL of the endpoint to which reports may be delivered. URL string `json:"url"` // GroupName Name of the endpoint group. GroupName string `json:"groupName"` }
NetworkReportingAPIEndpoint (experimental) ...
type NetworkReportingAPIEndpointsChangedForOrigin ¶ added in v0.102.0
type NetworkReportingAPIEndpointsChangedForOrigin struct { // Origin of the document(s) which configured the endpoints. Origin string `json:"origin"` // Endpoints ... Endpoints []*NetworkReportingAPIEndpoint `json:"endpoints"` }
NetworkReportingAPIEndpointsChangedForOrigin (experimental) ...
func (NetworkReportingAPIEndpointsChangedForOrigin) ProtoEvent ¶ added in v0.102.0
func (evt NetworkReportingAPIEndpointsChangedForOrigin) ProtoEvent() string
ProtoEvent name.
type NetworkReportingAPIReport ¶ added in v0.102.0
type NetworkReportingAPIReport struct { // ID ... ID NetworkReportID `json:"id"` // InitiatorURL The URL of the document that triggered the report. InitiatorURL string `json:"initiatorUrl"` // Destination The name of the endpoint group that should be used to deliver the report. Destination string `json:"destination"` // Type The type of the report (specifies the set of data that is contained in the report body). Type string `json:"type"` // Timestamp When the report was generated. Timestamp TimeSinceEpoch `json:"timestamp"` // Depth How many uploads deep the related request was. Depth int `json:"depth"` // CompletedAttempts The number of delivery attempts made so far, not including an active attempt. CompletedAttempts int `json:"completedAttempts"` // Body ... Body map[string]gson.JSON `json:"body"` // Status ... Status NetworkReportStatus `json:"status"` }
NetworkReportingAPIReport (experimental) An object representing a report generated by the Reporting API.
type NetworkReportingAPIReportAdded ¶ added in v0.102.0
type NetworkReportingAPIReportAdded struct { // Report ... Report *NetworkReportingAPIReport `json:"report"` }
NetworkReportingAPIReportAdded (experimental) Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.
func (NetworkReportingAPIReportAdded) ProtoEvent ¶ added in v0.102.0
func (evt NetworkReportingAPIReportAdded) ProtoEvent() string
ProtoEvent name.
type NetworkReportingAPIReportUpdated ¶ added in v0.102.0
type NetworkReportingAPIReportUpdated struct { // Report ... Report *NetworkReportingAPIReport `json:"report"` }
NetworkReportingAPIReportUpdated (experimental) ...
func (NetworkReportingAPIReportUpdated) ProtoEvent ¶ added in v0.102.0
func (evt NetworkReportingAPIReportUpdated) ProtoEvent() string
ProtoEvent name.
type NetworkRequest ¶
type NetworkRequest struct { // URL Request URL (without fragment). URL string `json:"url"` // URLFragment (optional) Fragment of the requested URL starting with hash, if present. URLFragment string `json:"urlFragment,omitempty"` // Method HTTP request method. Method string `json:"method"` // Headers HTTP request headers. Headers NetworkHeaders `json:"headers"` // PostData (deprecated) (optional) HTTP POST request data. // Use postDataEntries instead. PostData string `json:"postData,omitempty"` // HasPostData (optional) True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. HasPostData bool `json:"hasPostData,omitempty"` // PostDataEntries (experimental) (optional) Request body elements (post data broken into individual entries). PostDataEntries []*NetworkPostDataEntry `json:"postDataEntries,omitempty"` // MixedContentType (optional) The mixed content type of the request. MixedContentType SecurityMixedContentType `json:"mixedContentType,omitempty"` // InitialPriority Priority of the resource request at the time request is sent. InitialPriority NetworkResourcePriority `json:"initialPriority"` // ReferrerPolicy The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ ReferrerPolicy NetworkRequestReferrerPolicy `json:"referrerPolicy"` // IsLinkPreload (optional) Whether is loaded via link preload. IsLinkPreload bool `json:"isLinkPreload,omitempty"` // TrustTokenParams (experimental) (optional) Set for requests when the TrustToken API is used. Contains the parameters // passed by the developer (e.g. via "fetch") as understood by the backend. TrustTokenParams *NetworkTrustTokenParams `json:"trustTokenParams,omitempty"` // IsSameSite (experimental) (optional) True if this resource request is considered to be the 'same site' as the // request corresponding to the main frame. IsSameSite bool `json:"isSameSite,omitempty"` }
NetworkRequest HTTP request data.
type NetworkRequestIntercepted ¶
type NetworkRequestIntercepted struct { // InterceptionID Each request the page makes will have a unique id, however if any redirects are encountered // while processing that fetch, they will be reported with the same id as the original fetch. // Likewise if HTTP authentication is needed then the same fetch id will be used. InterceptionID NetworkInterceptionID `json:"interceptionId"` // Request ... Request *NetworkRequest `json:"request"` // FrameID The id of the frame that initiated the request. FrameID PageFrameID `json:"frameId"` // ResourceType How the requested resource will be used. ResourceType NetworkResourceType `json:"resourceType"` IsNavigationRequest bool `json:"isNavigationRequest"` // IsDownload (optional) Set if the request is a navigation that will result in a download. // Only present after response is received from the server (i.e. HeadersReceived stage). IsDownload bool `json:"isDownload,omitempty"` // RedirectURL (optional) Redirect location, only sent if a redirect was intercepted. RedirectURL string `json:"redirectUrl,omitempty"` // AuthChallenge (optional) Details of the Authorization Challenge encountered. If this is set then // continueInterceptedRequest must contain an authChallengeResponse. AuthChallenge *NetworkAuthChallenge `json:"authChallenge,omitempty"` // ResponseErrorReason (optional) Response error if intercepted at response stage or if redirect occurred while intercepting // request. ResponseErrorReason NetworkErrorReason `json:"responseErrorReason,omitempty"` // ResponseStatusCode (optional) Response code if intercepted at response stage or if redirect occurred while intercepting // request or auth retry occurred. ResponseStatusCode *int `json:"responseStatusCode,omitempty"` // ResponseHeaders (optional) Response headers if intercepted at the response stage or if redirect occurred while // intercepting request or auth retry occurred. ResponseHeaders NetworkHeaders `json:"responseHeaders,omitempty"` // RequestID (optional) If the intercepted request had a corresponding requestWillBeSent event fired for it, then // this requestId will be the same as the requestId present in the requestWillBeSent event. RequestID NetworkRequestID `json:"requestId,omitempty"` }
NetworkRequestIntercepted (deprecated) (experimental) Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
func (NetworkRequestIntercepted) ProtoEvent ¶ added in v0.72.0
func (evt NetworkRequestIntercepted) ProtoEvent() string
ProtoEvent name.
type NetworkRequestPattern ¶
type NetworkRequestPattern struct { // URLPattern (optional) Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is // backslash. Omitting is equivalent to `"*"`. URLPattern string `json:"urlPattern,omitempty"` // ResourceType (optional) If set, only requests for matching resource types will be intercepted. ResourceType NetworkResourceType `json:"resourceType,omitempty"` // InterceptionStage (optional) Stage at which to begin intercepting requests. Default is Request. InterceptionStage NetworkInterceptionStage `json:"interceptionStage,omitempty"` }
NetworkRequestPattern (experimental) Request pattern for interception.
type NetworkRequestReferrerPolicy ¶
type NetworkRequestReferrerPolicy string
NetworkRequestReferrerPolicy enum.
const ( // NetworkRequestReferrerPolicyUnsafeURL enum const. NetworkRequestReferrerPolicyUnsafeURL NetworkRequestReferrerPolicy = "unsafe-url" // NetworkRequestReferrerPolicyNoReferrerWhenDowngrade enum const. NetworkRequestReferrerPolicyNoReferrerWhenDowngrade NetworkRequestReferrerPolicy = "no-referrer-when-downgrade" // NetworkRequestReferrerPolicyNoReferrer enum const. NetworkRequestReferrerPolicyNoReferrer NetworkRequestReferrerPolicy = "no-referrer" // NetworkRequestReferrerPolicyOrigin enum const. NetworkRequestReferrerPolicyOrigin NetworkRequestReferrerPolicy = "origin" // NetworkRequestReferrerPolicyOriginWhenCrossOrigin enum const. NetworkRequestReferrerPolicyOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "origin-when-cross-origin" // NetworkRequestReferrerPolicySameOrigin enum const. NetworkRequestReferrerPolicySameOrigin NetworkRequestReferrerPolicy = "same-origin" // NetworkRequestReferrerPolicyStrictOrigin enum const. NetworkRequestReferrerPolicyStrictOrigin NetworkRequestReferrerPolicy = "strict-origin" // NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin enum const. NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "strict-origin-when-cross-origin" )
type NetworkRequestServedFromCache ¶
type NetworkRequestServedFromCache struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` }
NetworkRequestServedFromCache Fired if request ended up loading from cache.
func (NetworkRequestServedFromCache) ProtoEvent ¶ added in v0.72.0
func (evt NetworkRequestServedFromCache) ProtoEvent() string
ProtoEvent name.
type NetworkRequestWillBeSent ¶
type NetworkRequestWillBeSent struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // LoaderID Loader identifier. Empty string if the request is fetched from worker. LoaderID NetworkLoaderID `json:"loaderId"` // DocumentURL URL of the document this request is loaded for. DocumentURL string `json:"documentURL"` // Request data. Request *NetworkRequest `json:"request"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // WallTime Timestamp. WallTime TimeSinceEpoch `json:"wallTime"` // Initiator Request initiator. Initiator *NetworkInitiator `json:"initiator"` // RedirectHasExtraInfo (experimental) In the case that redirectResponse is populated, this flag indicates whether // requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted // for the request which was just redirected. RedirectHasExtraInfo bool `json:"redirectHasExtraInfo"` // RedirectResponse (optional) Redirect response data. RedirectResponse *NetworkResponse `json:"redirectResponse,omitempty"` // Type (optional) Type of this resource. Type NetworkResourceType `json:"type,omitempty"` // FrameID (optional) Frame identifier. FrameID PageFrameID `json:"frameId,omitempty"` // HasUserGesture (optional) Whether the request is initiated by a user gesture. Defaults to false. HasUserGesture bool `json:"hasUserGesture,omitempty"` }
NetworkRequestWillBeSent Fired when page is about to send HTTP request.
func (NetworkRequestWillBeSent) ProtoEvent ¶ added in v0.72.0
func (evt NetworkRequestWillBeSent) ProtoEvent() string
ProtoEvent name.
type NetworkRequestWillBeSentExtraInfo ¶
type NetworkRequestWillBeSentExtraInfo struct { // RequestID Request identifier. Used to match this information to an existing requestWillBeSent event. RequestID NetworkRequestID `json:"requestId"` // AssociatedCookies A list of cookies potentially associated to the requested URL. This includes both cookies sent with // the request and the ones not sent; the latter are distinguished by having blockedReasons field set. AssociatedCookies []*NetworkAssociatedCookie `json:"associatedCookies"` // Headers Raw request headers as they will be sent over the wire. Headers NetworkHeaders `json:"headers"` // ConnectTiming (experimental) Connection timing information for the request. ConnectTiming *NetworkConnectTiming `json:"connectTiming"` // ClientSecurityState (optional) The client security state set for the request. ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"` // SiteHasCookieInOtherPartition (optional) Whether the site has partitioned cookies stored in a partition different than the current one. SiteHasCookieInOtherPartition bool `json:"siteHasCookieInOtherPartition,omitempty"` }
NetworkRequestWillBeSentExtraInfo (experimental) Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.
func (NetworkRequestWillBeSentExtraInfo) ProtoEvent ¶ added in v0.72.0
func (evt NetworkRequestWillBeSentExtraInfo) ProtoEvent() string
ProtoEvent name.
type NetworkResourceChangedPriority ¶
type NetworkResourceChangedPriority struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // NewPriority New priority NewPriority NetworkResourcePriority `json:"newPriority"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` }
NetworkResourceChangedPriority (experimental) Fired when resource loading priority is changed.
func (NetworkResourceChangedPriority) ProtoEvent ¶ added in v0.72.0
func (evt NetworkResourceChangedPriority) ProtoEvent() string
ProtoEvent name.
type NetworkResourcePriority ¶
type NetworkResourcePriority string
NetworkResourcePriority Loading priority of a resource request.
const ( // NetworkResourcePriorityVeryLow enum const. NetworkResourcePriorityVeryLow NetworkResourcePriority = "VeryLow" // NetworkResourcePriorityLow enum const. NetworkResourcePriorityLow NetworkResourcePriority = "Low" // NetworkResourcePriorityMedium enum const. NetworkResourcePriorityMedium NetworkResourcePriority = "Medium" // NetworkResourcePriorityHigh enum const. NetworkResourcePriorityHigh NetworkResourcePriority = "High" // NetworkResourcePriorityVeryHigh enum const. NetworkResourcePriorityVeryHigh NetworkResourcePriority = "VeryHigh" )
type NetworkResourceTiming ¶
type NetworkResourceTiming struct { // RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in // milliseconds relatively to this requestTime. RequestTime float64 `json:"requestTime"` // ProxyStart Started resolving proxy. ProxyStart float64 `json:"proxyStart"` // ProxyEnd Finished resolving proxy. ProxyEnd float64 `json:"proxyEnd"` // DNSStart Started DNS address resolve. DNSStart float64 `json:"dnsStart"` // DNSEnd Finished DNS address resolve. DNSEnd float64 `json:"dnsEnd"` // ConnectStart Started connecting to the remote host. ConnectStart float64 `json:"connectStart"` // ConnectEnd Connected to the remote host. ConnectEnd float64 `json:"connectEnd"` // SslStart Started SSL handshake. SslStart float64 `json:"sslStart"` // SslEnd Finished SSL handshake. SslEnd float64 `json:"sslEnd"` // WorkerStart (experimental) Started running ServiceWorker. WorkerStart float64 `json:"workerStart"` // WorkerReady (experimental) Finished Starting ServiceWorker. WorkerReady float64 `json:"workerReady"` // WorkerFetchStart (experimental) Started fetch event. WorkerFetchStart float64 `json:"workerFetchStart"` // WorkerRespondWithSettled (experimental) Settled fetch event respondWith promise. WorkerRespondWithSettled float64 `json:"workerRespondWithSettled"` // WorkerRouterEvaluationStart (experimental) (optional) Started ServiceWorker static routing source evaluation. WorkerRouterEvaluationStart *float64 `json:"workerRouterEvaluationStart,omitempty"` // WorkerCacheLookupStart (experimental) (optional) Started cache lookup when the source was evaluated to `cache`. WorkerCacheLookupStart *float64 `json:"workerCacheLookupStart,omitempty"` // SendStart Started sending request. SendStart float64 `json:"sendStart"` // SendEnd Finished sending request. SendEnd float64 `json:"sendEnd"` // PushStart (experimental) Time the server started pushing request. PushStart float64 `json:"pushStart"` // PushEnd (experimental) Time the server finished pushing request. PushEnd float64 `json:"pushEnd"` // ReceiveHeadersStart (experimental) Started receiving response headers. ReceiveHeadersStart float64 `json:"receiveHeadersStart"` // ReceiveHeadersEnd Finished receiving response headers. ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"` }
NetworkResourceTiming Timing information for the request.
type NetworkResourceType ¶
type NetworkResourceType string
NetworkResourceType Resource type as it was perceived by the rendering engine.
const ( // NetworkResourceTypeDocument enum const. NetworkResourceTypeDocument NetworkResourceType = "Document" // NetworkResourceTypeStylesheet enum const. NetworkResourceTypeStylesheet NetworkResourceType = "Stylesheet" // NetworkResourceTypeImage enum const. NetworkResourceTypeImage NetworkResourceType = "Image" // NetworkResourceTypeMedia enum const. NetworkResourceTypeMedia NetworkResourceType = "Media" // NetworkResourceTypeFont enum const. NetworkResourceTypeFont NetworkResourceType = "Font" // NetworkResourceTypeScript enum const. NetworkResourceTypeScript NetworkResourceType = "Script" // NetworkResourceTypeTextTrack enum const. NetworkResourceTypeTextTrack NetworkResourceType = "TextTrack" // NetworkResourceTypeXHR enum const. NetworkResourceTypeXHR NetworkResourceType = "XHR" // NetworkResourceTypeFetch enum const. NetworkResourceTypeFetch NetworkResourceType = "Fetch" // NetworkResourceTypePrefetch enum const. NetworkResourceTypePrefetch NetworkResourceType = "Prefetch" // NetworkResourceTypeEventSource enum const. NetworkResourceTypeEventSource NetworkResourceType = "EventSource" // NetworkResourceTypeWebSocket enum const. NetworkResourceTypeWebSocket NetworkResourceType = "WebSocket" // NetworkResourceTypeManifest enum const. NetworkResourceTypeManifest NetworkResourceType = "Manifest" // NetworkResourceTypeSignedExchange enum const. NetworkResourceTypeSignedExchange NetworkResourceType = "SignedExchange" // NetworkResourceTypePing enum const. NetworkResourceTypePing NetworkResourceType = "Ping" // NetworkResourceTypeCSPViolationReport enum const. NetworkResourceTypeCSPViolationReport NetworkResourceType = "CSPViolationReport" // NetworkResourceTypePreflight enum const. NetworkResourceTypePreflight NetworkResourceType = "Preflight" // NetworkResourceTypeOther enum const. NetworkResourceTypeOther NetworkResourceType = "Other" )
type NetworkResponse ¶
type NetworkResponse struct { // URL Response URL. This URL can be different from CachedResource.url in case of redirect. URL string `json:"url"` // Status HTTP response status code. Status int `json:"status"` // StatusText HTTP response status text. StatusText string `json:"statusText"` // Headers HTTP response headers. Headers NetworkHeaders `json:"headers"` // HeadersText (deprecated) (optional) HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. HeadersText string `json:"headersText,omitempty"` // MIMEType Resource mimeType as determined by the browser. MIMEType string `json:"mimeType"` // Charset Resource charset as determined by the browser (if applicable). Charset string `json:"charset"` // RequestHeaders (optional) Refined HTTP request headers that were actually transmitted over the network. RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"` // RequestHeadersText (deprecated) (optional) HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. RequestHeadersText string `json:"requestHeadersText,omitempty"` // ConnectionReused Specifies whether physical connection was actually reused for this request. ConnectionReused bool `json:"connectionReused"` // ConnectionID Physical connection id that was actually used for this request. ConnectionID float64 `json:"connectionId"` // RemoteIPAddress (optional) Remote IP address. RemoteIPAddress string `json:"remoteIPAddress,omitempty"` // RemotePort (optional) Remote port. RemotePort *int `json:"remotePort,omitempty"` // FromDiskCache (optional) Specifies that the request was served from the disk cache. FromDiskCache bool `json:"fromDiskCache,omitempty"` // FromServiceWorker (optional) Specifies that the request was served from the ServiceWorker. FromServiceWorker bool `json:"fromServiceWorker,omitempty"` // FromPrefetchCache (optional) Specifies that the request was served from the prefetch cache. FromPrefetchCache bool `json:"fromPrefetchCache,omitempty"` // FromEarlyHints (optional) Specifies that the request was served from the prefetch cache. FromEarlyHints bool `json:"fromEarlyHints,omitempty"` // ServiceWorkerRouterInfo (experimental) (optional) Information about how ServiceWorker Static Router API was used. If this // field is set with `matchedSourceType` field, a matching rule is found. // If this field is set without `matchedSource`, no matching rule is found. // Otherwise, the API is not used. ServiceWorkerRouterInfo *NetworkServiceWorkerRouterInfo `json:"serviceWorkerRouterInfo,omitempty"` // EncodedDataLength Total number of bytes received for this request so far. EncodedDataLength float64 `json:"encodedDataLength"` // Timing (optional) Timing information for the given request. Timing *NetworkResourceTiming `json:"timing,omitempty"` // ServiceWorkerResponseSource (optional) Response source of response from ServiceWorker. ServiceWorkerResponseSource NetworkServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty"` // ResponseTime (optional) The time at which the returned response was generated. ResponseTime TimeSinceEpoch `json:"responseTime,omitempty"` // CacheStorageCacheName (optional) Cache Storage Cache Name. CacheStorageCacheName string `json:"cacheStorageCacheName,omitempty"` // Protocol (optional) Protocol used to fetch this request. Protocol string `json:"protocol,omitempty"` // AlternateProtocolUsage (experimental) (optional) The reason why Chrome uses a specific transport protocol for HTTP semantics. AlternateProtocolUsage NetworkAlternateProtocolUsage `json:"alternateProtocolUsage,omitempty"` // SecurityState Security state of the request resource. SecurityState SecuritySecurityState `json:"securityState"` // SecurityDetails (optional) Security details for the request. SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"` }
NetworkResponse HTTP response data.
type NetworkResponseReceived ¶
type NetworkResponseReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // LoaderID Loader identifier. Empty string if the request is fetched from worker. LoaderID NetworkLoaderID `json:"loaderId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Type Resource type. Type NetworkResourceType `json:"type"` // Response data. Response *NetworkResponse `json:"response"` // HasExtraInfo (experimental) Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be // or were emitted for this request. HasExtraInfo bool `json:"hasExtraInfo"` // FrameID (optional) Frame identifier. FrameID PageFrameID `json:"frameId,omitempty"` }
NetworkResponseReceived Fired when HTTP response is available.
func (NetworkResponseReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkResponseReceived) ProtoEvent() string
ProtoEvent name.
type NetworkResponseReceivedEarlyHints ¶ added in v0.116.0
type NetworkResponseReceivedEarlyHints struct { // RequestID Request identifier. Used to match this information to another responseReceived event. RequestID NetworkRequestID `json:"requestId"` // Headers Raw response headers as they were received over the wire. Headers NetworkHeaders `json:"headers"` }
NetworkResponseReceivedEarlyHints (experimental) Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
func (NetworkResponseReceivedEarlyHints) ProtoEvent ¶ added in v0.116.0
func (evt NetworkResponseReceivedEarlyHints) ProtoEvent() string
ProtoEvent name.
type NetworkResponseReceivedExtraInfo ¶
type NetworkResponseReceivedExtraInfo struct { // RequestID Request identifier. Used to match this information to another responseReceived event. RequestID NetworkRequestID `json:"requestId"` // BlockedCookies A list of cookies which were not stored from the response along with the corresponding // reasons for blocking. The cookies here may not be valid due to syntax errors, which // are represented by the invalid cookie line string instead of a proper cookie. BlockedCookies []*NetworkBlockedSetCookieWithReason `json:"blockedCookies"` // Headers Raw response headers as they were received over the wire. Headers NetworkHeaders `json:"headers"` // ResourceIPAddressSpace The IP address space of the resource. The address space can only be determined once the transport // established the connection, so we can't send it in `requestWillBeSentExtraInfo`. ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace"` // StatusCode The status code of the response. This is useful in cases the request failed and no responseReceived // event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code // for cached requests, where the status in responseReceived is a 200 and this will be 304. StatusCode int `json:"statusCode"` // HeadersText (optional) Raw response header text as it was received over the wire. The raw text may not always be // available, such as in the case of HTTP/2 or QUIC. HeadersText string `json:"headersText,omitempty"` // CookiePartitionKey (experimental) (optional) The cookie partition key that will be used to store partitioned cookies set in this response. // Only sent when partitioned cookies are enabled. CookiePartitionKey *NetworkCookiePartitionKey `json:"cookiePartitionKey,omitempty"` // CookiePartitionKeyOpaque (optional) True if partitioned cookies are enabled, but the partition key is not serializable to string. CookiePartitionKeyOpaque bool `json:"cookiePartitionKeyOpaque,omitempty"` // ExemptedCookies (optional) A list of cookies which should have been blocked by 3PCD but are exempted and stored from // the response with the corresponding reason. ExemptedCookies []*NetworkExemptedSetCookieWithReason `json:"exemptedCookies,omitempty"` }
NetworkResponseReceivedExtraInfo (experimental) Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.
func (NetworkResponseReceivedExtraInfo) ProtoEvent ¶ added in v0.72.0
func (evt NetworkResponseReceivedExtraInfo) ProtoEvent() string
ProtoEvent name.
type NetworkSearchInResponseBody ¶
type NetworkSearchInResponseBody struct { // RequestID Identifier of the network response to search. RequestID NetworkRequestID `json:"requestId"` // Query String to search for. Query string `json:"query"` // CaseSensitive (optional) If true, search is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` // IsRegex (optional) If true, treats string parameter as regex. IsRegex bool `json:"isRegex,omitempty"` }
NetworkSearchInResponseBody (experimental) Searches for given string in response content.
func (NetworkSearchInResponseBody) Call ¶
func (m NetworkSearchInResponseBody) Call(c Client) (*NetworkSearchInResponseBodyResult, error)
Call the request.
func (NetworkSearchInResponseBody) ProtoReq ¶ added in v0.74.0
func (m NetworkSearchInResponseBody) ProtoReq() string
ProtoReq name.
type NetworkSearchInResponseBodyResult ¶
type NetworkSearchInResponseBodyResult struct { // Result List of search matches. Result []*DebuggerSearchMatch `json:"result"` }
NetworkSearchInResponseBodyResult (experimental) ...
type NetworkSecurityDetails ¶
type NetworkSecurityDetails struct { // Protocol name (e.g. "TLS 1.2" or "QUIC"). Protocol string `json:"protocol"` // KeyExchange Key Exchange used by the connection, or the empty string if not applicable. KeyExchange string `json:"keyExchange"` // KeyExchangeGroup (optional) (EC)DH group used by the connection, if applicable. KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"` // Cipher name. Cipher string `json:"cipher"` // Mac (optional) TLS MAC. Note that AEAD ciphers do not have separate MACs. Mac string `json:"mac,omitempty"` // CertificateID Certificate ID value. CertificateID SecurityCertificateID `json:"certificateId"` // SubjectName Certificate subject name. SubjectName string `json:"subjectName"` // SanList Subject Alternative Name (SAN) DNS names and IP addresses. SanList []string `json:"sanList"` // Issuer Name of the issuing CA. Issuer string `json:"issuer"` // ValidFrom Certificate valid from date. ValidFrom TimeSinceEpoch `json:"validFrom"` // ValidTo Certificate valid to (expiration) date ValidTo TimeSinceEpoch `json:"validTo"` // SignedCertificateTimestampList List of signed certificate timestamps (SCTs). SignedCertificateTimestampList []*NetworkSignedCertificateTimestamp `json:"signedCertificateTimestampList"` // CertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy CertificateTransparencyCompliance NetworkCertificateTransparencyCompliance `json:"certificateTransparencyCompliance"` // ServerSignatureAlgorithm (optional) The signature algorithm used by the server in the TLS server signature, // represented as a TLS SignatureScheme code point. Omitted if not // applicable or not known. ServerSignatureAlgorithm *int `json:"serverSignatureAlgorithm,omitempty"` // EncryptedClientHello Whether the connection used Encrypted ClientHello EncryptedClientHello bool `json:"encryptedClientHello"` }
NetworkSecurityDetails Security details about a request.
type NetworkSecurityIsolationStatus ¶ added in v0.72.0
type NetworkSecurityIsolationStatus struct { // Coop (optional) ... Coop *NetworkCrossOriginOpenerPolicyStatus `json:"coop,omitempty"` // Coep (optional) ... Coep *NetworkCrossOriginEmbedderPolicyStatus `json:"coep,omitempty"` // Csp (optional) ... Csp []*NetworkContentSecurityPolicyStatus `json:"csp,omitempty"` }
NetworkSecurityIsolationStatus (experimental) ...
type NetworkServiceWorkerResponseSource ¶ added in v0.52.0
type NetworkServiceWorkerResponseSource string
NetworkServiceWorkerResponseSource Source of serviceworker response.
const ( // NetworkServiceWorkerResponseSourceCacheStorage enum const. NetworkServiceWorkerResponseSourceCacheStorage NetworkServiceWorkerResponseSource = "cache-storage" // NetworkServiceWorkerResponseSourceHTTPCache enum const. NetworkServiceWorkerResponseSourceHTTPCache NetworkServiceWorkerResponseSource = "http-cache" // NetworkServiceWorkerResponseSourceFallbackCode enum const. NetworkServiceWorkerResponseSourceFallbackCode NetworkServiceWorkerResponseSource = "fallback-code" // NetworkServiceWorkerResponseSourceNetwork enum const. NetworkServiceWorkerResponseSourceNetwork NetworkServiceWorkerResponseSource = "network" )
type NetworkServiceWorkerRouterInfo ¶ added in v0.115.0
type NetworkServiceWorkerRouterInfo struct { // RuleIDMatched (optional) ID of the rule matched. If there is a matched rule, this field will // be set, otherwiser no value will be set. RuleIDMatched *int `json:"ruleIdMatched,omitempty"` // MatchedSourceType (optional) The router source of the matched rule. If there is a matched rule, this // field will be set, otherwise no value will be set. MatchedSourceType NetworkServiceWorkerRouterSource `json:"matchedSourceType,omitempty"` // ActualSourceType (optional) The actual router source used. ActualSourceType NetworkServiceWorkerRouterSource `json:"actualSourceType,omitempty"` }
NetworkServiceWorkerRouterInfo (experimental) ...
type NetworkServiceWorkerRouterSource ¶ added in v0.115.0
type NetworkServiceWorkerRouterSource string
NetworkServiceWorkerRouterSource Source of service worker router.
const ( // NetworkServiceWorkerRouterSourceNetwork enum const. NetworkServiceWorkerRouterSourceNetwork NetworkServiceWorkerRouterSource = "network" // NetworkServiceWorkerRouterSourceCache enum const. NetworkServiceWorkerRouterSourceCache NetworkServiceWorkerRouterSource = "cache" // NetworkServiceWorkerRouterSourceFetchEvent enum const. NetworkServiceWorkerRouterSourceFetchEvent NetworkServiceWorkerRouterSource = "fetch-event" // NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler enum const. NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler NetworkServiceWorkerRouterSource = "race-network-and-fetch-handler" )
type NetworkSetAcceptedEncodings ¶ added in v0.97.5
type NetworkSetAcceptedEncodings struct { // Encodings List of accepted content encodings. Encodings []NetworkContentEncoding `json:"encodings"` }
NetworkSetAcceptedEncodings (experimental) Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
func (NetworkSetAcceptedEncodings) Call ¶ added in v0.97.5
func (m NetworkSetAcceptedEncodings) Call(c Client) error
Call sends the request.
func (NetworkSetAcceptedEncodings) ProtoReq ¶ added in v0.97.5
func (m NetworkSetAcceptedEncodings) ProtoReq() string
ProtoReq name.
type NetworkSetAttachDebugStack ¶ added in v0.90.0
type NetworkSetAttachDebugStack struct { // Enabled Whether to attach a page script stack for debugging purpose. Enabled bool `json:"enabled"` }
NetworkSetAttachDebugStack (experimental) Specifies whether to attach a page script stack id in requests.
func (NetworkSetAttachDebugStack) Call ¶ added in v0.90.0
func (m NetworkSetAttachDebugStack) Call(c Client) error
Call sends the request.
func (NetworkSetAttachDebugStack) ProtoReq ¶ added in v0.90.0
func (m NetworkSetAttachDebugStack) ProtoReq() string
ProtoReq name.
type NetworkSetBlockedURLs ¶
type NetworkSetBlockedURLs struct { // Urls URL patterns to block. Wildcards ('*') are allowed. Urls []string `json:"urls"` }
NetworkSetBlockedURLs (experimental) Blocks URLs from loading.
func (NetworkSetBlockedURLs) Call ¶
func (m NetworkSetBlockedURLs) Call(c Client) error
Call sends the request.
func (NetworkSetBlockedURLs) ProtoReq ¶ added in v0.74.0
func (m NetworkSetBlockedURLs) ProtoReq() string
ProtoReq name.
type NetworkSetBypassServiceWorker ¶
type NetworkSetBypassServiceWorker struct { // Bypass service worker and load from network. Bypass bool `json:"bypass"` }
NetworkSetBypassServiceWorker Toggles ignoring of service worker for each request.
func (NetworkSetBypassServiceWorker) Call ¶
func (m NetworkSetBypassServiceWorker) Call(c Client) error
Call sends the request.
func (NetworkSetBypassServiceWorker) ProtoReq ¶ added in v0.74.0
func (m NetworkSetBypassServiceWorker) ProtoReq() string
ProtoReq name.
type NetworkSetCacheDisabled ¶
type NetworkSetCacheDisabled struct { // CacheDisabled Cache disabled state. CacheDisabled bool `json:"cacheDisabled"` }
NetworkSetCacheDisabled Toggles ignoring cache for each request. If `true`, cache will not be used.
func (NetworkSetCacheDisabled) Call ¶
func (m NetworkSetCacheDisabled) Call(c Client) error
Call sends the request.
func (NetworkSetCacheDisabled) ProtoReq ¶ added in v0.74.0
func (m NetworkSetCacheDisabled) ProtoReq() string
ProtoReq name.
type NetworkSetCookie ¶
type NetworkSetCookie struct { // Name Cookie name. Name string `json:"name"` // Value Cookie value. Value string `json:"value"` // URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the // default domain, path, source port, and source scheme values of the created cookie. URL string `json:"url,omitempty"` // Domain (optional) Cookie domain. Domain string `json:"domain,omitempty"` // Path (optional) Cookie path. Path string `json:"path,omitempty"` // Secure (optional) True if cookie is secure. Secure bool `json:"secure,omitempty"` // HTTPOnly (optional) True if cookie is http-only. HTTPOnly bool `json:"httpOnly,omitempty"` // SameSite (optional) Cookie SameSite type. SameSite NetworkCookieSameSite `json:"sameSite,omitempty"` // Expires (optional) Cookie expiration date, session cookie if not set Expires TimeSinceEpoch `json:"expires,omitempty"` // Priority (experimental) (optional) Cookie Priority type. Priority NetworkCookiePriority `json:"priority,omitempty"` // SameParty (experimental) (optional) True if cookie is SameParty. SameParty bool `json:"sameParty,omitempty"` // SourceScheme (experimental) (optional) Cookie source scheme type. SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"` // SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. // This is a temporary ability and it will be removed in the future. SourcePort *int `json:"sourcePort,omitempty"` // PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned. PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"` }
NetworkSetCookie Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
func (NetworkSetCookie) Call ¶
func (m NetworkSetCookie) Call(c Client) (*NetworkSetCookieResult, error)
Call the request.
func (NetworkSetCookie) ProtoReq ¶ added in v0.74.0
func (m NetworkSetCookie) ProtoReq() string
ProtoReq name.
type NetworkSetCookieBlockedReason ¶
type NetworkSetCookieBlockedReason string
NetworkSetCookieBlockedReason (experimental) Types of reasons why a cookie may not be stored from a response.
const ( // NetworkSetCookieBlockedReasonSecureOnly enum const. NetworkSetCookieBlockedReasonSecureOnly NetworkSetCookieBlockedReason = "SecureOnly" // NetworkSetCookieBlockedReasonSameSiteStrict enum const. NetworkSetCookieBlockedReasonSameSiteStrict NetworkSetCookieBlockedReason = "SameSiteStrict" // NetworkSetCookieBlockedReasonSameSiteLax enum const. NetworkSetCookieBlockedReasonSameSiteLax NetworkSetCookieBlockedReason = "SameSiteLax" // NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const. NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" // NetworkSetCookieBlockedReasonSameSiteNoneInsecure enum const. NetworkSetCookieBlockedReasonSameSiteNoneInsecure NetworkSetCookieBlockedReason = "SameSiteNoneInsecure" // NetworkSetCookieBlockedReasonUserPreferences enum const. NetworkSetCookieBlockedReasonUserPreferences NetworkSetCookieBlockedReason = "UserPreferences" // NetworkSetCookieBlockedReasonThirdPartyPhaseout enum const. NetworkSetCookieBlockedReasonThirdPartyPhaseout NetworkSetCookieBlockedReason = "ThirdPartyPhaseout" // NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const. NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkSetCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet" // NetworkSetCookieBlockedReasonSyntaxError enum const. NetworkSetCookieBlockedReasonSyntaxError NetworkSetCookieBlockedReason = "SyntaxError" // NetworkSetCookieBlockedReasonSchemeNotSupported enum const. NetworkSetCookieBlockedReasonSchemeNotSupported NetworkSetCookieBlockedReason = "SchemeNotSupported" // NetworkSetCookieBlockedReasonOverwriteSecure enum const. NetworkSetCookieBlockedReasonOverwriteSecure NetworkSetCookieBlockedReason = "OverwriteSecure" // NetworkSetCookieBlockedReasonInvalidDomain enum const. NetworkSetCookieBlockedReasonInvalidDomain NetworkSetCookieBlockedReason = "InvalidDomain" // NetworkSetCookieBlockedReasonInvalidPrefix enum const. NetworkSetCookieBlockedReasonInvalidPrefix NetworkSetCookieBlockedReason = "InvalidPrefix" // NetworkSetCookieBlockedReasonUnknownError enum const. NetworkSetCookieBlockedReasonUnknownError NetworkSetCookieBlockedReason = "UnknownError" // NetworkSetCookieBlockedReasonSchemefulSameSiteStrict enum const. NetworkSetCookieBlockedReasonSchemefulSameSiteStrict NetworkSetCookieBlockedReason = "SchemefulSameSiteStrict" // NetworkSetCookieBlockedReasonSchemefulSameSiteLax enum const. NetworkSetCookieBlockedReasonSchemefulSameSiteLax NetworkSetCookieBlockedReason = "SchemefulSameSiteLax" // NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const. NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax" // NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext enum const. NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext NetworkSetCookieBlockedReason = "SamePartyFromCrossPartyContext" // NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes enum const. NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes NetworkSetCookieBlockedReason = "SamePartyConflictsWithOtherAttributes" // NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize enum const. NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize NetworkSetCookieBlockedReason = "NameValuePairExceedsMaxSize" // NetworkSetCookieBlockedReasonDisallowedCharacter enum const. NetworkSetCookieBlockedReasonDisallowedCharacter NetworkSetCookieBlockedReason = "DisallowedCharacter" // NetworkSetCookieBlockedReasonNoCookieContent enum const. NetworkSetCookieBlockedReasonNoCookieContent NetworkSetCookieBlockedReason = "NoCookieContent" )
type NetworkSetCookieResult ¶
type NetworkSetCookieResult struct { // Success (deprecated) Always set to true. If an error occurs, the response indicates protocol error. Success bool `json:"success"` }
NetworkSetCookieResult ...
type NetworkSetCookies ¶
type NetworkSetCookies struct { // Cookies to be set. Cookies []*NetworkCookieParam `json:"cookies"` }
NetworkSetCookies Sets given cookies.
func (NetworkSetCookies) Call ¶
func (m NetworkSetCookies) Call(c Client) error
Call sends the request.
func (NetworkSetCookies) ProtoReq ¶ added in v0.74.0
func (m NetworkSetCookies) ProtoReq() string
ProtoReq name.
type NetworkSetExtraHTTPHeaders ¶
type NetworkSetExtraHTTPHeaders struct { // Headers Map with extra HTTP headers. Headers NetworkHeaders `json:"headers"` }
NetworkSetExtraHTTPHeaders Specifies whether to always send extra HTTP headers with the requests from this page.
func (NetworkSetExtraHTTPHeaders) Call ¶
func (m NetworkSetExtraHTTPHeaders) Call(c Client) error
Call sends the request.
func (NetworkSetExtraHTTPHeaders) ProtoReq ¶ added in v0.74.0
func (m NetworkSetExtraHTTPHeaders) ProtoReq() string
ProtoReq name.
type NetworkSetRequestInterception ¶
type NetworkSetRequestInterception struct { // Patterns Requests matching any of these patterns will be forwarded and wait for the corresponding // continueInterceptedRequest call. Patterns []*NetworkRequestPattern `json:"patterns"` }
NetworkSetRequestInterception (deprecated) (experimental) Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.
func (NetworkSetRequestInterception) Call ¶
func (m NetworkSetRequestInterception) Call(c Client) error
Call sends the request.
func (NetworkSetRequestInterception) ProtoReq ¶ added in v0.74.0
func (m NetworkSetRequestInterception) ProtoReq() string
ProtoReq name.
type NetworkSetUserAgentOverride ¶
type NetworkSetUserAgentOverride struct { // UserAgent User agent to use. UserAgent string `json:"userAgent"` // AcceptLanguage (optional) Browser language to emulate. AcceptLanguage string `json:"acceptLanguage,omitempty"` // Platform (optional) The platform navigator.platform should return. Platform string `json:"platform,omitempty"` // UserAgentMetadata (experimental) (optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData UserAgentMetadata *EmulationUserAgentMetadata `json:"userAgentMetadata,omitempty"` }
NetworkSetUserAgentOverride Allows overriding user agent with the given string.
func (NetworkSetUserAgentOverride) Call ¶
func (m NetworkSetUserAgentOverride) Call(c Client) error
Call sends the request.
func (NetworkSetUserAgentOverride) ProtoReq ¶ added in v0.74.0
func (m NetworkSetUserAgentOverride) ProtoReq() string
ProtoReq name.
type NetworkSignedCertificateTimestamp ¶
type NetworkSignedCertificateTimestamp struct { // Status Validation status. Status string `json:"status"` // Origin. Origin string `json:"origin"` // LogDescription Log name / description. LogDescription string `json:"logDescription"` // LogID Log ID. LogID string `json:"logId"` // Timestamp Issuance date. Unlike TimeSinceEpoch, this contains the number of // milliseconds since January 1, 1970, UTC, not the number of seconds. Timestamp float64 `json:"timestamp"` // HashAlgorithm Hash algorithm. HashAlgorithm string `json:"hashAlgorithm"` // SignatureAlgorithm Signature algorithm. SignatureAlgorithm string `json:"signatureAlgorithm"` // SignatureData Signature data. SignatureData string `json:"signatureData"` }
NetworkSignedCertificateTimestamp Details of a signed certificate timestamp (SCT).
type NetworkSignedExchangeError ¶
type NetworkSignedExchangeError struct { // Message Error message. Message string `json:"message"` // SignatureIndex (optional) The index of the signature which caused the error. SignatureIndex *int `json:"signatureIndex,omitempty"` // ErrorField (optional) The field which caused the error. ErrorField NetworkSignedExchangeErrorField `json:"errorField,omitempty"` }
NetworkSignedExchangeError (experimental) Information about a signed exchange response.
type NetworkSignedExchangeErrorField ¶
type NetworkSignedExchangeErrorField string
NetworkSignedExchangeErrorField (experimental) Field type for a signed exchange related error.
const ( // NetworkSignedExchangeErrorFieldSignatureSig enum const. NetworkSignedExchangeErrorFieldSignatureSig NetworkSignedExchangeErrorField = "signatureSig" // NetworkSignedExchangeErrorFieldSignatureIntegrity enum const. NetworkSignedExchangeErrorFieldSignatureIntegrity NetworkSignedExchangeErrorField = "signatureIntegrity" // NetworkSignedExchangeErrorFieldSignatureCertURL enum const. NetworkSignedExchangeErrorFieldSignatureCertURL NetworkSignedExchangeErrorField = "signatureCertUrl" // NetworkSignedExchangeErrorFieldSignatureCertSha256 enum const. NetworkSignedExchangeErrorFieldSignatureCertSha256 NetworkSignedExchangeErrorField = "signatureCertSha256" // NetworkSignedExchangeErrorFieldSignatureValidityURL enum const. NetworkSignedExchangeErrorFieldSignatureValidityURL NetworkSignedExchangeErrorField = "signatureValidityUrl" // NetworkSignedExchangeErrorFieldSignatureTimestamps enum const. NetworkSignedExchangeErrorFieldSignatureTimestamps NetworkSignedExchangeErrorField = "signatureTimestamps" )
type NetworkSignedExchangeHeader ¶
type NetworkSignedExchangeHeader struct { // RequestURL Signed exchange request URL. RequestURL string `json:"requestUrl"` // ResponseCode Signed exchange response code. ResponseCode int `json:"responseCode"` // ResponseHeaders Signed exchange response headers. ResponseHeaders NetworkHeaders `json:"responseHeaders"` // Signatures Signed exchange response signature. Signatures []*NetworkSignedExchangeSignature `json:"signatures"` // HeaderIntegrity Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`. HeaderIntegrity string `json:"headerIntegrity"` }
NetworkSignedExchangeHeader (experimental) Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
type NetworkSignedExchangeInfo ¶
type NetworkSignedExchangeInfo struct { // OuterResponse The outer response of signed HTTP exchange which was received from network. OuterResponse *NetworkResponse `json:"outerResponse"` // Header (optional) Information about the signed exchange header. Header *NetworkSignedExchangeHeader `json:"header,omitempty"` // SecurityDetails (optional) Security details for the signed exchange header. SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"` // Errors (optional) Errors occurred while handling the signed exchange. Errors []*NetworkSignedExchangeError `json:"errors,omitempty"` }
NetworkSignedExchangeInfo (experimental) Information about a signed exchange response.
type NetworkSignedExchangeReceived ¶
type NetworkSignedExchangeReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Information about the signed exchange response. Info *NetworkSignedExchangeInfo `json:"info"` }
NetworkSignedExchangeReceived (experimental) Fired when a signed exchange was received over the network.
func (NetworkSignedExchangeReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkSignedExchangeReceived) ProtoEvent() string
ProtoEvent name.
type NetworkSignedExchangeSignature ¶
type NetworkSignedExchangeSignature struct { // Label Signed exchange signature label. Label string `json:"label"` // Signature The hex string of signed exchange signature. Signature string `json:"signature"` // Integrity Signed exchange signature integrity. Integrity string `json:"integrity"` // CertURL (optional) Signed exchange signature cert Url. CertURL string `json:"certUrl,omitempty"` // CertSha256 (optional) The hex string of signed exchange signature cert sha256. CertSha256 string `json:"certSha256,omitempty"` // ValidityURL Signed exchange signature validity Url. ValidityURL string `json:"validityUrl"` // Date Signed exchange signature date. Date int `json:"date"` // Expires Signed exchange signature expires. Expires int `json:"expires"` // Certificates (optional) The encoded certificates. Certificates []string `json:"certificates,omitempty"` }
NetworkSignedExchangeSignature (experimental) Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
type NetworkStreamResourceContent ¶ added in v0.115.0
type NetworkStreamResourceContent struct { // RequestID Identifier of the request to stream. RequestID NetworkRequestID `json:"requestId"` }
NetworkStreamResourceContent (experimental) Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.
func (NetworkStreamResourceContent) Call ¶ added in v0.115.0
func (m NetworkStreamResourceContent) Call(c Client) (*NetworkStreamResourceContentResult, error)
Call the request.
func (NetworkStreamResourceContent) ProtoReq ¶ added in v0.115.0
func (m NetworkStreamResourceContent) ProtoReq() string
ProtoReq name.
type NetworkStreamResourceContentResult ¶ added in v0.115.0
type NetworkStreamResourceContentResult struct { // BufferedData Data that has been buffered until streaming is enabled. BufferedData []byte `json:"bufferedData"` }
NetworkStreamResourceContentResult (experimental) ...
type NetworkSubresourceWebBundleInnerResponseError ¶ added in v0.101.5
type NetworkSubresourceWebBundleInnerResponseError struct { // InnerRequestID Request identifier of the subresource request InnerRequestID NetworkRequestID `json:"innerRequestId"` // InnerRequestURL URL of the subresource resource. InnerRequestURL string `json:"innerRequestURL"` // ErrorMessage Error message ErrorMessage string `json:"errorMessage"` // BundleRequestID (optional) Bundle request identifier. Used to match this information to another event. // This made be absent in case when the instrumentation was enabled only // after webbundle was parsed. BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"` }
NetworkSubresourceWebBundleInnerResponseError (experimental) Fired when request for resources within a .wbn file failed.
func (NetworkSubresourceWebBundleInnerResponseError) ProtoEvent ¶ added in v0.101.5
func (evt NetworkSubresourceWebBundleInnerResponseError) ProtoEvent() string
ProtoEvent name.
type NetworkSubresourceWebBundleInnerResponseParsed ¶ added in v0.101.5
type NetworkSubresourceWebBundleInnerResponseParsed struct { // InnerRequestID Request identifier of the subresource request InnerRequestID NetworkRequestID `json:"innerRequestId"` // InnerRequestURL URL of the subresource resource. InnerRequestURL string `json:"innerRequestURL"` // BundleRequestID (optional) Bundle request identifier. Used to match this information to another event. // This made be absent in case when the instrumentation was enabled only // after webbundle was parsed. BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"` }
NetworkSubresourceWebBundleInnerResponseParsed (experimental) Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.
func (NetworkSubresourceWebBundleInnerResponseParsed) ProtoEvent ¶ added in v0.101.5
func (evt NetworkSubresourceWebBundleInnerResponseParsed) ProtoEvent() string
ProtoEvent name.
type NetworkSubresourceWebBundleMetadataError ¶ added in v0.101.5
type NetworkSubresourceWebBundleMetadataError struct { // RequestID Request identifier. Used to match this information to another event. RequestID NetworkRequestID `json:"requestId"` // ErrorMessage Error message ErrorMessage string `json:"errorMessage"` }
NetworkSubresourceWebBundleMetadataError (experimental) Fired once when parsing the .wbn file has failed.
func (NetworkSubresourceWebBundleMetadataError) ProtoEvent ¶ added in v0.101.5
func (evt NetworkSubresourceWebBundleMetadataError) ProtoEvent() string
ProtoEvent name.
type NetworkSubresourceWebBundleMetadataReceived ¶ added in v0.101.5
type NetworkSubresourceWebBundleMetadataReceived struct { // RequestID Request identifier. Used to match this information to another event. RequestID NetworkRequestID `json:"requestId"` // Urls A list of URLs of resources in the subresource Web Bundle. Urls []string `json:"urls"` }
NetworkSubresourceWebBundleMetadataReceived (experimental) Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.
func (NetworkSubresourceWebBundleMetadataReceived) ProtoEvent ¶ added in v0.101.5
func (evt NetworkSubresourceWebBundleMetadataReceived) ProtoEvent() string
ProtoEvent name.
type NetworkTakeResponseBodyForInterceptionAsStream ¶
type NetworkTakeResponseBodyForInterceptionAsStream struct { // InterceptionID ... InterceptionID NetworkInterceptionID `json:"interceptionId"` }
NetworkTakeResponseBodyForInterceptionAsStream (experimental) 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 (NetworkTakeResponseBodyForInterceptionAsStream) Call ¶
func (m NetworkTakeResponseBodyForInterceptionAsStream) Call(c Client) (*NetworkTakeResponseBodyForInterceptionAsStreamResult, error)
Call the request.
func (NetworkTakeResponseBodyForInterceptionAsStream) ProtoReq ¶ added in v0.74.0
func (m NetworkTakeResponseBodyForInterceptionAsStream) ProtoReq() string
ProtoReq name.
type NetworkTakeResponseBodyForInterceptionAsStreamResult ¶
type NetworkTakeResponseBodyForInterceptionAsStreamResult struct { // Stream ... Stream IOStreamHandle `json:"stream"` }
NetworkTakeResponseBodyForInterceptionAsStreamResult (experimental) ...
type NetworkTrustTokenOperationDone ¶ added in v0.90.0
type NetworkTrustTokenOperationDone struct { // Status Detailed success or error status of the operation. // 'AlreadyExists' also signifies a successful operation, as the result // of the operation already exists und thus, the operation was abort // preemptively (e.g. a cache hit). Status NetworkTrustTokenOperationDoneStatus `json:"status"` // Type ... Type NetworkTrustTokenOperationType `json:"type"` // RequestID ... RequestID NetworkRequestID `json:"requestId"` // TopLevelOrigin (optional) Top level origin. The context in which the operation was attempted. TopLevelOrigin string `json:"topLevelOrigin,omitempty"` // IssuerOrigin (optional) Origin of the issuer in case of a "Issuance" or "Redemption" operation. IssuerOrigin string `json:"issuerOrigin,omitempty"` // IssuedTokenCount (optional) The number of obtained Trust Tokens on a successful "Issuance" operation. IssuedTokenCount *int `json:"issuedTokenCount,omitempty"` }
NetworkTrustTokenOperationDone (experimental) Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
func (NetworkTrustTokenOperationDone) ProtoEvent ¶ added in v0.90.0
func (evt NetworkTrustTokenOperationDone) ProtoEvent() string
ProtoEvent name.
type NetworkTrustTokenOperationDoneStatus ¶ added in v0.90.0
type NetworkTrustTokenOperationDoneStatus string
NetworkTrustTokenOperationDoneStatus enum.
const ( // NetworkTrustTokenOperationDoneStatusOk enum const. NetworkTrustTokenOperationDoneStatusOk NetworkTrustTokenOperationDoneStatus = "Ok" // NetworkTrustTokenOperationDoneStatusInvalidArgument enum const. NetworkTrustTokenOperationDoneStatusInvalidArgument NetworkTrustTokenOperationDoneStatus = "InvalidArgument" // NetworkTrustTokenOperationDoneStatusMissingIssuerKeys enum const. NetworkTrustTokenOperationDoneStatusMissingIssuerKeys NetworkTrustTokenOperationDoneStatus = "MissingIssuerKeys" // NetworkTrustTokenOperationDoneStatusFailedPrecondition enum const. NetworkTrustTokenOperationDoneStatusFailedPrecondition NetworkTrustTokenOperationDoneStatus = "FailedPrecondition" // NetworkTrustTokenOperationDoneStatusResourceExhausted enum const. NetworkTrustTokenOperationDoneStatusResourceExhausted NetworkTrustTokenOperationDoneStatus = "ResourceExhausted" // NetworkTrustTokenOperationDoneStatusAlreadyExists enum const. NetworkTrustTokenOperationDoneStatusAlreadyExists NetworkTrustTokenOperationDoneStatus = "AlreadyExists" // NetworkTrustTokenOperationDoneStatusResourceLimited enum const. NetworkTrustTokenOperationDoneStatusResourceLimited NetworkTrustTokenOperationDoneStatus = "ResourceLimited" NetworkTrustTokenOperationDoneStatusUnauthorized NetworkTrustTokenOperationDoneStatus = "Unauthorized" // NetworkTrustTokenOperationDoneStatusBadResponse enum const. NetworkTrustTokenOperationDoneStatusBadResponse NetworkTrustTokenOperationDoneStatus = "BadResponse" // NetworkTrustTokenOperationDoneStatusInternalError enum const. NetworkTrustTokenOperationDoneStatusInternalError NetworkTrustTokenOperationDoneStatus = "InternalError" // NetworkTrustTokenOperationDoneStatusUnknownError enum const. NetworkTrustTokenOperationDoneStatusUnknownError NetworkTrustTokenOperationDoneStatus = "UnknownError" // NetworkTrustTokenOperationDoneStatusFulfilledLocally enum const. NetworkTrustTokenOperationDoneStatusFulfilledLocally NetworkTrustTokenOperationDoneStatus = "FulfilledLocally" )
type NetworkTrustTokenOperationType ¶ added in v0.85.9
type NetworkTrustTokenOperationType string
NetworkTrustTokenOperationType (experimental) ...
const ( // NetworkTrustTokenOperationTypeIssuance enum const. NetworkTrustTokenOperationTypeIssuance NetworkTrustTokenOperationType = "Issuance" // NetworkTrustTokenOperationTypeRedemption enum const. NetworkTrustTokenOperationTypeRedemption NetworkTrustTokenOperationType = "Redemption" // NetworkTrustTokenOperationTypeSigning enum const. NetworkTrustTokenOperationTypeSigning NetworkTrustTokenOperationType = "Signing" )
type NetworkTrustTokenParams ¶ added in v0.85.9
type NetworkTrustTokenParams struct { // Operation ... Operation NetworkTrustTokenOperationType `json:"operation"` // RefreshPolicy Only set for "token-redemption" operation and determine whether // to request a fresh SRR or use a still valid cached SRR. RefreshPolicy NetworkTrustTokenParamsRefreshPolicy `json:"refreshPolicy"` // Issuers (optional) Origins of issuers from whom to request tokens or redemption // records. Issuers []string `json:"issuers,omitempty"` }
NetworkTrustTokenParams (experimental) Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
type NetworkTrustTokenParamsRefreshPolicy ¶ added in v0.85.9
type NetworkTrustTokenParamsRefreshPolicy string
NetworkTrustTokenParamsRefreshPolicy enum.
const ( // NetworkTrustTokenParamsRefreshPolicyUseCached enum const. NetworkTrustTokenParamsRefreshPolicyUseCached NetworkTrustTokenParamsRefreshPolicy = "UseCached" // NetworkTrustTokenParamsRefreshPolicyRefresh enum const. NetworkTrustTokenParamsRefreshPolicyRefresh NetworkTrustTokenParamsRefreshPolicy = "Refresh" )
type NetworkWebSocketClosed ¶
type NetworkWebSocketClosed struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` }
NetworkWebSocketClosed Fired when WebSocket is closed.
func (NetworkWebSocketClosed) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketClosed) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketCreated ¶
type NetworkWebSocketCreated struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // URL WebSocket request URL. URL string `json:"url"` // Initiator (optional) Request initiator. Initiator *NetworkInitiator `json:"initiator,omitempty"` }
NetworkWebSocketCreated Fired upon WebSocket creation.
func (NetworkWebSocketCreated) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketCreated) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketFrame ¶
type NetworkWebSocketFrame struct { // Opcode WebSocket message opcode. Opcode float64 `json:"opcode"` // Mask WebSocket message mask. Mask bool `json:"mask"` // PayloadData WebSocket message payload data. // If the opcode is 1, this is a text message and payloadData is a UTF-8 string. // If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. PayloadData string `json:"payloadData"` }
NetworkWebSocketFrame WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
type NetworkWebSocketFrameError ¶
type NetworkWebSocketFrameError struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // ErrorMessage WebSocket error message. ErrorMessage string `json:"errorMessage"` }
NetworkWebSocketFrameError Fired when WebSocket message error occurs.
func (NetworkWebSocketFrameError) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketFrameError) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketFrameReceived ¶
type NetworkWebSocketFrameReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Response WebSocket response data. Response *NetworkWebSocketFrame `json:"response"` }
NetworkWebSocketFrameReceived Fired when WebSocket message is received.
func (NetworkWebSocketFrameReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketFrameReceived) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketFrameSent ¶
type NetworkWebSocketFrameSent struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Response WebSocket response data. Response *NetworkWebSocketFrame `json:"response"` }
NetworkWebSocketFrameSent Fired when WebSocket message is sent.
func (NetworkWebSocketFrameSent) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketFrameSent) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketHandshakeResponseReceived ¶
type NetworkWebSocketHandshakeResponseReceived struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Response WebSocket response data. Response *NetworkWebSocketResponse `json:"response"` }
NetworkWebSocketHandshakeResponseReceived Fired when WebSocket handshake response becomes available.
func (NetworkWebSocketHandshakeResponseReceived) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketHandshakeResponseReceived) ProtoEvent() string
ProtoEvent name.
type NetworkWebSocketRequest ¶
type NetworkWebSocketRequest struct { // Headers HTTP request headers. Headers NetworkHeaders `json:"headers"` }
NetworkWebSocketRequest WebSocket request data.
type NetworkWebSocketResponse ¶
type NetworkWebSocketResponse struct { // Status HTTP response status code. Status int `json:"status"` // StatusText HTTP response status text. StatusText string `json:"statusText"` // Headers HTTP response headers. Headers NetworkHeaders `json:"headers"` // HeadersText (optional) HTTP response headers text. HeadersText string `json:"headersText,omitempty"` // RequestHeaders (optional) HTTP request headers. RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"` // RequestHeadersText (optional) HTTP request headers text. RequestHeadersText string `json:"requestHeadersText,omitempty"` }
NetworkWebSocketResponse WebSocket response data.
type NetworkWebSocketWillSendHandshakeRequest ¶
type NetworkWebSocketWillSendHandshakeRequest struct { // RequestID Request identifier. RequestID NetworkRequestID `json:"requestId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // WallTime UTC Timestamp. WallTime TimeSinceEpoch `json:"wallTime"` // Request WebSocket request data. Request *NetworkWebSocketRequest `json:"request"` }
NetworkWebSocketWillSendHandshakeRequest Fired when WebSocket is about to initiate handshake.
func (NetworkWebSocketWillSendHandshakeRequest) ProtoEvent ¶ added in v0.72.0
func (evt NetworkWebSocketWillSendHandshakeRequest) ProtoEvent() string
ProtoEvent name.
type NetworkWebTransportClosed ¶ added in v0.90.0
type NetworkWebTransportClosed struct { // TransportID WebTransport identifier. TransportID NetworkRequestID `json:"transportId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` }
NetworkWebTransportClosed Fired when WebTransport is disposed.
func (NetworkWebTransportClosed) ProtoEvent ¶ added in v0.90.0
func (evt NetworkWebTransportClosed) ProtoEvent() string
ProtoEvent name.
type NetworkWebTransportConnectionEstablished ¶ added in v0.90.0
type NetworkWebTransportConnectionEstablished struct { // TransportID WebTransport identifier. TransportID NetworkRequestID `json:"transportId"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` }
NetworkWebTransportConnectionEstablished Fired when WebTransport handshake is finished.
func (NetworkWebTransportConnectionEstablished) ProtoEvent ¶ added in v0.90.0
func (evt NetworkWebTransportConnectionEstablished) ProtoEvent() string
ProtoEvent name.
type NetworkWebTransportCreated ¶ added in v0.90.0
type NetworkWebTransportCreated struct { // TransportID WebTransport identifier. TransportID NetworkRequestID `json:"transportId"` // URL WebTransport request URL. URL string `json:"url"` // Timestamp. Timestamp MonotonicTime `json:"timestamp"` // Initiator (optional) Request initiator. Initiator *NetworkInitiator `json:"initiator,omitempty"` }
NetworkWebTransportCreated Fired upon WebTransport creation.
func (NetworkWebTransportCreated) ProtoEvent ¶ added in v0.90.0
func (evt NetworkWebTransportCreated) ProtoEvent() string
ProtoEvent name.
type OverlayBoxStyle ¶ added in v0.90.0
type OverlayBoxStyle struct { // FillColor (optional) The background color for the box (default: transparent) FillColor *DOMRGBA `json:"fillColor,omitempty"` // HatchColor (optional) The hatching color for the box (default: transparent) HatchColor *DOMRGBA `json:"hatchColor,omitempty"` }
OverlayBoxStyle Style information for drawing a box.
type OverlayColorFormat ¶ added in v0.48.0
type OverlayColorFormat string
OverlayColorFormat ...
const ( // OverlayColorFormatRgb enum const. OverlayColorFormatRgb OverlayColorFormat = "rgb" // OverlayColorFormatHsl enum const. OverlayColorFormatHsl OverlayColorFormat = "hsl" // OverlayColorFormatHwb enum const. OverlayColorFormatHwb OverlayColorFormat = "hwb" // OverlayColorFormatHex enum const. OverlayColorFormatHex OverlayColorFormat = "hex" )
type OverlayContainerQueryContainerHighlightConfig ¶ added in v0.101.5
type OverlayContainerQueryContainerHighlightConfig struct { // ContainerBorder (optional) The style of the container border. ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"` // DescendantBorder (optional) The style of the descendants' borders. DescendantBorder *OverlayLineStyle `json:"descendantBorder,omitempty"` }
OverlayContainerQueryContainerHighlightConfig ...
type OverlayContainerQueryHighlightConfig ¶ added in v0.101.5
type OverlayContainerQueryHighlightConfig struct { // ContainerQueryContainerHighlightConfig A descriptor for the highlight appearance of container query containers. ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig"` // NodeID Identifier of the container node to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayContainerQueryHighlightConfig ...
type OverlayContrastAlgorithm ¶ added in v0.90.0
type OverlayContrastAlgorithm string
OverlayContrastAlgorithm ...
const ( // OverlayContrastAlgorithmAa enum const. OverlayContrastAlgorithmAa OverlayContrastAlgorithm = "aa" // OverlayContrastAlgorithmAaa enum const. OverlayContrastAlgorithmAaa OverlayContrastAlgorithm = "aaa" // OverlayContrastAlgorithmApca enum const. OverlayContrastAlgorithmApca OverlayContrastAlgorithm = "apca" )
type OverlayDisable ¶
type OverlayDisable struct{}
OverlayDisable Disables domain notifications.
func (OverlayDisable) ProtoReq ¶ added in v0.74.0
func (m OverlayDisable) ProtoReq() string
ProtoReq name.
type OverlayEnable ¶
type OverlayEnable struct{}
OverlayEnable Enables domain notifications.
func (OverlayEnable) ProtoReq ¶ added in v0.74.0
func (m OverlayEnable) ProtoReq() string
ProtoReq name.
type OverlayFlexContainerHighlightConfig ¶ added in v0.90.0
type OverlayFlexContainerHighlightConfig struct { // ContainerBorder (optional) The style of the container border ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"` // LineSeparator (optional) The style of the separator between lines LineSeparator *OverlayLineStyle `json:"lineSeparator,omitempty"` // ItemSeparator (optional) The style of the separator between items ItemSeparator *OverlayLineStyle `json:"itemSeparator,omitempty"` // MainDistributedSpace (optional) Style of content-distribution space on the main axis (justify-content). MainDistributedSpace *OverlayBoxStyle `json:"mainDistributedSpace,omitempty"` // CrossDistributedSpace (optional) Style of content-distribution space on the cross axis (align-content). CrossDistributedSpace *OverlayBoxStyle `json:"crossDistributedSpace,omitempty"` // RowGapSpace (optional) Style of empty space caused by row gaps (gap/row-gap). RowGapSpace *OverlayBoxStyle `json:"rowGapSpace,omitempty"` // ColumnGapSpace (optional) Style of empty space caused by columns gaps (gap/column-gap). ColumnGapSpace *OverlayBoxStyle `json:"columnGapSpace,omitempty"` // CrossAlignment (optional) Style of the self-alignment line (align-items). CrossAlignment *OverlayLineStyle `json:"crossAlignment,omitempty"` }
OverlayFlexContainerHighlightConfig Configuration data for the highlighting of Flex container elements.
type OverlayFlexItemHighlightConfig ¶ added in v0.93.0
type OverlayFlexItemHighlightConfig struct { // BaseSizeBox (optional) Style of the box representing the item's base size BaseSizeBox *OverlayBoxStyle `json:"baseSizeBox,omitempty"` // BaseSizeBorder (optional) Style of the border around the box representing the item's base size BaseSizeBorder *OverlayLineStyle `json:"baseSizeBorder,omitempty"` // FlexibilityArrow (optional) Style of the arrow representing if the item grew or shrank FlexibilityArrow *OverlayLineStyle `json:"flexibilityArrow,omitempty"` }
OverlayFlexItemHighlightConfig Configuration data for the highlighting of Flex item elements.
type OverlayFlexNodeHighlightConfig ¶ added in v0.90.0
type OverlayFlexNodeHighlightConfig struct { // FlexContainerHighlightConfig A descriptor for the highlight appearance of flex containers. FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig"` // NodeID Identifier of the node to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayFlexNodeHighlightConfig ...
type OverlayGetGridHighlightObjectsForTest ¶ added in v0.72.0
type OverlayGetGridHighlightObjectsForTest struct { // NodeIDs Ids of the node to get highlight object for. NodeIDs []DOMNodeID `json:"nodeIds"` }
OverlayGetGridHighlightObjectsForTest For Persistent Grid testing.
func (OverlayGetGridHighlightObjectsForTest) Call ¶ added in v0.72.0
func (m OverlayGetGridHighlightObjectsForTest) Call(c Client) (*OverlayGetGridHighlightObjectsForTestResult, error)
Call the request.
func (OverlayGetGridHighlightObjectsForTest) ProtoReq ¶ added in v0.74.0
func (m OverlayGetGridHighlightObjectsForTest) ProtoReq() string
ProtoReq name.
type OverlayGetGridHighlightObjectsForTestResult ¶ added in v0.72.0
type OverlayGetGridHighlightObjectsForTestResult struct { // Highlights Grid Highlight data for the node ids provided. Highlights map[string]gson.JSON `json:"highlights"` }
OverlayGetGridHighlightObjectsForTestResult ...
type OverlayGetHighlightObjectForTest ¶
type OverlayGetHighlightObjectForTest struct { // NodeID Id of the node to get highlight object for. NodeID DOMNodeID `json:"nodeId"` // IncludeDistance (optional) Whether to include distance info. IncludeDistance bool `json:"includeDistance,omitempty"` // IncludeStyle (optional) Whether to include style info. IncludeStyle bool `json:"includeStyle,omitempty"` // ColorFormat (optional) The color format to get config with (default: hex). ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"` // ShowAccessibilityInfo (optional) Whether to show accessibility info (default: true). ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"` }
OverlayGetHighlightObjectForTest For testing.
func (OverlayGetHighlightObjectForTest) Call ¶
func (m OverlayGetHighlightObjectForTest) Call(c Client) (*OverlayGetHighlightObjectForTestResult, error)
Call the request.
func (OverlayGetHighlightObjectForTest) ProtoReq ¶ added in v0.74.0
func (m OverlayGetHighlightObjectForTest) ProtoReq() string
ProtoReq name.
type OverlayGetHighlightObjectForTestResult ¶
type OverlayGetHighlightObjectForTestResult struct { // Highlight data for the node. Highlight map[string]gson.JSON `json:"highlight"` }
OverlayGetHighlightObjectForTestResult ...
type OverlayGetSourceOrderHighlightObjectForTest ¶ added in v0.72.0
type OverlayGetSourceOrderHighlightObjectForTest struct { // NodeID Id of the node to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayGetSourceOrderHighlightObjectForTest For Source Order Viewer testing.
func (OverlayGetSourceOrderHighlightObjectForTest) Call ¶ added in v0.72.0
func (m OverlayGetSourceOrderHighlightObjectForTest) Call(c Client) (*OverlayGetSourceOrderHighlightObjectForTestResult, error)
Call the request.
func (OverlayGetSourceOrderHighlightObjectForTest) ProtoReq ¶ added in v0.74.0
func (m OverlayGetSourceOrderHighlightObjectForTest) ProtoReq() string
ProtoReq name.
type OverlayGetSourceOrderHighlightObjectForTestResult ¶ added in v0.72.0
type OverlayGetSourceOrderHighlightObjectForTestResult struct { // Highlight Source order highlight data for the node id provided. Highlight map[string]gson.JSON `json:"highlight"` }
OverlayGetSourceOrderHighlightObjectForTestResult ...
type OverlayGridHighlightConfig ¶ added in v0.48.0
type OverlayGridHighlightConfig struct { // ShowGridExtensionLines (optional) Whether the extension lines from grid cells to the rulers should be shown (default: false). ShowGridExtensionLines bool `json:"showGridExtensionLines,omitempty"` // ShowPositiveLineNumbers (optional) Show Positive line number labels (default: false). ShowPositiveLineNumbers bool `json:"showPositiveLineNumbers,omitempty"` // ShowNegativeLineNumbers (optional) Show Negative line number labels (default: false). ShowNegativeLineNumbers bool `json:"showNegativeLineNumbers,omitempty"` // ShowAreaNames (optional) Show area name labels (default: false). ShowAreaNames bool `json:"showAreaNames,omitempty"` // ShowLineNames (optional) Show line name labels (default: false). ShowLineNames bool `json:"showLineNames,omitempty"` // ShowTrackSizes (optional) Show track size labels (default: false). ShowTrackSizes bool `json:"showTrackSizes,omitempty"` // GridBorderColor (optional) The grid container border highlight color (default: transparent). GridBorderColor *DOMRGBA `json:"gridBorderColor,omitempty"` // CellBorderColor (deprecated) (optional) The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead. CellBorderColor *DOMRGBA `json:"cellBorderColor,omitempty"` // RowLineColor (optional) The row line color (default: transparent). RowLineColor *DOMRGBA `json:"rowLineColor,omitempty"` // ColumnLineColor (optional) The column line color (default: transparent). ColumnLineColor *DOMRGBA `json:"columnLineColor,omitempty"` // GridBorderDash (optional) Whether the grid border is dashed (default: false). GridBorderDash bool `json:"gridBorderDash,omitempty"` // CellBorderDash (deprecated) (optional) Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead. CellBorderDash bool `json:"cellBorderDash,omitempty"` // RowLineDash (optional) Whether row lines are dashed (default: false). RowLineDash bool `json:"rowLineDash,omitempty"` // ColumnLineDash (optional) Whether column lines are dashed (default: false). ColumnLineDash bool `json:"columnLineDash,omitempty"` // RowGapColor (optional) The row gap highlight fill color (default: transparent). RowGapColor *DOMRGBA `json:"rowGapColor,omitempty"` // RowHatchColor (optional) The row gap hatching fill color (default: transparent). RowHatchColor *DOMRGBA `json:"rowHatchColor,omitempty"` // ColumnGapColor (optional) The column gap highlight fill color (default: transparent). ColumnGapColor *DOMRGBA `json:"columnGapColor,omitempty"` // ColumnHatchColor (optional) The column gap hatching fill color (default: transparent). ColumnHatchColor *DOMRGBA `json:"columnHatchColor,omitempty"` // AreaBorderColor (optional) The named grid areas border color (Default: transparent). AreaBorderColor *DOMRGBA `json:"areaBorderColor,omitempty"` // GridBackgroundColor (optional) The grid container background color (Default: transparent). GridBackgroundColor *DOMRGBA `json:"gridBackgroundColor,omitempty"` }
OverlayGridHighlightConfig Configuration data for the highlighting of Grid elements.
type OverlayGridNodeHighlightConfig ¶ added in v0.72.0
type OverlayGridNodeHighlightConfig struct { // GridHighlightConfig A descriptor for the highlight appearance. GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig"` // NodeID Identifier of the node to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayGridNodeHighlightConfig Configurations for Persistent Grid Highlight.
type OverlayHideHighlight ¶
type OverlayHideHighlight struct{}
OverlayHideHighlight Hides any highlight.
func (OverlayHideHighlight) Call ¶
func (m OverlayHideHighlight) Call(c Client) error
Call sends the request.
func (OverlayHideHighlight) ProtoReq ¶ added in v0.74.0
func (m OverlayHideHighlight) ProtoReq() string
ProtoReq name.
type OverlayHighlightConfig ¶
type OverlayHighlightConfig struct { // ShowInfo (optional) Whether the node info tooltip should be shown (default: false). ShowInfo bool `json:"showInfo,omitempty"` // ShowStyles (optional) Whether the node styles in the tooltip (default: false). ShowStyles bool `json:"showStyles,omitempty"` // ShowRulers (optional) Whether the rulers should be shown (default: false). ShowRulers bool `json:"showRulers,omitempty"` // ShowAccessibilityInfo (optional) Whether the a11y info should be shown (default: true). ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"` // ShowExtensionLines (optional) Whether the extension lines from node to the rulers should be shown (default: false). ShowExtensionLines bool `json:"showExtensionLines,omitempty"` // ContentColor (optional) The content box highlight fill color (default: transparent). ContentColor *DOMRGBA `json:"contentColor,omitempty"` // PaddingColor (optional) The padding highlight fill color (default: transparent). PaddingColor *DOMRGBA `json:"paddingColor,omitempty"` // BorderColor (optional) The border highlight fill color (default: transparent). BorderColor *DOMRGBA `json:"borderColor,omitempty"` // MarginColor (optional) The margin highlight fill color (default: transparent). MarginColor *DOMRGBA `json:"marginColor,omitempty"` // EventTargetColor (optional) The event target element highlight fill color (default: transparent). EventTargetColor *DOMRGBA `json:"eventTargetColor,omitempty"` // ShapeColor (optional) The shape outside fill color (default: transparent). ShapeColor *DOMRGBA `json:"shapeColor,omitempty"` // ShapeMarginColor (optional) The shape margin fill color (default: transparent). ShapeMarginColor *DOMRGBA `json:"shapeMarginColor,omitempty"` // CSSGridColor (optional) The grid layout color (default: transparent). CSSGridColor *DOMRGBA `json:"cssGridColor,omitempty"` // ColorFormat (optional) The color format used to format color styles (default: hex). ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"` // GridHighlightConfig (optional) The grid layout highlight configuration (default: all transparent). GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig,omitempty"` // FlexContainerHighlightConfig (optional) The flex container highlight configuration (default: all transparent). FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig,omitempty"` // FlexItemHighlightConfig (optional) The flex item highlight configuration (default: all transparent). FlexItemHighlightConfig *OverlayFlexItemHighlightConfig `json:"flexItemHighlightConfig,omitempty"` // ContrastAlgorithm (optional) The contrast algorithm to use for the contrast ratio (default: aa). ContrastAlgorithm OverlayContrastAlgorithm `json:"contrastAlgorithm,omitempty"` // ContainerQueryContainerHighlightConfig (optional) The container query container highlight configuration (default: all transparent). ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig,omitempty"` }
OverlayHighlightConfig Configuration data for the highlighting of page elements.
type OverlayHighlightFrame ¶
type OverlayHighlightFrame struct { // FrameID Identifier of the frame to highlight. FrameID PageFrameID `json:"frameId"` // ContentColor (optional) The content box highlight fill color (default: transparent). ContentColor *DOMRGBA `json:"contentColor,omitempty"` // ContentOutlineColor (optional) The content box highlight outline color (default: transparent). ContentOutlineColor *DOMRGBA `json:"contentOutlineColor,omitempty"` }
OverlayHighlightFrame (deprecated) Highlights owner element of the frame with given id. Deprecated: Doesn't work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.
func (OverlayHighlightFrame) Call ¶
func (m OverlayHighlightFrame) Call(c Client) error
Call sends the request.
func (OverlayHighlightFrame) ProtoReq ¶ added in v0.74.0
func (m OverlayHighlightFrame) ProtoReq() string
ProtoReq name.
type OverlayHighlightNode ¶
type OverlayHighlightNode struct { // HighlightConfig A descriptor for the highlight appearance. HighlightConfig *OverlayHighlightConfig `json:"highlightConfig"` // NodeID (optional) Identifier of the node to highlight. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node to highlight. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node to be highlighted. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // Selector (optional) Selectors to highlight relevant nodes. Selector string `json:"selector,omitempty"` }
OverlayHighlightNode Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
func (OverlayHighlightNode) Call ¶
func (m OverlayHighlightNode) Call(c Client) error
Call sends the request.
func (OverlayHighlightNode) ProtoReq ¶ added in v0.74.0
func (m OverlayHighlightNode) ProtoReq() string
ProtoReq name.
type OverlayHighlightQuad ¶
type OverlayHighlightQuad struct { // Quad to highlight Quad DOMQuad `json:"quad"` // Color (optional) The highlight fill color (default: transparent). Color *DOMRGBA `json:"color,omitempty"` // OutlineColor (optional) The highlight outline color (default: transparent). OutlineColor *DOMRGBA `json:"outlineColor,omitempty"` }
OverlayHighlightQuad Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
func (OverlayHighlightQuad) Call ¶
func (m OverlayHighlightQuad) Call(c Client) error
Call sends the request.
func (OverlayHighlightQuad) ProtoReq ¶ added in v0.74.0
func (m OverlayHighlightQuad) ProtoReq() string
ProtoReq name.
type OverlayHighlightRect ¶
type OverlayHighlightRect struct { // X coordinate X int `json:"x"` // Y coordinate Y int `json:"y"` // Width Rectangle width Width int `json:"width"` // Height Rectangle height Height int `json:"height"` // Color (optional) The highlight fill color (default: transparent). Color *DOMRGBA `json:"color,omitempty"` // OutlineColor (optional) The highlight outline color (default: transparent). OutlineColor *DOMRGBA `json:"outlineColor,omitempty"` }
OverlayHighlightRect Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
func (OverlayHighlightRect) Call ¶
func (m OverlayHighlightRect) Call(c Client) error
Call sends the request.
func (OverlayHighlightRect) ProtoReq ¶ added in v0.74.0
func (m OverlayHighlightRect) ProtoReq() string
ProtoReq name.
type OverlayHighlightSourceOrder ¶ added in v0.72.0
type OverlayHighlightSourceOrder struct { // SourceOrderConfig A descriptor for the appearance of the overlay drawing. SourceOrderConfig *OverlaySourceOrderConfig `json:"sourceOrderConfig"` // NodeID (optional) Identifier of the node to highlight. NodeID DOMNodeID `json:"nodeId,omitempty"` // BackendNodeID (optional) Identifier of the backend node to highlight. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // ObjectID (optional) JavaScript object id of the node to be highlighted. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
OverlayHighlightSourceOrder 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 (OverlayHighlightSourceOrder) Call ¶ added in v0.72.0
func (m OverlayHighlightSourceOrder) Call(c Client) error
Call sends the request.
func (OverlayHighlightSourceOrder) ProtoReq ¶ added in v0.74.0
func (m OverlayHighlightSourceOrder) ProtoReq() string
ProtoReq name.
type OverlayHingeConfig ¶ added in v0.48.0
type OverlayHingeConfig struct { // Rect A rectangle represent hinge Rect *DOMRect `json:"rect"` // ContentColor (optional) The content box highlight fill color (default: a dark color). ContentColor *DOMRGBA `json:"contentColor,omitempty"` // OutlineColor (optional) The content box highlight outline color (default: transparent). OutlineColor *DOMRGBA `json:"outlineColor,omitempty"` }
OverlayHingeConfig Configuration for dual screen hinge.
type OverlayInspectMode ¶
type OverlayInspectMode string
OverlayInspectMode ...
const ( // OverlayInspectModeSearchForNode enum const. OverlayInspectModeSearchForNode OverlayInspectMode = "searchForNode" // OverlayInspectModeSearchForUAShadowDOM enum const. OverlayInspectModeSearchForUAShadowDOM OverlayInspectMode = "searchForUAShadowDOM" // OverlayInspectModeCaptureAreaScreenshot enum const. OverlayInspectModeCaptureAreaScreenshot OverlayInspectMode = "captureAreaScreenshot" // OverlayInspectModeShowDistances enum const. OverlayInspectModeShowDistances OverlayInspectMode = "showDistances" // OverlayInspectModeNone enum const. OverlayInspectModeNone OverlayInspectMode = "none" )
type OverlayInspectModeCanceled ¶
type OverlayInspectModeCanceled struct{}
OverlayInspectModeCanceled Fired when user cancels the inspect mode.
func (OverlayInspectModeCanceled) ProtoEvent ¶ added in v0.72.0
func (evt OverlayInspectModeCanceled) ProtoEvent() string
ProtoEvent name.
type OverlayInspectNodeRequested ¶
type OverlayInspectNodeRequested struct { // BackendNodeID Id of the node to inspect. BackendNodeID DOMBackendNodeID `json:"backendNodeId"` }
OverlayInspectNodeRequested Fired when the node should be inspected. This happens after call to `setInspectMode` or when user manually inspects an element.
func (OverlayInspectNodeRequested) ProtoEvent ¶ added in v0.72.0
func (evt OverlayInspectNodeRequested) ProtoEvent() string
ProtoEvent name.
type OverlayIsolatedElementHighlightConfig ¶ added in v0.102.0
type OverlayIsolatedElementHighlightConfig struct { // IsolationModeHighlightConfig A descriptor for the highlight appearance of an element in isolation mode. IsolationModeHighlightConfig *OverlayIsolationModeHighlightConfig `json:"isolationModeHighlightConfig"` // NodeID Identifier of the isolated element to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayIsolatedElementHighlightConfig ...
type OverlayIsolationModeHighlightConfig ¶ added in v0.102.0
type OverlayIsolationModeHighlightConfig struct { // ResizerColor (optional) The fill color of the resizers (default: transparent). ResizerColor *DOMRGBA `json:"resizerColor,omitempty"` // ResizerHandleColor (optional) The fill color for resizer handles (default: transparent). ResizerHandleColor *DOMRGBA `json:"resizerHandleColor,omitempty"` // MaskColor (optional) The fill color for the mask covering non-isolated elements (default: transparent). MaskColor *DOMRGBA `json:"maskColor,omitempty"` }
OverlayIsolationModeHighlightConfig ...
type OverlayLineStyle ¶ added in v0.90.0
type OverlayLineStyle struct { // Color (optional) The color of the line (default: transparent) Color *DOMRGBA `json:"color,omitempty"` // Pattern (optional) The line pattern (default: solid) Pattern OverlayLineStylePattern `json:"pattern,omitempty"` }
OverlayLineStyle Style information for drawing a line.
type OverlayLineStylePattern ¶ added in v0.90.0
type OverlayLineStylePattern string
OverlayLineStylePattern enum.
const ( // OverlayLineStylePatternDashed enum const. OverlayLineStylePatternDashed OverlayLineStylePattern = "dashed" // OverlayLineStylePatternDotted enum const. OverlayLineStylePatternDotted OverlayLineStylePattern = "dotted" )
type OverlayNodeHighlightRequested ¶
type OverlayNodeHighlightRequested struct { // NodeID ... NodeID DOMNodeID `json:"nodeId"` }
OverlayNodeHighlightRequested Fired when the node should be highlighted. This happens after call to `setInspectMode`.
func (OverlayNodeHighlightRequested) ProtoEvent ¶ added in v0.72.0
func (evt OverlayNodeHighlightRequested) ProtoEvent() string
ProtoEvent name.
type OverlayScreenshotRequested ¶
type OverlayScreenshotRequested struct { // Viewport to capture, in device independent pixels (dip). Viewport *PageViewport `json:"viewport"` }
OverlayScreenshotRequested Fired when user asks to capture screenshot of some area on the page.
func (OverlayScreenshotRequested) ProtoEvent ¶ added in v0.72.0
func (evt OverlayScreenshotRequested) ProtoEvent() string
ProtoEvent name.
type OverlayScrollSnapContainerHighlightConfig ¶ added in v0.97.5
type OverlayScrollSnapContainerHighlightConfig struct { // SnapportBorder (optional) The style of the snapport border (default: transparent) SnapportBorder *OverlayLineStyle `json:"snapportBorder,omitempty"` // SnapAreaBorder (optional) The style of the snap area border (default: transparent) SnapAreaBorder *OverlayLineStyle `json:"snapAreaBorder,omitempty"` // ScrollMarginColor (optional) The margin highlight fill color (default: transparent). ScrollMarginColor *DOMRGBA `json:"scrollMarginColor,omitempty"` // ScrollPaddingColor (optional) The padding highlight fill color (default: transparent). ScrollPaddingColor *DOMRGBA `json:"scrollPaddingColor,omitempty"` }
OverlayScrollSnapContainerHighlightConfig ...
type OverlayScrollSnapHighlightConfig ¶ added in v0.97.5
type OverlayScrollSnapHighlightConfig struct { // ScrollSnapContainerHighlightConfig A descriptor for the highlight appearance of scroll snap containers. ScrollSnapContainerHighlightConfig *OverlayScrollSnapContainerHighlightConfig `json:"scrollSnapContainerHighlightConfig"` // NodeID Identifier of the node to highlight. NodeID DOMNodeID `json:"nodeId"` }
OverlayScrollSnapHighlightConfig ...
type OverlaySetInspectMode ¶
type OverlaySetInspectMode struct { // Mode Set an inspection mode. Mode OverlayInspectMode `json:"mode"` // HighlightConfig (optional) A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled // == false`. HighlightConfig *OverlayHighlightConfig `json:"highlightConfig,omitempty"` }
OverlaySetInspectMode Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
func (OverlaySetInspectMode) Call ¶
func (m OverlaySetInspectMode) Call(c Client) error
Call sends the request.
func (OverlaySetInspectMode) ProtoReq ¶ added in v0.74.0
func (m OverlaySetInspectMode) ProtoReq() string
ProtoReq name.
type OverlaySetPausedInDebuggerMessage ¶
type OverlaySetPausedInDebuggerMessage struct { // Message (optional) The message to display, also triggers resume and step over controls. Message string `json:"message,omitempty"` }
OverlaySetPausedInDebuggerMessage ...
func (OverlaySetPausedInDebuggerMessage) Call ¶
func (m OverlaySetPausedInDebuggerMessage) Call(c Client) error
Call sends the request.
func (OverlaySetPausedInDebuggerMessage) ProtoReq ¶ added in v0.74.0
func (m OverlaySetPausedInDebuggerMessage) ProtoReq() string
ProtoReq name.
type OverlaySetShowAdHighlights ¶
type OverlaySetShowAdHighlights struct { // Show True for showing ad highlights Show bool `json:"show"` }
OverlaySetShowAdHighlights Highlights owner element of all frames detected to be ads.
func (OverlaySetShowAdHighlights) Call ¶
func (m OverlaySetShowAdHighlights) Call(c Client) error
Call sends the request.
func (OverlaySetShowAdHighlights) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowAdHighlights) ProtoReq() string
ProtoReq name.
type OverlaySetShowContainerQueryOverlays ¶ added in v0.101.5
type OverlaySetShowContainerQueryOverlays struct { // ContainerQueryHighlightConfigs An array of node identifiers and descriptors for the highlight appearance. ContainerQueryHighlightConfigs []*OverlayContainerQueryHighlightConfig `json:"containerQueryHighlightConfigs"` }
OverlaySetShowContainerQueryOverlays ...
func (OverlaySetShowContainerQueryOverlays) Call ¶ added in v0.101.5
func (m OverlaySetShowContainerQueryOverlays) Call(c Client) error
Call sends the request.
func (OverlaySetShowContainerQueryOverlays) ProtoReq ¶ added in v0.101.5
func (m OverlaySetShowContainerQueryOverlays) ProtoReq() string
ProtoReq name.
type OverlaySetShowDebugBorders ¶
type OverlaySetShowDebugBorders struct { // Show True for showing debug borders Show bool `json:"show"` }
OverlaySetShowDebugBorders Requests that backend shows debug borders on layers.
func (OverlaySetShowDebugBorders) Call ¶
func (m OverlaySetShowDebugBorders) Call(c Client) error
Call sends the request.
func (OverlaySetShowDebugBorders) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowDebugBorders) ProtoReq() string
ProtoReq name.
type OverlaySetShowFPSCounter ¶
type OverlaySetShowFPSCounter struct { // Show True for showing the FPS counter Show bool `json:"show"` }
OverlaySetShowFPSCounter Requests that backend shows the FPS counter.
func (OverlaySetShowFPSCounter) Call ¶
func (m OverlaySetShowFPSCounter) Call(c Client) error
Call sends the request.
func (OverlaySetShowFPSCounter) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowFPSCounter) ProtoReq() string
ProtoReq name.
type OverlaySetShowFlexOverlays ¶ added in v0.90.0
type OverlaySetShowFlexOverlays struct { // FlexNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance. FlexNodeHighlightConfigs []*OverlayFlexNodeHighlightConfig `json:"flexNodeHighlightConfigs"` }
OverlaySetShowFlexOverlays ...
func (OverlaySetShowFlexOverlays) Call ¶ added in v0.90.0
func (m OverlaySetShowFlexOverlays) Call(c Client) error
Call sends the request.
func (OverlaySetShowFlexOverlays) ProtoReq ¶ added in v0.90.0
func (m OverlaySetShowFlexOverlays) ProtoReq() string
ProtoReq name.
type OverlaySetShowGridOverlays ¶ added in v0.72.0
type OverlaySetShowGridOverlays struct { // GridNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance. GridNodeHighlightConfigs []*OverlayGridNodeHighlightConfig `json:"gridNodeHighlightConfigs"` }
OverlaySetShowGridOverlays Highlight multiple elements with the CSS Grid overlay.
func (OverlaySetShowGridOverlays) Call ¶ added in v0.72.0
func (m OverlaySetShowGridOverlays) Call(c Client) error
Call sends the request.
func (OverlaySetShowGridOverlays) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowGridOverlays) ProtoReq() string
ProtoReq name.
type OverlaySetShowHinge ¶ added in v0.48.0
type OverlaySetShowHinge struct { // HingeConfig (optional) hinge data, null means hideHinge HingeConfig *OverlayHingeConfig `json:"hingeConfig,omitempty"` }
OverlaySetShowHinge Add a dual screen device hinge.
func (OverlaySetShowHinge) Call ¶ added in v0.48.0
func (m OverlaySetShowHinge) Call(c Client) error
Call sends the request.
func (OverlaySetShowHinge) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowHinge) ProtoReq() string
ProtoReq name.
type OverlaySetShowHitTestBorders ¶
type OverlaySetShowHitTestBorders struct { // Show True for showing hit-test borders Show bool `json:"show"` }
OverlaySetShowHitTestBorders (deprecated) Deprecated, no longer has any effect.
func (OverlaySetShowHitTestBorders) Call ¶
func (m OverlaySetShowHitTestBorders) Call(c Client) error
Call sends the request.
func (OverlaySetShowHitTestBorders) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowHitTestBorders) ProtoReq() string
ProtoReq name.
type OverlaySetShowIsolatedElements ¶ added in v0.102.0
type OverlaySetShowIsolatedElements struct { // IsolatedElementHighlightConfigs An array of node identifiers and descriptors for the highlight appearance. IsolatedElementHighlightConfigs []*OverlayIsolatedElementHighlightConfig `json:"isolatedElementHighlightConfigs"` }
OverlaySetShowIsolatedElements Show elements in isolation mode with overlays.
func (OverlaySetShowIsolatedElements) Call ¶ added in v0.102.0
func (m OverlaySetShowIsolatedElements) Call(c Client) error
Call sends the request.
func (OverlaySetShowIsolatedElements) ProtoReq ¶ added in v0.102.0
func (m OverlaySetShowIsolatedElements) ProtoReq() string
ProtoReq name.
type OverlaySetShowLayoutShiftRegions ¶
type OverlaySetShowLayoutShiftRegions struct { // Result True for showing layout shift regions Result bool `json:"result"` }
OverlaySetShowLayoutShiftRegions Requests that backend shows layout shift regions.
func (OverlaySetShowLayoutShiftRegions) Call ¶
func (m OverlaySetShowLayoutShiftRegions) Call(c Client) error
Call sends the request.
func (OverlaySetShowLayoutShiftRegions) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowLayoutShiftRegions) ProtoReq() string
ProtoReq name.
type OverlaySetShowPaintRects ¶
type OverlaySetShowPaintRects struct { // Result True for showing paint rectangles Result bool `json:"result"` }
OverlaySetShowPaintRects Requests that backend shows paint rectangles.
func (OverlaySetShowPaintRects) Call ¶
func (m OverlaySetShowPaintRects) Call(c Client) error
Call sends the request.
func (OverlaySetShowPaintRects) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowPaintRects) ProtoReq() string
ProtoReq name.
type OverlaySetShowScrollBottleneckRects ¶
type OverlaySetShowScrollBottleneckRects struct { // Show True for showing scroll bottleneck rects Show bool `json:"show"` }
OverlaySetShowScrollBottleneckRects Requests that backend shows scroll bottleneck rects.
func (OverlaySetShowScrollBottleneckRects) Call ¶
func (m OverlaySetShowScrollBottleneckRects) Call(c Client) error
Call sends the request.
func (OverlaySetShowScrollBottleneckRects) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowScrollBottleneckRects) ProtoReq() string
ProtoReq name.
type OverlaySetShowScrollSnapOverlays ¶ added in v0.97.5
type OverlaySetShowScrollSnapOverlays struct { // ScrollSnapHighlightConfigs An array of node identifiers and descriptors for the highlight appearance. ScrollSnapHighlightConfigs []*OverlayScrollSnapHighlightConfig `json:"scrollSnapHighlightConfigs"` }
OverlaySetShowScrollSnapOverlays ...
func (OverlaySetShowScrollSnapOverlays) Call ¶ added in v0.97.5
func (m OverlaySetShowScrollSnapOverlays) Call(c Client) error
Call sends the request.
func (OverlaySetShowScrollSnapOverlays) ProtoReq ¶ added in v0.97.5
func (m OverlaySetShowScrollSnapOverlays) ProtoReq() string
ProtoReq name.
type OverlaySetShowViewportSizeOnResize ¶
type OverlaySetShowViewportSizeOnResize struct { // Show Whether to paint size or not. Show bool `json:"show"` }
OverlaySetShowViewportSizeOnResize Paints viewport size upon main frame resize.
func (OverlaySetShowViewportSizeOnResize) Call ¶
func (m OverlaySetShowViewportSizeOnResize) Call(c Client) error
Call sends the request.
func (OverlaySetShowViewportSizeOnResize) ProtoReq ¶ added in v0.74.0
func (m OverlaySetShowViewportSizeOnResize) ProtoReq() string
ProtoReq name.
type OverlaySetShowWebVitals ¶ added in v0.90.0
type OverlaySetShowWebVitals struct { // Show ... Show bool `json:"show"` }
OverlaySetShowWebVitals Request that backend shows an overlay with web vital metrics.
func (OverlaySetShowWebVitals) Call ¶ added in v0.90.0
func (m OverlaySetShowWebVitals) Call(c Client) error
Call sends the request.
func (OverlaySetShowWebVitals) ProtoReq ¶ added in v0.90.0
func (m OverlaySetShowWebVitals) ProtoReq() string
ProtoReq name.
type OverlaySetShowWindowControlsOverlay ¶ added in v0.115.0
type OverlaySetShowWindowControlsOverlay struct { // WindowControlsOverlayConfig (optional) Window Controls Overlay data, null means hide Window Controls Overlay WindowControlsOverlayConfig *OverlayWindowControlsOverlayConfig `json:"windowControlsOverlayConfig,omitempty"` }
OverlaySetShowWindowControlsOverlay Show Window Controls Overlay for PWA.
func (OverlaySetShowWindowControlsOverlay) Call ¶ added in v0.115.0
func (m OverlaySetShowWindowControlsOverlay) Call(c Client) error
Call sends the request.
func (OverlaySetShowWindowControlsOverlay) ProtoReq ¶ added in v0.115.0
func (m OverlaySetShowWindowControlsOverlay) ProtoReq() string
ProtoReq name.
type OverlaySourceOrderConfig ¶ added in v0.72.0
type OverlaySourceOrderConfig struct { // ParentOutlineColor the color to outline the given element in. ParentOutlineColor *DOMRGBA `json:"parentOutlineColor"` // ChildOutlineColor the color to outline the child elements in. ChildOutlineColor *DOMRGBA `json:"childOutlineColor"` }
OverlaySourceOrderConfig Configuration data for drawing the source order of an elements children.
type OverlayWindowControlsOverlayConfig ¶ added in v0.115.0
type OverlayWindowControlsOverlayConfig struct { // ShowCSS Whether the title bar CSS should be shown when emulating the Window Controls Overlay. ShowCSS bool `json:"showCSS"` // SelectedPlatform Selected platforms to show the overlay. SelectedPlatform string `json:"selectedPlatform"` // ThemeColor The theme color defined in app manifest. ThemeColor string `json:"themeColor"` }
OverlayWindowControlsOverlayConfig Configuration for Window Controls Overlay.
type PWAChangeAppUserSettings ¶ added in v0.116.2
type PWAChangeAppUserSettings struct { // ManifestID ... ManifestID string `json:"manifestId"` // LinkCapturing (optional) If user allows the links clicked on by the user in the app's scope, or // extended scope if the manifest has scope extensions and the flags // `DesktopPWAsLinkCapturingWithScopeExtensions` and // `WebAppEnableScopeExtensions` are enabled. // // Note, the API does not support resetting the linkCapturing to the // initial value, uninstalling and installing the web app again will reset // it. // // TODO(crbug.com/339453269): Setting this value on ChromeOS is not // supported yet. LinkCapturing bool `json:"linkCapturing,omitempty"` // DisplayMode (optional) ... DisplayMode PWADisplayMode `json:"displayMode,omitempty"` }
PWAChangeAppUserSettings Changes user settings of the web app identified by its manifestId. If the app was not installed, this command returns an error. Unset parameters will be ignored; unrecognized values will cause an error.
Unlike the ones defined in the manifest files of the web apps, these settings are provided by the browser and controlled by the users, they impact the way the browser handling the web apps.
See the comment of each parameter.
func (PWAChangeAppUserSettings) Call ¶ added in v0.116.2
func (m PWAChangeAppUserSettings) Call(c Client) error
Call sends the request.
func (PWAChangeAppUserSettings) ProtoReq ¶ added in v0.116.2
func (m PWAChangeAppUserSettings) ProtoReq() string
ProtoReq name.
type PWADisplayMode ¶ added in v0.116.2
type PWADisplayMode string
PWADisplayMode If user prefers opening the app in browser or an app window.
const ( // PWADisplayModeStandalone enum const. PWADisplayModeStandalone PWADisplayMode = "standalone" // PWADisplayModeBrowser enum const. PWADisplayModeBrowser PWADisplayMode = "browser" )
type PWAFileHandler ¶ added in v0.116.0
type PWAFileHandler struct { // Action ... Action string `json:"action"` // Accepts ... Accepts []*PWAFileHandlerAccept `json:"accepts"` // DisplayName ... DisplayName string `json:"displayName"` }
PWAFileHandler ...
type PWAFileHandlerAccept ¶ added in v0.116.0
type PWAFileHandlerAccept struct { // MediaType New name of the mimetype according to // https://www.iana.org/assignments/media-types/media-types.xhtml MediaType string `json:"mediaType"` // FileExtensions ... FileExtensions []string `json:"fileExtensions"` }
PWAFileHandlerAccept The following types are the replica of https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
type PWAGetOsAppState ¶ added in v0.116.0
type PWAGetOsAppState struct { // ManifestID The id from the webapp's manifest file, commonly it's the url of the // site installing the webapp. See // https://web.dev/learn/pwa/web-app-manifest. ManifestID string `json:"manifestId"` }
PWAGetOsAppState Returns the following OS state for the given manifest id.
func (PWAGetOsAppState) Call ¶ added in v0.116.0
func (m PWAGetOsAppState) Call(c Client) (*PWAGetOsAppStateResult, error)
Call the request.
func (PWAGetOsAppState) ProtoReq ¶ added in v0.116.0
func (m PWAGetOsAppState) ProtoReq() string
ProtoReq name.
type PWAGetOsAppStateResult ¶ added in v0.116.0
type PWAGetOsAppStateResult struct { // BadgeCount ... BadgeCount int `json:"badgeCount"` // FileHandlers ... FileHandlers []*PWAFileHandler `json:"fileHandlers"` }
PWAGetOsAppStateResult ...
type PWAInstall ¶ added in v0.116.0
type PWAInstall struct { // ManifestID ... ManifestID string `json:"manifestId"` // InstallURLOrBundleURL (optional) The location of the app or bundle overriding the one derived from the // manifestId. InstallURLOrBundleURL string `json:"installUrlOrBundleUrl,omitempty"` }
PWAInstall Installs the given manifest identity, optionally using the given install_url or IWA bundle location.
TODO(crbug.com/337872319) Support IWA to meet the following specific requirement. IWA-specific install description: If the manifest_id is isolated-app://, install_url_or_bundle_url is required, and can be either an http(s) URL or file:// URL pointing to a signed web bundle (.swbn). The .swbn file's signing key must correspond to manifest_id. If Chrome is not in IWA dev mode, the installation will fail, regardless of the state of the allowlist.
func (PWAInstall) Call ¶ added in v0.116.0
func (m PWAInstall) Call(c Client) error
Call sends the request.
type PWALaunch ¶ added in v0.116.2
type PWALaunch struct { // ManifestID ... ManifestID string `json:"manifestId"` // URL (optional) ... URL string `json:"url,omitempty"` }
PWALaunch Launches the installed web app, or an url in the same web app instead of the default start url if it is provided. Returns a page Target.TargetID which can be used to attach to via Target.attachToTarget or similar APIs.
type PWALaunchFilesInApp ¶ added in v0.116.2
type PWALaunchFilesInApp struct { // ManifestID ... ManifestID string `json:"manifestId"` // Files ... Files []string `json:"files"` }
PWALaunchFilesInApp Opens one or more local files from an installed web app identified by its manifestId. The web app needs to have file handlers registered to process the files. The API returns one or more page Target.TargetIDs which can be used to attach to via Target.attachToTarget or similar APIs. If some files in the parameters cannot be handled by the web app, they will be ignored. If none of the files can be handled, this API returns an error. If no files are provided as the parameter, this API also returns an error.
According to the definition of the file handlers in the manifest file, one Target.TargetID may represent a page handling one or more files. The order of the returned Target.TargetIDs is not guaranteed.
TODO(crbug.com/339454034): Check the existences of the input files.
func (PWALaunchFilesInApp) Call ¶ added in v0.116.2
func (m PWALaunchFilesInApp) Call(c Client) (*PWALaunchFilesInAppResult, error)
Call the request.
func (PWALaunchFilesInApp) ProtoReq ¶ added in v0.116.2
func (m PWALaunchFilesInApp) ProtoReq() string
ProtoReq name.
type PWALaunchFilesInAppResult ¶ added in v0.116.2
type PWALaunchFilesInAppResult struct { // TargetIDs IDs of the tab targets created as the result. TargetIDs []TargetTargetID `json:"targetIds"` }
PWALaunchFilesInAppResult ...
type PWALaunchResult ¶ added in v0.116.2
type PWALaunchResult struct { // TargetID ID of the tab target created as a result. TargetID TargetTargetID `json:"targetId"` }
PWALaunchResult ...
type PWAOpenCurrentPageInApp ¶ added in v0.116.2
type PWAOpenCurrentPageInApp struct { // ManifestID ... ManifestID string `json:"manifestId"` }
PWAOpenCurrentPageInApp Opens the current page in its web app identified by the manifest id, needs to be called on a page target. This function returns immediately without waiting for the app to finish loading.
func (PWAOpenCurrentPageInApp) Call ¶ added in v0.116.2
func (m PWAOpenCurrentPageInApp) Call(c Client) error
Call sends the request.
func (PWAOpenCurrentPageInApp) ProtoReq ¶ added in v0.116.2
func (m PWAOpenCurrentPageInApp) ProtoReq() string
ProtoReq name.
type PWAUninstall ¶ added in v0.116.0
type PWAUninstall struct { // ManifestID ... ManifestID string `json:"manifestId"` }
PWAUninstall Uninstalls the given manifest_id and closes any opened app windows.
func (PWAUninstall) Call ¶ added in v0.116.0
func (m PWAUninstall) Call(c Client) error
Call sends the request.
func (PWAUninstall) ProtoReq ¶ added in v0.116.0
func (m PWAUninstall) ProtoReq() string
ProtoReq name.
type PageAdFrameExplanation ¶ added in v0.101.5
type PageAdFrameExplanation string
PageAdFrameExplanation (experimental) ...
const ( // PageAdFrameExplanationParentIsAd enum const. PageAdFrameExplanationParentIsAd PageAdFrameExplanation = "ParentIsAd" // PageAdFrameExplanationCreatedByAdScript enum const. PageAdFrameExplanationCreatedByAdScript PageAdFrameExplanation = "CreatedByAdScript" // PageAdFrameExplanationMatchedBlockingRule enum const. PageAdFrameExplanationMatchedBlockingRule PageAdFrameExplanation = "MatchedBlockingRule" )
type PageAdFrameStatus ¶ added in v0.101.5
type PageAdFrameStatus struct { // AdFrameType ... AdFrameType PageAdFrameType `json:"adFrameType"` // Explanations (optional) ... Explanations []PageAdFrameExplanation `json:"explanations,omitempty"` }
PageAdFrameStatus (experimental) Indicates whether a frame has been identified as an ad and why.
type PageAdFrameType ¶ added in v0.72.0
type PageAdFrameType string
PageAdFrameType (experimental) Indicates whether a frame has been identified as an ad.
const ( // PageAdFrameTypeNone enum const. PageAdFrameTypeNone PageAdFrameType = "none" // PageAdFrameTypeChild enum const. PageAdFrameTypeChild PageAdFrameType = "child" // PageAdFrameTypeRoot enum const. PageAdFrameTypeRoot PageAdFrameType = "root" )
type PageAdScriptID ¶ added in v0.107.1
type PageAdScriptID struct { // ScriptID Script Id of the bottom-most script which caused the frame to be labelled // as an ad. ScriptID RuntimeScriptID `json:"scriptId"` // DebuggerID Id of adScriptId's debugger. DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId"` }
PageAdScriptID (experimental) Identifies the bottom-most script which caused the frame to be labelled as an ad.
type PageAddCompilationCache ¶
type PageAddCompilationCache struct { // URL ... URL string `json:"url"` // Data Base64-encoded data Data []byte `json:"data"` }
PageAddCompilationCache (experimental) Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.
func (PageAddCompilationCache) Call ¶
func (m PageAddCompilationCache) Call(c Client) error
Call sends the request.
func (PageAddCompilationCache) ProtoReq ¶ added in v0.74.0
func (m PageAddCompilationCache) ProtoReq() string
ProtoReq name.
type PageAddScriptToEvaluateOnLoad ¶
type PageAddScriptToEvaluateOnLoad struct { // ScriptSource ... ScriptSource string `json:"scriptSource"` }
PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.
func (PageAddScriptToEvaluateOnLoad) Call ¶
func (m PageAddScriptToEvaluateOnLoad) Call(c Client) (*PageAddScriptToEvaluateOnLoadResult, error)
Call the request.
func (PageAddScriptToEvaluateOnLoad) ProtoReq ¶ added in v0.74.0
func (m PageAddScriptToEvaluateOnLoad) ProtoReq() string
ProtoReq name.
type PageAddScriptToEvaluateOnLoadResult ¶
type PageAddScriptToEvaluateOnLoadResult struct { // Identifier of the added script. Identifier PageScriptIdentifier `json:"identifier"` }
PageAddScriptToEvaluateOnLoadResult (deprecated) (experimental) ...
type PageAddScriptToEvaluateOnNewDocument ¶
type PageAddScriptToEvaluateOnNewDocument struct { // Source ... Source string `json:"source"` // WorldName (experimental) (optional) If specified, creates an isolated world with the given name and evaluates given script in it. // This world name will be used as the ExecutionContextDescription::name when the corresponding // event is emitted. WorldName string `json:"worldName,omitempty"` // IncludeCommandLineAPI (experimental) (optional) Specifies whether command line API should be available to the script, defaults // to false. IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // RunImmediately (experimental) (optional) If true, runs the script immediately on existing execution contexts or worlds. // Default: false. RunImmediately bool `json:"runImmediately,omitempty"` }
PageAddScriptToEvaluateOnNewDocument Evaluates given script in every frame upon creation (before loading frame's scripts).
func (PageAddScriptToEvaluateOnNewDocument) Call ¶
func (m PageAddScriptToEvaluateOnNewDocument) Call(c Client) (*PageAddScriptToEvaluateOnNewDocumentResult, error)
Call the request.
func (PageAddScriptToEvaluateOnNewDocument) ProtoReq ¶ added in v0.74.0
func (m PageAddScriptToEvaluateOnNewDocument) ProtoReq() string
ProtoReq name.
type PageAddScriptToEvaluateOnNewDocumentResult ¶
type PageAddScriptToEvaluateOnNewDocumentResult struct { // Identifier of the added script. Identifier PageScriptIdentifier `json:"identifier"` }
PageAddScriptToEvaluateOnNewDocumentResult ...
type PageAppManifestError ¶
type PageAppManifestError struct { // Message Error message. Message string `json:"message"` // Critical If critical, this is a non-recoverable parse error. Critical int `json:"critical"` // Line Error line. Line int `json:"line"` // Column Error column. Column int `json:"column"` }
PageAppManifestError Error while paring app manifest.
type PageAppManifestParsedProperties ¶
type PageAppManifestParsedProperties struct { // Scope Computed scope value Scope string `json:"scope"` }
PageAppManifestParsedProperties (experimental) Parsed app manifest properties.
type PageAutoResponseMode ¶ added in v0.112.9
type PageAutoResponseMode string
PageAutoResponseMode (experimental) Enum of possible auto-response for permission / prompt dialogs.
const ( // PageAutoResponseModeNone enum const. PageAutoResponseModeNone PageAutoResponseMode = "none" // PageAutoResponseModeAutoAccept enum const. PageAutoResponseModeAutoAccept PageAutoResponseMode = "autoAccept" // PageAutoResponseModeAutoReject enum const. PageAutoResponseModeAutoReject PageAutoResponseMode = "autoReject" // PageAutoResponseModeAutoOptOut enum const. PageAutoResponseModeAutoOptOut PageAutoResponseMode = "autoOptOut" )
type PageBackForwardCacheBlockingDetails ¶ added in v0.115.0
type PageBackForwardCacheBlockingDetails struct { // URL (optional) Url of the file where blockage happened. Optional because of tests. URL string `json:"url,omitempty"` // Function (optional) Function name where blockage happened. Optional because of anonymous functions and tests. Function string `json:"function,omitempty"` // LineNumber Line number in the script (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber Column number in the script (0-based). ColumnNumber int `json:"columnNumber"` }
PageBackForwardCacheBlockingDetails (experimental) ...
type PageBackForwardCacheNotRestoredExplanation ¶ added in v0.101.5
type PageBackForwardCacheNotRestoredExplanation struct { // Type of the reason Type PageBackForwardCacheNotRestoredReasonType `json:"type"` // Reason Not restored reason Reason PageBackForwardCacheNotRestoredReason `json:"reason"` // Context (optional) Context associated with the reason. The meaning of this context is // dependent on the reason: // - EmbedderExtensionSentMessageToCachedFrame: the extension ID. Context string `json:"context,omitempty"` // Details (optional) ... Details []*PageBackForwardCacheBlockingDetails `json:"details,omitempty"` }
PageBackForwardCacheNotRestoredExplanation (experimental) ...
type PageBackForwardCacheNotRestoredExplanationTree ¶ added in v0.102.0
type PageBackForwardCacheNotRestoredExplanationTree struct { // URL of each frame URL string `json:"url"` // Explanations Not restored reasons of each frame Explanations []*PageBackForwardCacheNotRestoredExplanation `json:"explanations"` // Children Array of children frame Children []*PageBackForwardCacheNotRestoredExplanationTree `json:"children"` }
PageBackForwardCacheNotRestoredExplanationTree (experimental) ...
type PageBackForwardCacheNotRestoredReason ¶ added in v0.101.5
type PageBackForwardCacheNotRestoredReason string
PageBackForwardCacheNotRestoredReason (experimental) List of not restored reasons for back-forward cache.
const ( // PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame enum const. PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame PageBackForwardCacheNotRestoredReason = "NotPrimaryMainFrame" // PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled enum const. PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabled" // PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist enum const. PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist PageBackForwardCacheNotRestoredReason = "RelatedActiveContentsExist" // PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK enum const. PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK PageBackForwardCacheNotRestoredReason = "HTTPStatusNotOK" // PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS enum const. PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS PageBackForwardCacheNotRestoredReason = "SchemeNotHTTPOrHTTPS" // PageBackForwardCacheNotRestoredReasonLoading enum const. PageBackForwardCacheNotRestoredReasonLoading PageBackForwardCacheNotRestoredReason = "Loading" // PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess enum const. PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess PageBackForwardCacheNotRestoredReason = "WasGrantedMediaAccess" // PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled enum const. PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled PageBackForwardCacheNotRestoredReason = "DisableForRenderFrameHostCalled" // PageBackForwardCacheNotRestoredReasonDomainNotAllowed enum const. PageBackForwardCacheNotRestoredReasonDomainNotAllowed PageBackForwardCacheNotRestoredReason = "DomainNotAllowed" // PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET enum const. PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET PageBackForwardCacheNotRestoredReason = "HTTPMethodNotGET" PageBackForwardCacheNotRestoredReasonSubframeIsNavigating PageBackForwardCacheNotRestoredReason = "SubframeIsNavigating" // PageBackForwardCacheNotRestoredReasonTimeout enum const. PageBackForwardCacheNotRestoredReasonTimeout PageBackForwardCacheNotRestoredReason = "Timeout" // PageBackForwardCacheNotRestoredReasonCacheLimit enum const. PageBackForwardCacheNotRestoredReasonCacheLimit PageBackForwardCacheNotRestoredReason = "CacheLimit" // PageBackForwardCacheNotRestoredReasonJavaScriptExecution enum const. PageBackForwardCacheNotRestoredReasonJavaScriptExecution PageBackForwardCacheNotRestoredReason = "JavaScriptExecution" // PageBackForwardCacheNotRestoredReasonRendererProcessKilled enum const. PageBackForwardCacheNotRestoredReasonRendererProcessKilled PageBackForwardCacheNotRestoredReason = "RendererProcessKilled" // PageBackForwardCacheNotRestoredReasonRendererProcessCrashed enum const. PageBackForwardCacheNotRestoredReasonRendererProcessCrashed PageBackForwardCacheNotRestoredReason = "RendererProcessCrashed" // PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed enum const. PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed PageBackForwardCacheNotRestoredReason = "SchedulerTrackedFeatureUsed" // PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance enum const. PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance PageBackForwardCacheNotRestoredReason = "ConflictingBrowsingInstance" // PageBackForwardCacheNotRestoredReasonCacheFlushed enum const. PageBackForwardCacheNotRestoredReasonCacheFlushed PageBackForwardCacheNotRestoredReason = "CacheFlushed" // PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation enum const. PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation PageBackForwardCacheNotRestoredReason = "ServiceWorkerVersionActivation" // PageBackForwardCacheNotRestoredReasonSessionRestored enum const. PageBackForwardCacheNotRestoredReasonSessionRestored PageBackForwardCacheNotRestoredReason = "SessionRestored" // PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage enum const. PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage PageBackForwardCacheNotRestoredReason = "ServiceWorkerPostMessage" // PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded enum const. PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded PageBackForwardCacheNotRestoredReason = "EnteredBackForwardCacheBeforeServiceWorkerHostAdded" // PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite enum const. PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_SameSite" // PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite enum const. PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_CrossSite" // PageBackForwardCacheNotRestoredReasonServiceWorkerClaim enum const. PageBackForwardCacheNotRestoredReasonServiceWorkerClaim PageBackForwardCacheNotRestoredReason = "ServiceWorkerClaim" // PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict enum const. PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict PageBackForwardCacheNotRestoredReason = "IgnoreEventAndEvict" // PageBackForwardCacheNotRestoredReasonHaveInnerContents enum const. PageBackForwardCacheNotRestoredReasonHaveInnerContents PageBackForwardCacheNotRestoredReason = "HaveInnerContents" // PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache enum const. PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache PageBackForwardCacheNotRestoredReason = "TimeoutPuttingInCache" // PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory enum const. PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByLowMemory" // PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine enum const. PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByCommandLine" // PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer enum const. PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer PageBackForwardCacheNotRestoredReason = "NetworkRequestDatapipeDrainedAsBytesConsumer" // PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected enum const. PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected PageBackForwardCacheNotRestoredReason = "NetworkRequestRedirected" // PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout enum const. PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout PageBackForwardCacheNotRestoredReason = "NetworkRequestTimeout" // PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit enum const. PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit PageBackForwardCacheNotRestoredReason = "NetworkExceedsBufferLimit" PageBackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring PageBackForwardCacheNotRestoredReason = "NavigationCancelledWhileRestoring" PageBackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry PageBackForwardCacheNotRestoredReason = "NotMostRecentNavigationEntry" // PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender enum const. PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForPrerender" // PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers enum const. PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers PageBackForwardCacheNotRestoredReason = "UserAgentOverrideDiffers" // PageBackForwardCacheNotRestoredReasonForegroundCacheLimit enum const. PageBackForwardCacheNotRestoredReasonForegroundCacheLimit PageBackForwardCacheNotRestoredReason = "ForegroundCacheLimit" // PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped enum const. PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped PageBackForwardCacheNotRestoredReason = "BrowsingInstanceNotSwapped" // PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate enum const. PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForDelegate" // PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame enum const. PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInMainFrame" // PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame enum const. PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInSubFrame" // PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration enum const. PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration PageBackForwardCacheNotRestoredReason = "ServiceWorkerUnregistration" // PageBackForwardCacheNotRestoredReasonCacheControlNoStore enum const. PageBackForwardCacheNotRestoredReasonCacheControlNoStore PageBackForwardCacheNotRestoredReason = "CacheControlNoStore" // PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified enum const. PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreCookieModified" // PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified enum const. PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreHTTPOnlyCookieModified" // PageBackForwardCacheNotRestoredReasonNoResponseHead enum const. PageBackForwardCacheNotRestoredReasonNoResponseHead PageBackForwardCacheNotRestoredReason = "NoResponseHead" // PageBackForwardCacheNotRestoredReasonUnknown enum const. PageBackForwardCacheNotRestoredReasonUnknown PageBackForwardCacheNotRestoredReason = "Unknown" PageBackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857 PageBackForwardCacheNotRestoredReason = "ActivationNavigationsDisallowedForBug1234857" // PageBackForwardCacheNotRestoredReasonErrorDocument enum const. PageBackForwardCacheNotRestoredReasonErrorDocument PageBackForwardCacheNotRestoredReason = "ErrorDocument" // PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder enum const. PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder PageBackForwardCacheNotRestoredReason = "FencedFramesEmbedder" // PageBackForwardCacheNotRestoredReasonCookieDisabled enum const. PageBackForwardCacheNotRestoredReasonCookieDisabled PageBackForwardCacheNotRestoredReason = "CookieDisabled" // PageBackForwardCacheNotRestoredReasonHTTPAuthRequired enum const. PageBackForwardCacheNotRestoredReasonHTTPAuthRequired PageBackForwardCacheNotRestoredReason = "HTTPAuthRequired" // PageBackForwardCacheNotRestoredReasonCookieFlushed enum const. PageBackForwardCacheNotRestoredReasonCookieFlushed PageBackForwardCacheNotRestoredReason = "CookieFlushed" // PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage enum const. PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage PageBackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage" // PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged enum const. PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged PageBackForwardCacheNotRestoredReason = "WebViewSettingsChanged" // PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged enum const. PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged PageBackForwardCacheNotRestoredReason = "WebViewJavaScriptObjectChanged" // PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected enum const. PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected PageBackForwardCacheNotRestoredReason = "WebViewMessageListenerInjected" // PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged enum const. PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged PageBackForwardCacheNotRestoredReason = "WebViewSafeBrowsingAllowlistChanged" // PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged enum const. PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged PageBackForwardCacheNotRestoredReason = "WebViewDocumentStartJavascriptChanged" // PageBackForwardCacheNotRestoredReasonWebSocket enum const. PageBackForwardCacheNotRestoredReasonWebSocket PageBackForwardCacheNotRestoredReason = "WebSocket" // PageBackForwardCacheNotRestoredReasonWebTransport enum const. PageBackForwardCacheNotRestoredReasonWebTransport PageBackForwardCacheNotRestoredReason = "WebTransport" // PageBackForwardCacheNotRestoredReasonWebRTC enum const. PageBackForwardCacheNotRestoredReasonWebRTC PageBackForwardCacheNotRestoredReason = "WebRTC" // PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore enum const. PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoStore" // PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache enum const. PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoCache" // PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore enum const. PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoStore" // PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache enum const. PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoCache" // PageBackForwardCacheNotRestoredReasonContainsPlugins enum const. PageBackForwardCacheNotRestoredReasonContainsPlugins PageBackForwardCacheNotRestoredReason = "ContainsPlugins" // PageBackForwardCacheNotRestoredReasonDocumentLoaded enum const. PageBackForwardCacheNotRestoredReasonDocumentLoaded PageBackForwardCacheNotRestoredReason = "DocumentLoaded" // PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers enum const. PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestOthers" // PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission enum const. PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission PageBackForwardCacheNotRestoredReason = "RequestedMIDIPermission" // PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission enum const. PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedAudioCapturePermission" // PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission enum const. PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedVideoCapturePermission" // PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors enum const. PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors PageBackForwardCacheNotRestoredReason = "RequestedBackForwardCacheBlockedSensors" // PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission enum const. PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission PageBackForwardCacheNotRestoredReason = "RequestedBackgroundWorkPermission" // PageBackForwardCacheNotRestoredReasonBroadcastChannel enum const. PageBackForwardCacheNotRestoredReasonBroadcastChannel PageBackForwardCacheNotRestoredReason = "BroadcastChannel" // PageBackForwardCacheNotRestoredReasonWebXR enum const. PageBackForwardCacheNotRestoredReasonWebXR PageBackForwardCacheNotRestoredReason = "WebXR" PageBackForwardCacheNotRestoredReasonSharedWorker PageBackForwardCacheNotRestoredReason = "SharedWorker" // PageBackForwardCacheNotRestoredReasonWebLocks enum const. PageBackForwardCacheNotRestoredReasonWebLocks PageBackForwardCacheNotRestoredReason = "WebLocks" // PageBackForwardCacheNotRestoredReasonWebHID enum const. PageBackForwardCacheNotRestoredReasonWebHID PageBackForwardCacheNotRestoredReason = "WebHID" PageBackForwardCacheNotRestoredReasonWebShare PageBackForwardCacheNotRestoredReason = "WebShare" // PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant enum const. PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant PageBackForwardCacheNotRestoredReason = "RequestedStorageAccessGrant" // PageBackForwardCacheNotRestoredReasonWebNfc enum const. PageBackForwardCacheNotRestoredReasonWebNfc PageBackForwardCacheNotRestoredReason = "WebNfc" // PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch enum const. PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestFetch" // PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR enum const. PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestXHR" // PageBackForwardCacheNotRestoredReasonAppBanner enum const. PageBackForwardCacheNotRestoredReasonAppBanner PageBackForwardCacheNotRestoredReason = "AppBanner" // PageBackForwardCacheNotRestoredReasonPrinting enum const. PageBackForwardCacheNotRestoredReasonPrinting PageBackForwardCacheNotRestoredReason = "Printing" // PageBackForwardCacheNotRestoredReasonWebDatabase enum const. PageBackForwardCacheNotRestoredReasonWebDatabase PageBackForwardCacheNotRestoredReason = "WebDatabase" // PageBackForwardCacheNotRestoredReasonPictureInPicture enum const. PageBackForwardCacheNotRestoredReasonPictureInPicture PageBackForwardCacheNotRestoredReason = "PictureInPicture" // PageBackForwardCacheNotRestoredReasonPortal enum const. PageBackForwardCacheNotRestoredReasonPortal PageBackForwardCacheNotRestoredReason = "Portal" // PageBackForwardCacheNotRestoredReasonSpeechRecognizer enum const. PageBackForwardCacheNotRestoredReasonSpeechRecognizer PageBackForwardCacheNotRestoredReason = "SpeechRecognizer" // PageBackForwardCacheNotRestoredReasonIdleManager enum const. PageBackForwardCacheNotRestoredReasonIdleManager PageBackForwardCacheNotRestoredReason = "IdleManager" // PageBackForwardCacheNotRestoredReasonPaymentManager enum const. PageBackForwardCacheNotRestoredReasonPaymentManager PageBackForwardCacheNotRestoredReason = "PaymentManager" // PageBackForwardCacheNotRestoredReasonSpeechSynthesis enum const. PageBackForwardCacheNotRestoredReasonSpeechSynthesis PageBackForwardCacheNotRestoredReason = "SpeechSynthesis" // PageBackForwardCacheNotRestoredReasonKeyboardLock enum const. PageBackForwardCacheNotRestoredReasonKeyboardLock PageBackForwardCacheNotRestoredReason = "KeyboardLock" // PageBackForwardCacheNotRestoredReasonWebOTPService enum const. PageBackForwardCacheNotRestoredReasonWebOTPService PageBackForwardCacheNotRestoredReason = "WebOTPService" // PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket enum const. PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestDirectSocket" // PageBackForwardCacheNotRestoredReasonInjectedJavascript enum const. PageBackForwardCacheNotRestoredReasonInjectedJavascript PageBackForwardCacheNotRestoredReason = "InjectedJavascript" // PageBackForwardCacheNotRestoredReasonInjectedStyleSheet enum const. PageBackForwardCacheNotRestoredReasonInjectedStyleSheet PageBackForwardCacheNotRestoredReason = "InjectedStyleSheet" // PageBackForwardCacheNotRestoredReasonKeepaliveRequest enum const. PageBackForwardCacheNotRestoredReasonKeepaliveRequest PageBackForwardCacheNotRestoredReason = "KeepaliveRequest" // PageBackForwardCacheNotRestoredReasonIndexedDBEvent enum const. PageBackForwardCacheNotRestoredReasonIndexedDBEvent PageBackForwardCacheNotRestoredReason = "IndexedDBEvent" // PageBackForwardCacheNotRestoredReasonDummy enum const. PageBackForwardCacheNotRestoredReasonDummy PageBackForwardCacheNotRestoredReason = "Dummy" // PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource enum const. PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource PageBackForwardCacheNotRestoredReason = "JsNetworkRequestReceivedCacheControlNoStoreResource" // PageBackForwardCacheNotRestoredReasonWebRTCSticky enum const. PageBackForwardCacheNotRestoredReasonWebRTCSticky PageBackForwardCacheNotRestoredReason = "WebRTCSticky" // PageBackForwardCacheNotRestoredReasonWebTransportSticky enum const. PageBackForwardCacheNotRestoredReasonWebTransportSticky PageBackForwardCacheNotRestoredReason = "WebTransportSticky" // PageBackForwardCacheNotRestoredReasonWebSocketSticky enum const. PageBackForwardCacheNotRestoredReasonWebSocketSticky PageBackForwardCacheNotRestoredReason = "WebSocketSticky" // PageBackForwardCacheNotRestoredReasonSmartCard enum const. PageBackForwardCacheNotRestoredReasonSmartCard PageBackForwardCacheNotRestoredReason = "SmartCard" // PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack enum const. PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack PageBackForwardCacheNotRestoredReason = "LiveMediaStreamTrack" // PageBackForwardCacheNotRestoredReasonUnloadHandler enum const. PageBackForwardCacheNotRestoredReasonUnloadHandler PageBackForwardCacheNotRestoredReason = "UnloadHandler" // PageBackForwardCacheNotRestoredReasonParserAborted enum const. PageBackForwardCacheNotRestoredReasonParserAborted PageBackForwardCacheNotRestoredReason = "ParserAborted" // PageBackForwardCacheNotRestoredReasonContentSecurityHandler enum const. PageBackForwardCacheNotRestoredReasonContentSecurityHandler PageBackForwardCacheNotRestoredReason = "ContentSecurityHandler" // PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI enum const. PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI PageBackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI" // PageBackForwardCacheNotRestoredReasonContentFileChooser enum const. PageBackForwardCacheNotRestoredReasonContentFileChooser PageBackForwardCacheNotRestoredReason = "ContentFileChooser" // PageBackForwardCacheNotRestoredReasonContentSerial enum const. PageBackForwardCacheNotRestoredReasonContentSerial PageBackForwardCacheNotRestoredReason = "ContentSerial" // PageBackForwardCacheNotRestoredReasonContentFileSystemAccess enum const. PageBackForwardCacheNotRestoredReasonContentFileSystemAccess PageBackForwardCacheNotRestoredReason = "ContentFileSystemAccess" // PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost enum const. PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost PageBackForwardCacheNotRestoredReason = "ContentMediaDevicesDispatcherHost" // PageBackForwardCacheNotRestoredReasonContentWebBluetooth enum const. PageBackForwardCacheNotRestoredReasonContentWebBluetooth PageBackForwardCacheNotRestoredReason = "ContentWebBluetooth" // PageBackForwardCacheNotRestoredReasonContentWebUSB enum const. PageBackForwardCacheNotRestoredReasonContentWebUSB PageBackForwardCacheNotRestoredReason = "ContentWebUSB" // PageBackForwardCacheNotRestoredReasonContentMediaSessionService enum const. PageBackForwardCacheNotRestoredReasonContentMediaSessionService PageBackForwardCacheNotRestoredReason = "ContentMediaSessionService" // PageBackForwardCacheNotRestoredReasonContentScreenReader enum const. PageBackForwardCacheNotRestoredReasonContentScreenReader PageBackForwardCacheNotRestoredReason = "ContentScreenReader" // PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper enum const. PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderPopupBlockerTabHelper" // PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker enum const. PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingTriggeredPopupBlocker" // PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails enum const. PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingThreatDetails" // PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager enum const. PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager PageBackForwardCacheNotRestoredReason = "EmbedderAppBannerManager" // PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource enum const. PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerViewerSource" // PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate enum const. PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerSelfDeletingRequestDelegate" // PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper enum const. PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderOomInterventionTabHelper" // PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage enum const. PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage PageBackForwardCacheNotRestoredReason = "EmbedderOfflinePage" // PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager enum const. PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager PageBackForwardCacheNotRestoredReason = "EmbedderChromePasswordManagerClientBindCredentialManager" // PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager enum const. PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager PageBackForwardCacheNotRestoredReason = "EmbedderPermissionRequestManager" // PageBackForwardCacheNotRestoredReasonEmbedderModalDialog enum const. PageBackForwardCacheNotRestoredReasonEmbedderModalDialog PageBackForwardCacheNotRestoredReason = "EmbedderModalDialog" // PageBackForwardCacheNotRestoredReasonEmbedderExtensions enum const. PageBackForwardCacheNotRestoredReasonEmbedderExtensions PageBackForwardCacheNotRestoredReason = "EmbedderExtensions" // PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging enum const. PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessaging" // PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort enum const. PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessagingForOpenPort" // PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame enum const. PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame PageBackForwardCacheNotRestoredReason = "EmbedderExtensionSentMessageToCachedFrame" // PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient enum const. PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient PageBackForwardCacheNotRestoredReason = "RequestedByWebViewClient" )
type PageBackForwardCacheNotRestoredReasonType ¶ added in v0.101.5
type PageBackForwardCacheNotRestoredReasonType string
PageBackForwardCacheNotRestoredReasonType (experimental) Types of not restored reasons for back-forward cache.
const ( // PageBackForwardCacheNotRestoredReasonTypeSupportPending enum const. PageBackForwardCacheNotRestoredReasonTypeSupportPending PageBackForwardCacheNotRestoredReasonType = "SupportPending" // PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded enum const. PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded PageBackForwardCacheNotRestoredReasonType = "PageSupportNeeded" // PageBackForwardCacheNotRestoredReasonTypeCircumstantial enum const. PageBackForwardCacheNotRestoredReasonTypeCircumstantial PageBackForwardCacheNotRestoredReasonType = "Circumstantial" )
type PageBackForwardCacheNotUsed ¶ added in v0.100.0
type PageBackForwardCacheNotUsed struct { // LoaderID The loader id for the associated navigation. LoaderID NetworkLoaderID `json:"loaderId"` // FrameID The frame id of the associated frame. FrameID PageFrameID `json:"frameId"` // NotRestoredExplanations Array of reasons why the page could not be cached. This must not be empty. NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"` // NotRestoredExplanationsTree (optional) Tree structure of reasons why the page could not be cached for each frame. NotRestoredExplanationsTree *PageBackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty"` }
PageBackForwardCacheNotUsed (experimental) Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
func (PageBackForwardCacheNotUsed) ProtoEvent ¶ added in v0.100.0
func (evt PageBackForwardCacheNotUsed) ProtoEvent() string
ProtoEvent name.
type PageBringToFront ¶
type PageBringToFront struct{}
PageBringToFront Brings page to front (activates tab).
func (PageBringToFront) Call ¶
func (m PageBringToFront) Call(c Client) error
Call sends the request.
func (PageBringToFront) ProtoReq ¶ added in v0.74.0
func (m PageBringToFront) ProtoReq() string
ProtoReq name.
type PageCaptureScreenshot ¶
type PageCaptureScreenshot struct { // Format (optional) Image compression format (defaults to png). Format PageCaptureScreenshotFormat `json:"format,omitempty"` // Quality (optional) Compression quality from range [0..100] (jpeg only). Quality *int `json:"quality,omitempty"` // Clip (optional) Capture the screenshot of a given region only. Clip *PageViewport `json:"clip,omitempty"` // FromSurface (experimental) (optional) Capture the screenshot from the surface, rather than the view. Defaults to true. FromSurface bool `json:"fromSurface,omitempty"` // CaptureBeyondViewport (experimental) (optional) Capture the screenshot beyond the viewport. Defaults to false. CaptureBeyondViewport bool `json:"captureBeyondViewport,omitempty"` // OptimizeForSpeed (experimental) (optional) Optimize image encoding for speed, not for resulting size (defaults to false) OptimizeForSpeed bool `json:"optimizeForSpeed,omitempty"` }
PageCaptureScreenshot Capture page screenshot.
func (PageCaptureScreenshot) Call ¶
func (m PageCaptureScreenshot) Call(c Client) (*PageCaptureScreenshotResult, error)
Call the request.
func (PageCaptureScreenshot) ProtoReq ¶ added in v0.74.0
func (m PageCaptureScreenshot) ProtoReq() string
ProtoReq name.
type PageCaptureScreenshotFormat ¶
type PageCaptureScreenshotFormat string
PageCaptureScreenshotFormat enum.
const ( // PageCaptureScreenshotFormatJpeg enum const. PageCaptureScreenshotFormatJpeg PageCaptureScreenshotFormat = "jpeg" // PageCaptureScreenshotFormatPng enum const. PageCaptureScreenshotFormatPng PageCaptureScreenshotFormat = "png" // PageCaptureScreenshotFormatWebp enum const. PageCaptureScreenshotFormatWebp PageCaptureScreenshotFormat = "webp" )
type PageCaptureScreenshotResult ¶
type PageCaptureScreenshotResult struct { // Data Base64-encoded image data. Data []byte `json:"data"` }
PageCaptureScreenshotResult ...
type PageCaptureSnapshot ¶
type PageCaptureSnapshot struct { // Format (optional) Format (defaults to mhtml). Format PageCaptureSnapshotFormat `json:"format,omitempty"` }
PageCaptureSnapshot (experimental) 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 (PageCaptureSnapshot) Call ¶
func (m PageCaptureSnapshot) Call(c Client) (*PageCaptureSnapshotResult, error)
Call the request.
func (PageCaptureSnapshot) ProtoReq ¶ added in v0.74.0
func (m PageCaptureSnapshot) ProtoReq() string
ProtoReq name.
type PageCaptureSnapshotFormat ¶
type PageCaptureSnapshotFormat string
PageCaptureSnapshotFormat enum.
const ( // PageCaptureSnapshotFormatMhtml enum const. PageCaptureSnapshotFormatMhtml PageCaptureSnapshotFormat = "mhtml" )
type PageCaptureSnapshotResult ¶
type PageCaptureSnapshotResult struct { // Data Serialized page data. Data string `json:"data"` }
PageCaptureSnapshotResult (experimental) ...
type PageClearCompilationCache ¶
type PageClearCompilationCache struct{}
PageClearCompilationCache (experimental) Clears seeded compilation cache.
func (PageClearCompilationCache) Call ¶
func (m PageClearCompilationCache) Call(c Client) error
Call sends the request.
func (PageClearCompilationCache) ProtoReq ¶ added in v0.74.0
func (m PageClearCompilationCache) ProtoReq() string
ProtoReq name.
type PageClearDeviceMetricsOverride ¶
type PageClearDeviceMetricsOverride struct{}
PageClearDeviceMetricsOverride (deprecated) (experimental) Clears the overridden device metrics.
func (PageClearDeviceMetricsOverride) Call ¶
func (m PageClearDeviceMetricsOverride) Call(c Client) error
Call sends the request.
func (PageClearDeviceMetricsOverride) ProtoReq ¶ added in v0.74.0
func (m PageClearDeviceMetricsOverride) ProtoReq() string
ProtoReq name.
type PageClearDeviceOrientationOverride ¶
type PageClearDeviceOrientationOverride struct{}
PageClearDeviceOrientationOverride (deprecated) (experimental) Clears the overridden Device Orientation.
func (PageClearDeviceOrientationOverride) Call ¶
func (m PageClearDeviceOrientationOverride) Call(c Client) error
Call sends the request.
func (PageClearDeviceOrientationOverride) ProtoReq ¶ added in v0.74.0
func (m PageClearDeviceOrientationOverride) ProtoReq() string
ProtoReq name.
type PageClearGeolocationOverride ¶
type PageClearGeolocationOverride struct{}
PageClearGeolocationOverride (deprecated) Clears the overridden Geolocation Position and Error.
func (PageClearGeolocationOverride) Call ¶
func (m PageClearGeolocationOverride) Call(c Client) error
Call sends the request.
func (PageClearGeolocationOverride) ProtoReq ¶ added in v0.74.0
func (m PageClearGeolocationOverride) ProtoReq() string
ProtoReq name.
type PageClientNavigationDisposition ¶ added in v0.48.0
type PageClientNavigationDisposition string
PageClientNavigationDisposition (experimental) ...
const ( PageClientNavigationDisposition = "currentTab" PageClientNavigationDispositionNewTab PageClientNavigationDisposition = "newTab" PageClientNavigationDispositionNewWindow PageClientNavigationDisposition = "newWindow" PageClientNavigationDispositionDownload PageClientNavigationDisposition = "download" )PageClientNavigationDispositionCurrentTab
type PageClientNavigationReason ¶
type PageClientNavigationReason string
PageClientNavigationReason (experimental) ...
const ( PageClientNavigationReason = "formSubmissionGet" PageClientNavigationReasonFormSubmissionPost PageClientNavigationReason = "formSubmissionPost" PageClientNavigationReasonHTTPHeaderRefresh PageClientNavigationReason = "httpHeaderRefresh" PageClientNavigationReasonScriptInitiated PageClientNavigationReason = "scriptInitiated" PageClientNavigationReasonMetaTagRefresh PageClientNavigationReason = "metaTagRefresh" PageClientNavigationReasonPageBlockInterstitial PageClientNavigationReason = "pageBlockInterstitial" PageClientNavigationReasonReload PageClientNavigationReason = "reload" PageClientNavigationReasonAnchorClick PageClientNavigationReason = "anchorClick" )PageClientNavigationReasonFormSubmissionGet
type PageClose ¶
type PageClose struct{}
PageClose Tries to close page, running its beforeunload hooks, if any.
type PageCompilationCacheParams ¶ added in v0.97.5
type PageCompilationCacheParams struct { // URL The URL of the script to produce a compilation cache entry for. URL string `json:"url"` // Eager (optional) A hint to the backend whether eager compilation is recommended. // (the actual compilation mode used is upon backend discretion). Eager bool `json:"eager,omitempty"` }
PageCompilationCacheParams (experimental) Per-script compilation cache parameters for `Page.produceCompilationCache`.
type PageCompilationCacheProduced ¶
type PageCompilationCacheProduced struct { // URL ... URL string `json:"url"` // Data Base64-encoded data Data []byte `json:"data"` }
PageCompilationCacheProduced (experimental) Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.
func (PageCompilationCacheProduced) ProtoEvent ¶ added in v0.72.0
func (evt PageCompilationCacheProduced) ProtoEvent() string
ProtoEvent name.
type PageCrash ¶
type PageCrash struct{}
PageCrash (experimental) Crashes renderer on the IO thread, generates minidumps.
type PageCreateIsolatedWorld ¶
type PageCreateIsolatedWorld struct { // FrameID Id of the frame in which the isolated world should be created. FrameID PageFrameID `json:"frameId"` // WorldName (optional) An optional name which is reported in the Execution Context. WorldName string `json:"worldName,omitempty"` // GrantUniveralAccess (optional) Whether or not universal access should be granted to the isolated world. This is a powerful // option, use with caution. GrantUniveralAccess bool `json:"grantUniveralAccess,omitempty"` }
PageCreateIsolatedWorld Creates an isolated world for the given frame.
func (PageCreateIsolatedWorld) Call ¶
func (m PageCreateIsolatedWorld) Call(c Client) (*PageCreateIsolatedWorldResult, error)
Call the request.
func (PageCreateIsolatedWorld) ProtoReq ¶ added in v0.74.0
func (m PageCreateIsolatedWorld) ProtoReq() string
ProtoReq name.
type PageCreateIsolatedWorldResult ¶
type PageCreateIsolatedWorldResult struct { // ExecutionContextID Execution context of the isolated world. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` }
PageCreateIsolatedWorldResult ...
type PageCrossOriginIsolatedContextType ¶ added in v0.72.0
type PageCrossOriginIsolatedContextType string
PageCrossOriginIsolatedContextType (experimental) Indicates whether the frame is cross-origin isolated and why it is the case.
const ( // PageCrossOriginIsolatedContextTypeIsolated enum const. PageCrossOriginIsolatedContextTypeIsolated PageCrossOriginIsolatedContextType = "Isolated" // PageCrossOriginIsolatedContextTypeNotIsolated enum const. PageCrossOriginIsolatedContextTypeNotIsolated PageCrossOriginIsolatedContextType = "NotIsolated" // PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled enum const. PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled PageCrossOriginIsolatedContextType = "NotIsolatedFeatureDisabled" )
type PageDeleteCookie ¶
type PageDeleteCookie struct { // CookieName Name of the cookie to remove. CookieName string `json:"cookieName"` // URL to match cooke domain and path. URL string `json:"url"` }
PageDeleteCookie (deprecated) (experimental) Deletes browser cookie with given name, domain and path.
func (PageDeleteCookie) Call ¶
func (m PageDeleteCookie) Call(c Client) error
Call sends the request.
func (PageDeleteCookie) ProtoReq ¶ added in v0.74.0
func (m PageDeleteCookie) ProtoReq() string
ProtoReq name.
type PageDialogType ¶
type PageDialogType string
PageDialogType Javascript dialog type.
const ( // PageDialogTypeAlert enum const. PageDialogTypeAlert PageDialogType = "alert" // PageDialogTypeConfirm enum const. PageDialogTypeConfirm PageDialogType = "confirm" // PageDialogTypePrompt enum const. PageDialogTypePrompt PageDialogType = "prompt" // PageDialogTypeBeforeunload enum const. PageDialogTypeBeforeunload PageDialogType = "beforeunload" )
type PageDisable ¶
type PageDisable struct{}
PageDisable Disables page domain notifications.
func (PageDisable) ProtoReq ¶ added in v0.74.0
func (m PageDisable) ProtoReq() string
ProtoReq name.
type PageDocumentOpened ¶ added in v0.90.0
type PageDocumentOpened struct { // Frame object. Frame *PageFrame `json:"frame"` }
PageDocumentOpened (experimental) Fired when opening document to write to.
func (PageDocumentOpened) ProtoEvent ¶ added in v0.90.0
func (evt PageDocumentOpened) ProtoEvent() string
ProtoEvent name.
type PageDomContentEventFired ¶
type PageDomContentEventFired struct { // Timestamp ... Timestamp MonotonicTime `json:"timestamp"` }
PageDomContentEventFired ...
func (PageDomContentEventFired) ProtoEvent ¶ added in v0.72.0
func (evt PageDomContentEventFired) ProtoEvent() string
ProtoEvent name.
type PageDownloadProgress ¶
type PageDownloadProgress struct { // GUID Global unique identifier of the download. GUID string `json:"guid"` // TotalBytes Total expected bytes to download. TotalBytes float64 `json:"totalBytes"` // ReceivedBytes Total bytes received. ReceivedBytes float64 `json:"receivedBytes"` // State Download status. State PageDownloadProgressState `json:"state"` }
PageDownloadProgress (deprecated) (experimental) Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.
func (PageDownloadProgress) ProtoEvent ¶ added in v0.72.0
func (evt PageDownloadProgress) ProtoEvent() string
ProtoEvent name.
type PageDownloadProgressState ¶
type PageDownloadProgressState string
PageDownloadProgressState enum.
const ( // PageDownloadProgressStateInProgress enum const. PageDownloadProgressStateInProgress PageDownloadProgressState = "inProgress" // PageDownloadProgressStateCompleted enum const. PageDownloadProgressStateCompleted PageDownloadProgressState = "completed" // PageDownloadProgressStateCanceled enum const. PageDownloadProgressStateCanceled PageDownloadProgressState = "canceled" )
type PageDownloadWillBegin ¶
type PageDownloadWillBegin struct { // FrameID Id of the frame that caused download to begin. FrameID PageFrameID `json:"frameId"` // GUID Global unique identifier of the download. GUID string `json:"guid"` // URL of the resource being downloaded. URL string `json:"url"` // SuggestedFilename Suggested file name of the resource (the actual name of the file saved on disk may differ). SuggestedFilename string `json:"suggestedFilename"` }
PageDownloadWillBegin (deprecated) (experimental) Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.
func (PageDownloadWillBegin) ProtoEvent ¶ added in v0.72.0
func (evt PageDownloadWillBegin) ProtoEvent() string
ProtoEvent name.
type PageFileChooserOpened ¶
type PageFileChooserOpened struct { // FrameID (experimental) Id of the frame containing input node. FrameID PageFrameID `json:"frameId"` // Mode Input mode. Mode PageFileChooserOpenedMode `json:"mode"` // BackendNodeID (experimental) (optional) Input node id. Only present for file choosers opened via an `<input type="file">` element. BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` }
PageFileChooserOpened Emitted only when `page.interceptFileChooser` is enabled.
func (PageFileChooserOpened) ProtoEvent ¶ added in v0.72.0
func (evt PageFileChooserOpened) ProtoEvent() string
ProtoEvent name.
type PageFileChooserOpenedMode ¶
type PageFileChooserOpenedMode string
PageFileChooserOpenedMode enum.
const ( // PageFileChooserOpenedModeSelectSingle enum const. PageFileChooserOpenedModeSelectSingle PageFileChooserOpenedMode = "selectSingle" // PageFileChooserOpenedModeSelectMultiple enum const. PageFileChooserOpenedModeSelectMultiple PageFileChooserOpenedMode = "selectMultiple" )
type PageFileFilter ¶ added in v0.116.0
type PageFileFilter struct { // Name (optional) ... Name string `json:"name,omitempty"` // Accepts (optional) ... Accepts []string `json:"accepts,omitempty"` }
PageFileFilter (experimental) ...
type PageFileHandler ¶ added in v0.116.0
type PageFileHandler struct { // Action ... Action string `json:"action"` // Name ... Name string `json:"name"` // Icons (optional) ... Icons []*PageImageResource `json:"icons,omitempty"` // Accepts (optional) Mimic a map, name is the key, accepts is the value. Accepts []*PageFileFilter `json:"accepts,omitempty"` // LaunchType Won't repeat the enums, using string for easy comparison. Same as the // other enums below. LaunchType string `json:"launchType"` }
PageFileHandler (experimental) ...
type PageFontFamilies ¶
type PageFontFamilies struct { // Standard (optional) The standard font-family. Standard string `json:"standard,omitempty"` // Fixed (optional) The fixed font-family. Fixed string `json:"fixed,omitempty"` // Serif (optional) The serif font-family. Serif string `json:"serif,omitempty"` // SansSerif (optional) The sansSerif font-family. SansSerif string `json:"sansSerif,omitempty"` // Cursive (optional) The cursive font-family. Cursive string `json:"cursive,omitempty"` // Fantasy (optional) The fantasy font-family. Fantasy string `json:"fantasy,omitempty"` // Math (optional) The math font-family. Math string `json:"math,omitempty"` }
PageFontFamilies (experimental) Generic font families collection.
type PageFontSizes ¶
type PageFontSizes struct { // Standard (optional) Default standard font size. Standard *int `json:"standard,omitempty"` // Fixed (optional) Default fixed font size. Fixed *int `json:"fixed,omitempty"` }
PageFontSizes (experimental) Default font sizes.
type PageFrame ¶
type PageFrame struct { // ID Frame unique identifier. ID PageFrameID `json:"id"` // ParentID (optional) Parent frame identifier. ParentID PageFrameID `json:"parentId,omitempty"` // LoaderID Identifier of the loader associated with this frame. LoaderID NetworkLoaderID `json:"loaderId"` // Name (optional) Frame's name as specified in the tag. Name string `json:"name,omitempty"` // URL Frame document's URL without fragment. URL string `json:"url"` // URLFragment (experimental) (optional) Frame document's URL fragment including the '#'. URLFragment string `json:"urlFragment,omitempty"` // DomainAndRegistry (experimental) Frame document's registered domain, taking the public suffixes list into account. // Extracted from the Frame's url. // Example URLs: http://www.google.com/file.html -> "google.com" // http://a.b.co.uk/file.html -> "b.co.uk" DomainAndRegistry string `json:"domainAndRegistry"` // SecurityOrigin Frame document's security origin. SecurityOrigin string `json:"securityOrigin"` // MIMEType Frame document's mimeType as determined by the browser. MIMEType string `json:"mimeType"` // UnreachableURL (experimental) (optional) If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment. UnreachableURL string `json:"unreachableUrl,omitempty"` // AdFrameStatus (experimental) (optional) Indicates whether this frame was tagged as an ad and why. AdFrameStatus *PageAdFrameStatus `json:"adFrameStatus,omitempty"` // SecureContextType (experimental) Indicates whether the main document is a secure context and explains why that is the case. SecureContextType PageSecureContextType `json:"secureContextType"` // CrossOriginIsolatedContextType (experimental) Indicates whether this is a cross origin isolated context. CrossOriginIsolatedContextType PageCrossOriginIsolatedContextType `json:"crossOriginIsolatedContextType"` // GatedAPIFeatures (experimental) Indicated which gated APIs / features are available. GatedAPIFeatures []PageGatedAPIFeatures `json:"gatedAPIFeatures"` }
PageFrame Information about the Frame on the page.
type PageFrameAttached ¶
type PageFrameAttached struct { // FrameID Id of the frame that has been attached. FrameID PageFrameID `json:"frameId"` // ParentFrameID Parent frame identifier. ParentFrameID PageFrameID `json:"parentFrameId"` // Stack (optional) JavaScript stack trace of when frame was attached, only set if frame initiated from script. Stack *RuntimeStackTrace `json:"stack,omitempty"` }
PageFrameAttached Fired when frame has been attached to its parent.
func (PageFrameAttached) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameAttached) ProtoEvent() string
ProtoEvent name.
type PageFrameClearedScheduledNavigation ¶
type PageFrameClearedScheduledNavigation struct { PageFrameID `json:"frameId"` }FrameID
PageFrameClearedScheduledNavigation (deprecated) Fired when frame no longer has a scheduled navigation.
func (PageFrameClearedScheduledNavigation) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameClearedScheduledNavigation) ProtoEvent() string
ProtoEvent name.
type PageFrameDetached ¶
type PageFrameDetached struct { // FrameID Id of the frame that has been detached. FrameID PageFrameID `json:"frameId"` // Reason (experimental) ... Reason PageFrameDetachedReason `json:"reason"` }
PageFrameDetached Fired when frame has been detached from its parent.
func (PageFrameDetached) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameDetached) ProtoEvent() string
ProtoEvent name.
type PageFrameDetachedReason ¶ added in v0.90.0
type PageFrameDetachedReason string
PageFrameDetachedReason enum.
const ( // PageFrameDetachedReasonRemove enum const. PageFrameDetachedReasonRemove PageFrameDetachedReason = "remove" // PageFrameDetachedReasonSwap enum const. PageFrameDetachedReasonSwap PageFrameDetachedReason = "swap" )
type PageFrameNavigated ¶
type PageFrameNavigated struct { PageFrame `json:"frame"` Type PageNavigationType `json:"type"` }Frame *
PageFrameNavigated Fired once navigation of the frame has completed. Frame is now associated with the new loader.
func (PageFrameNavigated) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameNavigated) ProtoEvent() string
ProtoEvent name.
type PageFrameRequestedNavigation ¶
type PageFrameRequestedNavigation struct { PageFrameID `json:"frameId"` Reason PageClientNavigationReason `json:"reason"` URL string `json:"url"` Disposition PageClientNavigationDisposition `json:"disposition"` }FrameID
PageFrameRequestedNavigation (experimental) Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.
func (PageFrameRequestedNavigation) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameRequestedNavigation) ProtoEvent() string
ProtoEvent name.
type PageFrameResized ¶
type PageFrameResized struct{}
PageFrameResized (experimental) ...
func (PageFrameResized) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameResized) ProtoEvent() string
ProtoEvent name.
type PageFrameResource ¶
type PageFrameResource struct { // URL Resource URL. URL string `json:"url"` // Type of this resource. Type NetworkResourceType `json:"type"` // MIMEType Resource mimeType as determined by the browser. MIMEType string `json:"mimeType"` // LastModified (optional) last-modified timestamp as reported by server. LastModified TimeSinceEpoch `json:"lastModified,omitempty"` // ContentSize (optional) Resource content size. ContentSize *float64 `json:"contentSize,omitempty"` // Failed (optional) True if the resource failed to load. Failed bool `json:"failed,omitempty"` // Canceled (optional) True if the resource was canceled during loading. Canceled bool `json:"canceled,omitempty"` }
PageFrameResource (experimental) Information about the Resource on the page.
type PageFrameResourceTree ¶
type PageFrameResourceTree struct { // Frame information for this tree item. Frame *PageFrame `json:"frame"` // ChildFrames (optional) Child frames. ChildFrames []*PageFrameResourceTree `json:"childFrames,omitempty"` // Resources Information about frame resources. Resources []*PageFrameResource `json:"resources"` }
PageFrameResourceTree (experimental) Information about the Frame hierarchy along with their cached resources.
type PageFrameScheduledNavigation ¶
type PageFrameScheduledNavigation struct { PageFrameID `json:"frameId"` // guaranteed to start. Delay float64 `json:"delay"` Reason PageClientNavigationReason `json:"reason"` URL string `json:"url"` }FrameID
PageFrameScheduledNavigation (deprecated) Fired when frame schedules a potential navigation.
func (PageFrameScheduledNavigation) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameScheduledNavigation) ProtoEvent() string
ProtoEvent name.
type PageFrameStartedLoading ¶
type PageFrameStartedLoading struct { // FrameID Id of the frame that has started loading. FrameID PageFrameID `json:"frameId"` }
PageFrameStartedLoading (experimental) Fired when frame has started loading.
func (PageFrameStartedLoading) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameStartedLoading) ProtoEvent() string
ProtoEvent name.
type PageFrameStoppedLoading ¶
type PageFrameStoppedLoading struct { // FrameID Id of the frame that has stopped loading. FrameID PageFrameID `json:"frameId"` }
PageFrameStoppedLoading (experimental) Fired when frame has stopped loading.
func (PageFrameStoppedLoading) ProtoEvent ¶ added in v0.72.0
func (evt PageFrameStoppedLoading) ProtoEvent() string
ProtoEvent name.
type PageFrameTree ¶
type PageFrameTree struct { // Frame information for this tree item. Frame *PageFrame `json:"frame"` // ChildFrames (optional) Child frames. ChildFrames []*PageFrameTree `json:"childFrames,omitempty"` }
PageFrameTree Information about the Frame hierarchy.
type PageGatedAPIFeatures ¶ added in v0.90.0
type PageGatedAPIFeatures string
PageGatedAPIFeatures (experimental) ...
const ( PageGatedAPIFeatures = "SharedArrayBuffers" PageGatedAPIFeaturesSharedArrayBuffersTransferAllowed PageGatedAPIFeatures = "SharedArrayBuffersTransferAllowed" // PageGatedAPIFeaturesPerformanceMeasureMemory enum const. PageGatedAPIFeaturesPerformanceMeasureMemory PageGatedAPIFeatures = "PerformanceMeasureMemory" // PageGatedAPIFeaturesPerformanceProfile enum const. PageGatedAPIFeaturesPerformanceProfile PageGatedAPIFeatures = "PerformanceProfile" )PageGatedAPIFeaturesSharedArrayBuffers
type PageGenerateTestReport ¶
type PageGenerateTestReport struct { // Message to be displayed in the report. Message string `json:"message"` // Group (optional) Specifies the endpoint group to deliver the report to. Group string `json:"group,omitempty"` }
PageGenerateTestReport (experimental) Generates a report for testing.
func (PageGenerateTestReport) Call ¶
func (m PageGenerateTestReport) Call(c Client) error
Call sends the request.
func (PageGenerateTestReport) ProtoReq ¶ added in v0.74.0
func (m PageGenerateTestReport) ProtoReq() string
ProtoReq name.
type PageGetAdScriptID ¶ added in v0.112.1
type PageGetAdScriptID struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
PageGetAdScriptID (experimental) ...
func (PageGetAdScriptID) Call ¶ added in v0.112.1
func (m PageGetAdScriptID) Call(c Client) (*PageGetAdScriptIDResult, error)
Call the request.
func (PageGetAdScriptID) ProtoReq ¶ added in v0.112.1
func (m PageGetAdScriptID) ProtoReq() string
ProtoReq name.
type PageGetAdScriptIDResult ¶ added in v0.112.1
type PageGetAdScriptIDResult struct { // AdScriptID (optional) Identifies the bottom-most script which caused the frame to be labelled // as an ad. Only sent if frame is labelled as an ad and id is available. AdScriptID *PageAdScriptID `json:"adScriptId,omitempty"` }
PageGetAdScriptIDResult (experimental) ...
type PageGetAppID ¶ added in v0.102.0
type PageGetAppID struct{}
PageGetAppID (experimental) Returns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled.
func (PageGetAppID) Call ¶ added in v0.102.0
func (m PageGetAppID) Call(c Client) (*PageGetAppIDResult, error)
Call the request.
func (PageGetAppID) ProtoReq ¶ added in v0.102.0
func (m PageGetAppID) ProtoReq() string
ProtoReq name.
type PageGetAppIDResult ¶ added in v0.102.0
type PageGetAppIDResult struct { // AppID (optional) App id, either from manifest's id attribute or computed from start_url AppID string `json:"appId,omitempty"` // RecommendedID (optional) Recommendation for manifest's id attribute to match current id computed from start_url RecommendedID string `json:"recommendedId,omitempty"` }
PageGetAppIDResult (experimental) ...
type PageGetAppManifest ¶
type PageGetAppManifest struct { // ManifestID (optional) ... ManifestID string `json:"manifestId,omitempty"` }
PageGetAppManifest Gets the processed manifest for this current document.
This API always waits for the manifest to be loaded. If manifestId is provided, and it does not match the manifest of the current document, this API errors out. If there is not a loaded page, this API errors out immediately.
func (PageGetAppManifest) Call ¶
func (m PageGetAppManifest) Call(c Client) (*PageGetAppManifestResult, error)
Call the request.
func (PageGetAppManifest) ProtoReq ¶ added in v0.74.0
func (m PageGetAppManifest) ProtoReq() string
ProtoReq name.
type PageGetAppManifestResult ¶
type PageGetAppManifestResult struct { // URL Manifest location. URL string `json:"url"` // Errors ... Errors []*PageAppManifestError `json:"errors"` // Data (optional) Manifest content. Data string `json:"data,omitempty"` // Parsed (deprecated) (experimental) (optional) Parsed manifest properties. Deprecated, use manifest instead. Parsed *PageAppManifestParsedProperties `json:"parsed,omitempty"` // Manifest (experimental) ... Manifest *PageWebAppManifest `json:"manifest"` }
PageGetAppManifestResult ...
type PageGetFrameTree ¶
type PageGetFrameTree struct{}
PageGetFrameTree Returns present frame tree structure.
func (PageGetFrameTree) Call ¶
func (m PageGetFrameTree) Call(c Client) (*PageGetFrameTreeResult, error)
Call the request.
func (PageGetFrameTree) ProtoReq ¶ added in v0.74.0
func (m PageGetFrameTree) ProtoReq() string
ProtoReq name.
type PageGetFrameTreeResult ¶
type PageGetFrameTreeResult struct { // FrameTree Present frame tree structure. FrameTree *PageFrameTree `json:"frameTree"` }
PageGetFrameTreeResult ...
type PageGetInstallabilityErrors ¶
type PageGetInstallabilityErrors struct{}
PageGetInstallabilityErrors (experimental) ...
func (PageGetInstallabilityErrors) Call ¶
func (m PageGetInstallabilityErrors) Call(c Client) (*PageGetInstallabilityErrorsResult, error)
Call the request.
func (PageGetInstallabilityErrors) ProtoReq ¶ added in v0.74.0
func (m PageGetInstallabilityErrors) ProtoReq() string
ProtoReq name.
type PageGetInstallabilityErrorsResult ¶
type PageGetInstallabilityErrorsResult struct { // InstallabilityErrors ... InstallabilityErrors []*PageInstallabilityError `json:"installabilityErrors"` }
PageGetInstallabilityErrorsResult (experimental) ...
type PageGetLayoutMetrics ¶
type PageGetLayoutMetrics struct{}
PageGetLayoutMetrics Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
func (PageGetLayoutMetrics) Call ¶
func (m PageGetLayoutMetrics) Call(c Client) (*PageGetLayoutMetricsResult, error)
Call the request.
func (PageGetLayoutMetrics) ProtoReq ¶ added in v0.74.0
func (m PageGetLayoutMetrics) ProtoReq() string
ProtoReq name.
type PageGetLayoutMetricsResult ¶
type PageGetLayoutMetricsResult struct { // LayoutViewport (deprecated) Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead. LayoutViewport *PageLayoutViewport `json:"layoutViewport"` // VisualViewport (deprecated) Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead. VisualViewport *PageVisualViewport `json:"visualViewport"` // ContentSize (deprecated) Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead. ContentSize *DOMRect `json:"contentSize"` // CSSLayoutViewport Metrics relating to the layout viewport in CSS pixels. CSSLayoutViewport *PageLayoutViewport `json:"cssLayoutViewport"` // CSSVisualViewport Metrics relating to the visual viewport in CSS pixels. CSSVisualViewport *PageVisualViewport `json:"cssVisualViewport"` // CSSContentSize Size of scrollable area in CSS pixels. CSSContentSize *DOMRect `json:"cssContentSize"` }
PageGetLayoutMetricsResult ...
type PageGetManifestIcons ¶
type PageGetManifestIcons struct{}
PageGetManifestIcons (deprecated) (experimental) Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.
func (PageGetManifestIcons) Call ¶
func (m PageGetManifestIcons) Call(c Client) (*PageGetManifestIconsResult, error)
Call the request.
func (PageGetManifestIcons) ProtoReq ¶ added in v0.74.0
func (m PageGetManifestIcons) ProtoReq() string
ProtoReq name.
type PageGetManifestIconsResult ¶
type PageGetManifestIconsResult struct { // PrimaryIcon (optional) ... PrimaryIcon []byte `json:"primaryIcon,omitempty"` }
PageGetManifestIconsResult (deprecated) (experimental) ...
type PageGetNavigationHistory ¶
type PageGetNavigationHistory struct{}
PageGetNavigationHistory Returns navigation history for the current page.
func (PageGetNavigationHistory) Call ¶
func (m PageGetNavigationHistory) Call(c Client) (*PageGetNavigationHistoryResult, error)
Call the request.
func (PageGetNavigationHistory) ProtoReq ¶ added in v0.74.0
func (m PageGetNavigationHistory) ProtoReq() string
ProtoReq name.
type PageGetNavigationHistoryResult ¶
type PageGetNavigationHistoryResult struct { int `json:"currentIndex"` Entries []*PageNavigationEntry `json:"entries"` }CurrentIndex
PageGetNavigationHistoryResult ...
type PageGetOriginTrials ¶ added in v0.102.0
type PageGetOriginTrials struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
PageGetOriginTrials (experimental) Get Origin Trials on given frame.
func (PageGetOriginTrials) Call ¶ added in v0.102.0
func (m PageGetOriginTrials) Call(c Client) (*PageGetOriginTrialsResult, error)
Call the request.
func (PageGetOriginTrials) ProtoReq ¶ added in v0.102.0
func (m PageGetOriginTrials) ProtoReq() string
ProtoReq name.
type PageGetOriginTrialsResult ¶ added in v0.102.0
type PageGetOriginTrialsResult struct { // OriginTrials ... OriginTrials []*PageOriginTrial `json:"originTrials"` }
PageGetOriginTrialsResult (experimental) ...
type PageGetPermissionsPolicyState ¶ added in v0.93.0
type PageGetPermissionsPolicyState struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
PageGetPermissionsPolicyState (experimental) Get Permissions Policy state on given frame.
func (PageGetPermissionsPolicyState) Call ¶ added in v0.93.0
func (m PageGetPermissionsPolicyState) Call(c Client) (*PageGetPermissionsPolicyStateResult, error)
Call the request.
func (PageGetPermissionsPolicyState) ProtoReq ¶ added in v0.93.0
func (m PageGetPermissionsPolicyState) ProtoReq() string
ProtoReq name.
type PageGetPermissionsPolicyStateResult ¶ added in v0.93.0
type PageGetPermissionsPolicyStateResult struct { // States ... States []*PagePermissionsPolicyFeatureState `json:"states"` }
PageGetPermissionsPolicyStateResult (experimental) ...
type PageGetResourceContent ¶
type PageGetResourceContent struct { // FrameID Frame id to get resource for. FrameID PageFrameID `json:"frameId"` // URL of the resource to get content for. URL string `json:"url"` }
PageGetResourceContent (experimental) Returns content of the given resource.
func (PageGetResourceContent) Call ¶
func (m PageGetResourceContent) Call(c Client) (*PageGetResourceContentResult, error)
Call the request.
func (PageGetResourceContent) ProtoReq ¶ added in v0.74.0
func (m PageGetResourceContent) ProtoReq() string
ProtoReq name.
type PageGetResourceContentResult ¶
type PageGetResourceContentResult struct { // Content Resource content. Content string `json:"content"` // Base64Encoded True, if content was served as base64. Base64Encoded bool `json:"base64Encoded"` }
PageGetResourceContentResult (experimental) ...
type PageGetResourceTree ¶
type PageGetResourceTree struct{}
PageGetResourceTree (experimental) Returns present frame / resource tree structure.
func (PageGetResourceTree) Call ¶
func (m PageGetResourceTree) Call(c Client) (*PageGetResourceTreeResult, error)
Call the request.
func (PageGetResourceTree) ProtoReq ¶ added in v0.74.0
func (m PageGetResourceTree) ProtoReq() string
ProtoReq name.
type PageGetResourceTreeResult ¶
type PageGetResourceTreeResult struct { // FrameTree Present frame / resource tree structure. FrameTree *PageFrameResourceTree `json:"frameTree"` }
PageGetResourceTreeResult (experimental) ...
type PageHandleJavaScriptDialog ¶
type PageHandleJavaScriptDialog struct { // Accept Whether to accept or dismiss the dialog. Accept bool `json:"accept"` // PromptText (optional) The text to enter into the dialog prompt before accepting. Used only if this is a prompt // dialog. PromptText string `json:"promptText,omitempty"` }
PageHandleJavaScriptDialog Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
func (PageHandleJavaScriptDialog) Call ¶
func (m PageHandleJavaScriptDialog) Call(c Client) error
Call sends the request.
func (PageHandleJavaScriptDialog) ProtoReq ¶ added in v0.74.0
func (m PageHandleJavaScriptDialog) ProtoReq() string
ProtoReq name.
type PageImageResource ¶ added in v0.116.0
type PageImageResource struct { // URL The src field in the definition, but changing to url in favor of // consistency. URL string `json:"url"` // Sizes (optional) ... Sizes string `json:"sizes,omitempty"` // Type (optional) ... Type string `json:"type,omitempty"` }
PageImageResource (experimental) The image definition used in both icon and screenshot.
type PageInstallabilityError ¶
type PageInstallabilityError struct { // ErrorID The error id (e.g. 'manifest-missing-suitable-icon'). ErrorID string `json:"errorId"` // ErrorArguments The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). ErrorArguments []*PageInstallabilityErrorArgument `json:"errorArguments"` }
PageInstallabilityError (experimental) The installability error.
type PageInstallabilityErrorArgument ¶
type PageInstallabilityErrorArgument struct { // Name Argument name (e.g. name:'minimum-icon-size-in-pixels'). Name string `json:"name"` // Value Argument value (e.g. value:'64'). Value string `json:"value"` }
PageInstallabilityErrorArgument (experimental) ...
type PageInterstitialHidden ¶
type PageInterstitialHidden struct{}
PageInterstitialHidden Fired when interstitial page was hidden.
func (PageInterstitialHidden) ProtoEvent ¶ added in v0.72.0
func (evt PageInterstitialHidden) ProtoEvent() string
ProtoEvent name.
type PageInterstitialShown ¶
type PageInterstitialShown struct{}
PageInterstitialShown Fired when interstitial page was shown.
func (PageInterstitialShown) ProtoEvent ¶ added in v0.72.0
func (evt PageInterstitialShown) ProtoEvent() string
ProtoEvent name.
type PageJavascriptDialogClosed ¶
type PageJavascriptDialogClosed struct { // Result Whether dialog was confirmed. Result bool `json:"result"` // UserInput User input in case of prompt. UserInput string `json:"userInput"` }
PageJavascriptDialogClosed Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
func (PageJavascriptDialogClosed) ProtoEvent ¶ added in v0.72.0
func (evt PageJavascriptDialogClosed) ProtoEvent() string
ProtoEvent name.
type PageJavascriptDialogOpening ¶
type PageJavascriptDialogOpening struct { // URL Frame url. URL string `json:"url"` // Message that will be displayed by the dialog. Message string `json:"message"` // Type Dialog type. Type PageDialogType `json:"type"` // HasBrowserHandler True iff browser is capable showing or acting on the given dialog. When browser has no // dialog handler for given target, calling alert while Page domain is engaged will stall // the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. HasBrowserHandler bool `json:"hasBrowserHandler"` // DefaultPrompt (optional) Default dialog prompt. DefaultPrompt string `json:"defaultPrompt,omitempty"` }
PageJavascriptDialogOpening Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
func (PageJavascriptDialogOpening) ProtoEvent ¶ added in v0.72.0
func (evt PageJavascriptDialogOpening) ProtoEvent() string
ProtoEvent name.
type PageLaunchHandler ¶ added in v0.116.0
type PageLaunchHandler struct { // ClientMode ... ClientMode string `json:"clientMode"` }
PageLaunchHandler (experimental) ...
type PageLayoutViewport ¶
type PageLayoutViewport struct { // PageX Horizontal offset relative to the document (CSS pixels). PageX int `json:"pageX"` // PageY Vertical offset relative to the document (CSS pixels). PageY int `json:"pageY"` // ClientWidth Width (CSS pixels), excludes scrollbar if present. ClientWidth int `json:"clientWidth"` // ClientHeight Height (CSS pixels), excludes scrollbar if present. ClientHeight int `json:"clientHeight"` }
PageLayoutViewport Layout viewport position and dimensions.
type PageLifecycleEvent ¶
type PageLifecycleEvent struct { // FrameID Id of the frame. FrameID PageFrameID `json:"frameId"` // LoaderID Loader identifier. Empty string if the request is fetched from worker. LoaderID NetworkLoaderID `json:"loaderId"` // Name ... Name PageLifecycleEventName `json:"name"` // Timestamp ... Timestamp MonotonicTime `json:"timestamp"` }
PageLifecycleEvent Fired for top level page lifecycle events such as navigation, load, paint, etc.
func (PageLifecycleEvent) ProtoEvent ¶ added in v0.72.0
func (evt PageLifecycleEvent) ProtoEvent() string
ProtoEvent name.
type PageLifecycleEventName ¶ added in v0.59.0
type PageLifecycleEventName string
PageLifecycleEventName enum.
const ( // PageLifecycleEventNameInit enum const. PageLifecycleEventNameInit PageLifecycleEventName = "init" // PageLifecycleEventNameFirstPaint enum const. PageLifecycleEventNameFirstPaint PageLifecycleEventName = "firstPaint" // PageLifecycleEventNameFirstContentfulPaint enum const. PageLifecycleEventNameFirstContentfulPaint PageLifecycleEventName = "firstContentfulPaint" // PageLifecycleEventNameFirstImagePaint enum const. PageLifecycleEventNameFirstImagePaint PageLifecycleEventName = "firstImagePaint" // PageLifecycleEventNameFirstMeaningfulPaintCandidate enum const. PageLifecycleEventNameFirstMeaningfulPaintCandidate PageLifecycleEventName = "firstMeaningfulPaintCandidate" // PageLifecycleEventNameDOMContentLoaded enum const. PageLifecycleEventNameDOMContentLoaded PageLifecycleEventName = "DOMContentLoaded" // PageLifecycleEventNameLoad enum const. PageLifecycleEventNameLoad PageLifecycleEventName = "load" // PageLifecycleEventNameNetworkAlmostIdle enum const. PageLifecycleEventNameNetworkAlmostIdle PageLifecycleEventName = "networkAlmostIdle" // PageLifecycleEventNameFirstMeaningfulPaint enum const. PageLifecycleEventNameFirstMeaningfulPaint PageLifecycleEventName = "firstMeaningfulPaint" // PageLifecycleEventNameNetworkIdle enum const. PageLifecycleEventNameNetworkIdle PageLifecycleEventName = "networkIdle" )
type PageLoadEventFired ¶
type PageLoadEventFired struct { // Timestamp ... Timestamp MonotonicTime `json:"timestamp"` }
PageLoadEventFired ...
func (PageLoadEventFired) ProtoEvent ¶ added in v0.72.0
func (evt PageLoadEventFired) ProtoEvent() string
ProtoEvent name.
type PageNavigate ¶
type PageNavigate struct { string `json:"url"` Referrer string `json:"referrer,omitempty"` TransitionType PageTransitionType `json:"transitionType,omitempty"` FrameID PageFrameID `json:"frameId,omitempty"` ReferrerPolicy PageReferrerPolicy `json:"referrerPolicy,omitempty"` }URL
PageNavigate Navigates current page to the given URL.
func (PageNavigate) Call ¶
func (m PageNavigate) Call(c Client) (*PageNavigateResult, error)
Call the request.
func (PageNavigate) ProtoReq ¶ added in v0.74.0
func (m PageNavigate) ProtoReq() string
ProtoReq name.
type PageNavigateResult ¶
type PageNavigateResult struct { PageFrameID `json:"frameId"` // as the previously committed loaderId would not change. LoaderID NetworkLoaderID `json:"loaderId,omitempty"` ErrorText string `json:"errorText,omitempty"` }FrameID
PageNavigateResult ...
type PageNavigateToHistoryEntry ¶
type PageNavigateToHistoryEntry struct { int `json:"entryId"` }EntryID
PageNavigateToHistoryEntry Navigates current page to the given history entry.
func (PageNavigateToHistoryEntry) Call ¶
func (m PageNavigateToHistoryEntry) Call(c Client) error
Call sends the request.
func (PageNavigateToHistoryEntry) ProtoReq ¶ added in v0.74.0
func (m PageNavigateToHistoryEntry) ProtoReq() string
ProtoReq name.
type PageNavigatedWithinDocument ¶
type PageNavigatedWithinDocument struct { PageFrameID `json:"frameId"` URL string `json:"url"` }FrameID
PageNavigatedWithinDocument (experimental) Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
func (PageNavigatedWithinDocument) ProtoEvent ¶ added in v0.72.0
func (evt PageNavigatedWithinDocument) ProtoEvent() string
ProtoEvent name.
type PageNavigationEntry ¶
type PageNavigationEntry struct { int `json:"id"` URL string `json:"url"` UserTypedURL string `json:"userTypedURL"` Title string `json:"title"` TransitionType PageTransitionType `json:"transitionType"` }ID
PageNavigationEntry Navigation history entry.
type PageNavigationType ¶ added in v0.100.0
type PageNavigationType string
PageNavigationType (experimental) The type of a frameNavigated event.
const ( PageNavigationType = "Navigation" PageNavigationTypeBackForwardCacheRestore PageNavigationType = "BackForwardCacheRestore" )PageNavigationTypeNavigation
type PageOriginTrial ¶ added in v0.100.0
type PageOriginTrial struct { // TrialName ... TrialName string `json:"trialName"` // Status ... Status PageOriginTrialStatus `json:"status"` // TokensWithStatus ... TokensWithStatus []*PageOriginTrialTokenWithStatus `json:"tokensWithStatus"` }
PageOriginTrial (experimental) ...
type PageOriginTrialStatus ¶ added in v0.100.0
type PageOriginTrialStatus string
PageOriginTrialStatus (experimental) Status for an Origin Trial.
const ( // PageOriginTrialStatusEnabled enum const. PageOriginTrialStatusEnabled PageOriginTrialStatus = "Enabled" // PageOriginTrialStatusValidTokenNotProvided enum const. PageOriginTrialStatusValidTokenNotProvided PageOriginTrialStatus = "ValidTokenNotProvided" // PageOriginTrialStatusOSNotSupported enum const. PageOriginTrialStatusOSNotSupported PageOriginTrialStatus = "OSNotSupported" // PageOriginTrialStatusTrialNotAllowed enum const. PageOriginTrialStatusTrialNotAllowed PageOriginTrialStatus = "TrialNotAllowed" )
type PageOriginTrialToken ¶ added in v0.100.0
type PageOriginTrialToken struct { // Origin ... Origin string `json:"origin"` // MatchSubDomains ... MatchSubDomains bool `json:"matchSubDomains"` // TrialName ... TrialName string `json:"trialName"` // ExpiryTime ... ExpiryTime TimeSinceEpoch `json:"expiryTime"` // IsThirdParty ... IsThirdParty bool `json:"isThirdParty"` // UsageRestriction ... UsageRestriction PageOriginTrialUsageRestriction `json:"usageRestriction"` }
PageOriginTrialToken (experimental) ...
type PageOriginTrialTokenStatus ¶ added in v0.100.0
type PageOriginTrialTokenStatus string
PageOriginTrialTokenStatus (experimental) Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.
const ( // PageOriginTrialTokenStatusSuccess enum const. PageOriginTrialTokenStatusSuccess PageOriginTrialTokenStatus = "Success" // PageOriginTrialTokenStatusNotSupported enum const. PageOriginTrialTokenStatusNotSupported PageOriginTrialTokenStatus = "NotSupported" // PageOriginTrialTokenStatusInsecure enum const. PageOriginTrialTokenStatusInsecure PageOriginTrialTokenStatus = "Insecure" // PageOriginTrialTokenStatusExpired enum const. PageOriginTrialTokenStatusExpired PageOriginTrialTokenStatus = "Expired" // PageOriginTrialTokenStatusWrongOrigin enum const. PageOriginTrialTokenStatusWrongOrigin PageOriginTrialTokenStatus = "WrongOrigin" // PageOriginTrialTokenStatusInvalidSignature enum const. PageOriginTrialTokenStatusInvalidSignature PageOriginTrialTokenStatus = "InvalidSignature" // PageOriginTrialTokenStatusMalformed enum const. PageOriginTrialTokenStatusMalformed PageOriginTrialTokenStatus = "Malformed" // PageOriginTrialTokenStatusWrongVersion enum const. PageOriginTrialTokenStatusWrongVersion PageOriginTrialTokenStatus = "WrongVersion" // PageOriginTrialTokenStatusFeatureDisabled enum const. PageOriginTrialTokenStatusFeatureDisabled PageOriginTrialTokenStatus = "FeatureDisabled" // PageOriginTrialTokenStatusTokenDisabled enum const. PageOriginTrialTokenStatusTokenDisabled PageOriginTrialTokenStatus = "TokenDisabled" // PageOriginTrialTokenStatusFeatureDisabledForUser enum const. PageOriginTrialTokenStatusFeatureDisabledForUser PageOriginTrialTokenStatus = "FeatureDisabledForUser" // PageOriginTrialTokenStatusUnknownTrial enum const. PageOriginTrialTokenStatusUnknownTrial PageOriginTrialTokenStatus = "UnknownTrial" )
type PageOriginTrialTokenWithStatus ¶ added in v0.100.0
type PageOriginTrialTokenWithStatus struct { // RawTokenText ... RawTokenText string `json:"rawTokenText"` // ParsedToken (optional) `parsedToken` is present only when the token is extractable and // parsable. ParsedToken *PageOriginTrialToken `json:"parsedToken,omitempty"` // Status ... Status PageOriginTrialTokenStatus `json:"status"` }
PageOriginTrialTokenWithStatus (experimental) ...
type PageOriginTrialUsageRestriction ¶ added in v0.100.0
type PageOriginTrialUsageRestriction string
PageOriginTrialUsageRestriction (experimental) ...
const ( // PageOriginTrialUsageRestrictionNone enum const. PageOriginTrialUsageRestrictionNone PageOriginTrialUsageRestriction = "None" // PageOriginTrialUsageRestrictionSubset enum const. PageOriginTrialUsageRestrictionSubset PageOriginTrialUsageRestriction = "Subset" )
type PagePermissionsPolicyBlockLocator ¶ added in v0.93.0
type PagePermissionsPolicyBlockLocator struct { // FrameID ... FrameID PageFrameID `json:"frameId"` // BlockReason ... BlockReason PagePermissionsPolicyBlockReason `json:"blockReason"` }
PagePermissionsPolicyBlockLocator (experimental) ...
type PagePermissionsPolicyBlockReason ¶ added in v0.93.0
type PagePermissionsPolicyBlockReason string
PagePermissionsPolicyBlockReason (experimental) Reason for a permissions policy feature to be disabled.
const ( // PagePermissionsPolicyBlockReasonHeader enum const. PagePermissionsPolicyBlockReasonHeader PagePermissionsPolicyBlockReason = "Header" // PagePermissionsPolicyBlockReasonIframeAttribute enum const. PagePermissionsPolicyBlockReasonIframeAttribute PagePermissionsPolicyBlockReason = "IframeAttribute" // PagePermissionsPolicyBlockReasonInFencedFrameTree enum const. PagePermissionsPolicyBlockReasonInFencedFrameTree PagePermissionsPolicyBlockReason = "InFencedFrameTree" // PagePermissionsPolicyBlockReasonInIsolatedApp enum const. PagePermissionsPolicyBlockReasonInIsolatedApp PagePermissionsPolicyBlockReason = "InIsolatedApp" )
type PagePermissionsPolicyFeature ¶ added in v0.93.0
type PagePermissionsPolicyFeature string
PagePermissionsPolicyFeature (experimental) All Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
const ( // PagePermissionsPolicyFeatureAccelerometer enum const. PagePermissionsPolicyFeatureAccelerometer PagePermissionsPolicyFeature = "accelerometer" // PagePermissionsPolicyFeatureAmbientLightSensor enum const. PagePermissionsPolicyFeatureAmbientLightSensor PagePermissionsPolicyFeature = "ambient-light-sensor" // PagePermissionsPolicyFeatureAttributionReporting enum const. PagePermissionsPolicyFeatureAttributionReporting PagePermissionsPolicyFeature = "attribution-reporting" // PagePermissionsPolicyFeatureAutoplay enum const. PagePermissionsPolicyFeatureAutoplay PagePermissionsPolicyFeature = "autoplay" // PagePermissionsPolicyFeatureBluetooth enum const. PagePermissionsPolicyFeatureBluetooth PagePermissionsPolicyFeature = "bluetooth" // PagePermissionsPolicyFeatureBrowsingTopics enum const. PagePermissionsPolicyFeatureBrowsingTopics PagePermissionsPolicyFeature = "browsing-topics" // PagePermissionsPolicyFeatureCamera enum const. PagePermissionsPolicyFeatureCamera PagePermissionsPolicyFeature = "camera" // PagePermissionsPolicyFeatureCapturedSurfaceControl enum const. PagePermissionsPolicyFeatureCapturedSurfaceControl PagePermissionsPolicyFeature = "captured-surface-control" // PagePermissionsPolicyFeatureChDpr enum const. PagePermissionsPolicyFeatureChDpr PagePermissionsPolicyFeature = "ch-dpr" // PagePermissionsPolicyFeatureChDeviceMemory enum const. PagePermissionsPolicyFeatureChDeviceMemory PagePermissionsPolicyFeature = "ch-device-memory" // PagePermissionsPolicyFeatureChDownlink enum const. PagePermissionsPolicyFeatureChDownlink PagePermissionsPolicyFeature = "ch-downlink" // PagePermissionsPolicyFeatureChEct enum const. PagePermissionsPolicyFeatureChEct PagePermissionsPolicyFeature = "ch-etc" // PagePermissionsPolicyFeatureChPrefersColorScheme enum const. PagePermissionsPolicyFeatureChPrefersColorScheme PagePermissionsPolicyFeature = "ch-prefers-color-scheme" // PagePermissionsPolicyFeatureChPrefersReducedMotion enum const. PagePermissionsPolicyFeatureChPrefersReducedMotion PagePermissionsPolicyFeature = "ch-prefers-reduced-motion" // PagePermissionsPolicyFeatureChPrefersReducedTransparency enum const. PagePermissionsPolicyFeatureChPrefersReducedTransparency PagePermissionsPolicyFeature = "ch-prefers-reduced-transparency" // PagePermissionsPolicyFeatureChRtt enum const. PagePermissionsPolicyFeatureChRtt PagePermissionsPolicyFeature = "ch-rtt" // PagePermissionsPolicyFeatureChSaveData enum const. PagePermissionsPolicyFeatureChSaveData PagePermissionsPolicyFeature = "ch-save-data" // PagePermissionsPolicyFeatureChUa enum const. PagePermissionsPolicyFeatureChUa PagePermissionsPolicyFeature = "ch-ua" // PagePermissionsPolicyFeatureChUaArch enum const. PagePermissionsPolicyFeatureChUaArch PagePermissionsPolicyFeature = "ch-ua-arch" // PagePermissionsPolicyFeatureChUaBitness enum const. PagePermissionsPolicyFeatureChUaBitness PagePermissionsPolicyFeature = "ch-ua-bitness" // PagePermissionsPolicyFeatureChUaPlatform enum const. PagePermissionsPolicyFeatureChUaPlatform PagePermissionsPolicyFeature = "ch-ua-platform" // PagePermissionsPolicyFeatureChUaModel enum const. PagePermissionsPolicyFeatureChUaModel PagePermissionsPolicyFeature = "ch-ua-model" // PagePermissionsPolicyFeatureChUaMobile enum const. PagePermissionsPolicyFeatureChUaMobile PagePermissionsPolicyFeature = "ch-ua-mobile" // PagePermissionsPolicyFeatureChUaFormFactors enum const. PagePermissionsPolicyFeatureChUaFormFactors PagePermissionsPolicyFeature = "ch-ua-form-factors" // PagePermissionsPolicyFeatureChUaFullVersion enum const. PagePermissionsPolicyFeatureChUaFullVersion PagePermissionsPolicyFeature = "ch-ua-full-version" // PagePermissionsPolicyFeatureChUaFullVersionList enum const. PagePermissionsPolicyFeatureChUaFullVersionList PagePermissionsPolicyFeature = "ch-ua-full-version-list" // PagePermissionsPolicyFeatureChUaPlatformVersion enum const. PagePermissionsPolicyFeatureChUaPlatformVersion PagePermissionsPolicyFeature = "ch-ua-platform-version" // PagePermissionsPolicyFeatureChUaWow64 enum const. PagePermissionsPolicyFeatureChUaWow64 PagePermissionsPolicyFeature = "ch-ua-wow64" // PagePermissionsPolicyFeatureChViewportHeight enum const. PagePermissionsPolicyFeatureChViewportHeight PagePermissionsPolicyFeature = "ch-viewport-height" // PagePermissionsPolicyFeatureChViewportWidth enum const. PagePermissionsPolicyFeatureChViewportWidth PagePermissionsPolicyFeature = "ch-viewport-width" // PagePermissionsPolicyFeatureChWidth enum const. PagePermissionsPolicyFeatureChWidth PagePermissionsPolicyFeature = "ch-width" // PagePermissionsPolicyFeatureClipboardRead enum const. PagePermissionsPolicyFeatureClipboardRead PagePermissionsPolicyFeature = "clipboard-read" // PagePermissionsPolicyFeatureClipboardWrite enum const. PagePermissionsPolicyFeatureClipboardWrite PagePermissionsPolicyFeature = "clipboard-write" // PagePermissionsPolicyFeatureComputePressure enum const. PagePermissionsPolicyFeatureComputePressure PagePermissionsPolicyFeature = "compute-pressure" // PagePermissionsPolicyFeatureCrossOriginIsolated enum const. PagePermissionsPolicyFeatureCrossOriginIsolated PagePermissionsPolicyFeature = "cross-origin-isolated" // PagePermissionsPolicyFeatureDeferredFetch enum const. PagePermissionsPolicyFeatureDeferredFetch PagePermissionsPolicyFeature = "deferred-fetch" // PagePermissionsPolicyFeatureDirectSockets enum const. PagePermissionsPolicyFeatureDirectSockets PagePermissionsPolicyFeature = "direct-sockets" // PagePermissionsPolicyFeatureDisplayCapture enum const. PagePermissionsPolicyFeatureDisplayCapture PagePermissionsPolicyFeature = "display-capture" // PagePermissionsPolicyFeatureDocumentDomain enum const. PagePermissionsPolicyFeatureDocumentDomain PagePermissionsPolicyFeature = "document-domain" // PagePermissionsPolicyFeatureEncryptedMedia enum const. PagePermissionsPolicyFeatureEncryptedMedia PagePermissionsPolicyFeature = "encrypted-media" // PagePermissionsPolicyFeatureExecutionWhileOutOfViewport enum const. PagePermissionsPolicyFeatureExecutionWhileOutOfViewport PagePermissionsPolicyFeature = "execution-while-out-of-viewport" // PagePermissionsPolicyFeatureExecutionWhileNotRendered enum const. PagePermissionsPolicyFeatureExecutionWhileNotRendered PagePermissionsPolicyFeature = "execution-while-not-rendered" // PagePermissionsPolicyFeatureFocusWithoutUserActivation enum const. PagePermissionsPolicyFeatureFocusWithoutUserActivation PagePermissionsPolicyFeature = "focus-without-user-activation" // PagePermissionsPolicyFeatureFullscreen enum const. PagePermissionsPolicyFeatureFullscreen PagePermissionsPolicyFeature = "fullscreen" // PagePermissionsPolicyFeatureFrobulate enum const. PagePermissionsPolicyFeatureFrobulate PagePermissionsPolicyFeature = "frobulate" // PagePermissionsPolicyFeatureGamepad enum const. PagePermissionsPolicyFeatureGamepad PagePermissionsPolicyFeature = "gamepad" // PagePermissionsPolicyFeatureGeolocation enum const. PagePermissionsPolicyFeatureGeolocation PagePermissionsPolicyFeature = "geolocation" // PagePermissionsPolicyFeatureGyroscope enum const. PagePermissionsPolicyFeatureGyroscope PagePermissionsPolicyFeature = "gyroscope" // PagePermissionsPolicyFeatureHid enum const. PagePermissionsPolicyFeatureHid PagePermissionsPolicyFeature = "hid" // PagePermissionsPolicyFeatureIdentityCredentialsGet enum const. PagePermissionsPolicyFeatureIdentityCredentialsGet PagePermissionsPolicyFeature = "identity-credentials-get" // PagePermissionsPolicyFeatureIdleDetection enum const. PagePermissionsPolicyFeatureIdleDetection PagePermissionsPolicyFeature = "idle-detection" // PagePermissionsPolicyFeatureInterestCohort enum const. PagePermissionsPolicyFeatureInterestCohort PagePermissionsPolicyFeature = "interest-cohort" // PagePermissionsPolicyFeatureJoinAdInterestGroup enum const. PagePermissionsPolicyFeatureJoinAdInterestGroup PagePermissionsPolicyFeature = "join-ad-interest-group" // PagePermissionsPolicyFeatureKeyboardMap enum const. PagePermissionsPolicyFeatureKeyboardMap PagePermissionsPolicyFeature = "keyboard-map" // PagePermissionsPolicyFeatureLocalFonts enum const. PagePermissionsPolicyFeatureLocalFonts PagePermissionsPolicyFeature = "local-fonts" // PagePermissionsPolicyFeatureMagnetometer enum const. PagePermissionsPolicyFeatureMagnetometer PagePermissionsPolicyFeature = "magnetometer" // PagePermissionsPolicyFeatureMicrophone enum const. PagePermissionsPolicyFeatureMicrophone PagePermissionsPolicyFeature = "microphone" // PagePermissionsPolicyFeatureMidi enum const. PagePermissionsPolicyFeatureMidi PagePermissionsPolicyFeature = "midi" // PagePermissionsPolicyFeatureOtpCredentials enum const. PagePermissionsPolicyFeatureOtpCredentials PagePermissionsPolicyFeature = "otp-credentials" // PagePermissionsPolicyFeaturePayment enum const. PagePermissionsPolicyFeaturePayment PagePermissionsPolicyFeature = "payment" // PagePermissionsPolicyFeaturePictureInPicture enum const. PagePermissionsPolicyFeaturePictureInPicture PagePermissionsPolicyFeature = "picture-in-picture" // PagePermissionsPolicyFeaturePrivateAggregation enum const. PagePermissionsPolicyFeaturePrivateAggregation PagePermissionsPolicyFeature = "private-aggregation" // PagePermissionsPolicyFeaturePrivateStateTokenIssuance enum const. PagePermissionsPolicyFeaturePrivateStateTokenIssuance PagePermissionsPolicyFeature = "private-state-token-issuance" // PagePermissionsPolicyFeaturePrivateStateTokenRedemption enum const. PagePermissionsPolicyFeaturePrivateStateTokenRedemption PagePermissionsPolicyFeature = "private-state-token-redemption" // PagePermissionsPolicyFeaturePublickeyCredentialsCreate enum const. PagePermissionsPolicyFeaturePublickeyCredentialsCreate PagePermissionsPolicyFeature = "publickey-credentials-create" // PagePermissionsPolicyFeaturePublickeyCredentialsGet enum const. PagePermissionsPolicyFeaturePublickeyCredentialsGet PagePermissionsPolicyFeature = "publickey-credentials-get" // PagePermissionsPolicyFeatureRunAdAuction enum const. PagePermissionsPolicyFeatureRunAdAuction PagePermissionsPolicyFeature = "run-ad-auction" // PagePermissionsPolicyFeatureScreenWakeLock enum const. PagePermissionsPolicyFeatureScreenWakeLock PagePermissionsPolicyFeature = "screen-wake-lock" // PagePermissionsPolicyFeatureSerial enum const. PagePermissionsPolicyFeatureSerial PagePermissionsPolicyFeature = "serial" PagePermissionsPolicyFeatureSharedAutofill PagePermissionsPolicyFeature = "shared-autofill" PagePermissionsPolicyFeatureSharedStorage PagePermissionsPolicyFeature = "shared-storage" PagePermissionsPolicyFeatureSharedStorageSelectURL PagePermissionsPolicyFeature = "shared-storage-select-url" // PagePermissionsPolicyFeatureSmartCard enum const. PagePermissionsPolicyFeatureSmartCard PagePermissionsPolicyFeature = "smart-card" // PagePermissionsPolicyFeatureSpeakerSelection enum const. PagePermissionsPolicyFeatureSpeakerSelection PagePermissionsPolicyFeature = "speaker-selection" // PagePermissionsPolicyFeatureStorageAccess enum const. PagePermissionsPolicyFeatureStorageAccess PagePermissionsPolicyFeature = "storage-access" // PagePermissionsPolicyFeatureSubApps enum const. PagePermissionsPolicyFeatureSubApps PagePermissionsPolicyFeature = "sub-apps" // PagePermissionsPolicyFeatureSyncXhr enum const. PagePermissionsPolicyFeatureSyncXhr PagePermissionsPolicyFeature = "sync-xhr" // PagePermissionsPolicyFeatureUnload enum const. PagePermissionsPolicyFeatureUnload PagePermissionsPolicyFeature = "unload" // PagePermissionsPolicyFeatureUsb enum const. PagePermissionsPolicyFeatureUsb PagePermissionsPolicyFeature = "usb" // PagePermissionsPolicyFeatureUsbUnrestricted enum const. PagePermissionsPolicyFeatureUsbUnrestricted PagePermissionsPolicyFeature = "usb-unrestricted" // PagePermissionsPolicyFeatureVerticalScroll enum const. PagePermissionsPolicyFeatureVerticalScroll PagePermissionsPolicyFeature = "vertical-scroll" // PagePermissionsPolicyFeatureWebPrinting enum const. PagePermissionsPolicyFeatureWebPrinting PagePermissionsPolicyFeature = "web-printing" PagePermissionsPolicyFeatureWebShare PagePermissionsPolicyFeature = "web-share" // PagePermissionsPolicyFeatureWindowManagement enum const. PagePermissionsPolicyFeatureWindowManagement PagePermissionsPolicyFeature = "window-management" // PagePermissionsPolicyFeatureXrSpatialTracking enum const. PagePermissionsPolicyFeatureXrSpatialTracking PagePermissionsPolicyFeature = "xr-spatial-tracking" )
type PagePermissionsPolicyFeatureState ¶ added in v0.93.0
type PagePermissionsPolicyFeatureState struct { // Feature ... Feature PagePermissionsPolicyFeature `json:"feature"` // Allowed ... Allowed bool `json:"allowed"` // Locator (optional) ... Locator *PagePermissionsPolicyBlockLocator `json:"locator,omitempty"` }
PagePermissionsPolicyFeatureState (experimental) ...
type PagePrintToPDF ¶
type PagePrintToPDF struct { // Landscape (optional) Paper orientation. Defaults to false. Landscape bool `json:"landscape,omitempty"` DisplayHeaderFooter bool `json:"displayHeaderFooter,omitempty"` // PrintBackground (optional) Print background graphics. Defaults to false. PrintBackground bool `json:"printBackground,omitempty"` // Scale (optional) Scale of the webpage rendering. Defaults to 1. Scale *float64 `json:"scale,omitempty"` // PaperWidth (optional) Paper width in inches. Defaults to 8.5 inches. PaperWidth *float64 `json:"paperWidth,omitempty"` // PaperHeight (optional) Paper height in inches. Defaults to 11 inches. PaperHeight *float64 `json:"paperHeight,omitempty"` // MarginTop (optional) Top margin in inches. Defaults to 1cm (~0.4 inches). MarginTop *float64 `json:"marginTop,omitempty"` // MarginBottom (optional) Bottom margin in inches. Defaults to 1cm (~0.4 inches). MarginBottom *float64 `json:"marginBottom,omitempty"` // MarginLeft (optional) Left margin in inches. Defaults to 1cm (~0.4 inches). MarginLeft *float64 `json:"marginLeft,omitempty"` // MarginRight (optional) Right margin in inches. Defaults to 1cm (~0.4 inches). MarginRight *float64 `json:"marginRight,omitempty"` // PageRanges (optional) Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are // printed in the document order, not in the order specified, and no // more than once. // Defaults to empty string, which implies the entire document is printed. // The page numbers are quietly capped to actual page count of the // document, and ranges beyond the end of the document are ignored. // If this results in no pages to print, an error is reported. // It is an error to specify a range with start greater than end. PageRanges string `json:"pageRanges,omitempty"` // HeaderTemplate (optional) HTML template for the print header. Should be valid HTML markup with following // classes used to inject printing values into them: // - `date`: formatted print date // - `title`: document title // - `url`: document location // - `pageNumber`: current page number // - `totalPages`: total pages in the document // // For example, `<span class=title></span>` would generate span containing the title. HeaderTemplate string `json:"headerTemplate,omitempty"` FooterTemplate string `json:"footerTemplate,omitempty"` // PreferCSSPageSize (optional) Whether or not to prefer page size as defined by css. Defaults to false, // in which case the content will be scaled to fit the paper size. PreferCSSPageSize bool `json:"preferCSSPageSize,omitempty"` // TransferMode (experimental) (optional) return as stream TransferMode PagePrintToPDFTransferMode `json:"transferMode,omitempty"` // GenerateTaggedPDF (experimental) (optional) Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. GenerateTaggedPDF bool `json:"generateTaggedPDF,omitempty"` // GenerateDocumentOutline (experimental) (optional) Whether or not to embed the document outline into the PDF. GenerateDocumentOutline bool `json:"generateDocumentOutline,omitempty"` }
PagePrintToPDF Print page as PDF.
func (PagePrintToPDF) Call ¶
func (m PagePrintToPDF) Call(c Client) (*PagePrintToPDFResult, error)
Call the request.
func (PagePrintToPDF) ProtoReq ¶ added in v0.74.0
func (m PagePrintToPDF) ProtoReq() string
ProtoReq name.
type PagePrintToPDFResult ¶
type PagePrintToPDFResult struct { // Data Base64-encoded pdf data. Empty if |returnAsStream| is specified. Data []byte `json:"data"` // Stream (experimental) (optional) A handle of the stream that holds resulting PDF data. Stream IOStreamHandle `json:"stream,omitempty"` }
PagePrintToPDFResult ...
type PagePrintToPDFTransferMode ¶
type PagePrintToPDFTransferMode string
PagePrintToPDFTransferMode enum.
const ( // PagePrintToPDFTransferModeReturnAsBase64 enum const. PagePrintToPDFTransferModeReturnAsBase64 PagePrintToPDFTransferMode = "ReturnAsBase64" // PagePrintToPDFTransferModeReturnAsStream enum const. PagePrintToPDFTransferModeReturnAsStream PagePrintToPDFTransferMode = "ReturnAsStream" )
type PageProduceCompilationCache ¶ added in v0.97.5
type PageProduceCompilationCache struct { // Scripts ... Scripts []*PageCompilationCacheParams `json:"scripts"` }
PageProduceCompilationCache (experimental) Requests backend to produce compilation cache for the specified scripts. `scripts` are appended to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: `Page.compilationCacheProduced`.
func (PageProduceCompilationCache) Call ¶ added in v0.97.5
func (m PageProduceCompilationCache) Call(c Client) error
Call sends the request.
func (PageProduceCompilationCache) ProtoReq ¶ added in v0.97.5
func (m PageProduceCompilationCache) ProtoReq() string
ProtoReq name.
type PageProtocolHandler ¶ added in v0.116.0
type PageProtocolHandler struct { // Protocol ... Protocol string `json:"protocol"` // URL ... URL string `json:"url"` }
PageProtocolHandler (experimental) ...
type PageReferrerPolicy ¶
type PageReferrerPolicy string
PageReferrerPolicy (experimental) The referring-policy used for the navigation.
const ( // PageReferrerPolicyNoReferrer enum const. PageReferrerPolicyNoReferrer PageReferrerPolicy = "noReferrer" // PageReferrerPolicyNoReferrerWhenDowngrade enum const. PageReferrerPolicyNoReferrerWhenDowngrade PageReferrerPolicy = "noReferrerWhenDowngrade" // PageReferrerPolicyOrigin enum const. PageReferrerPolicyOrigin PageReferrerPolicy = "origin" // PageReferrerPolicyOriginWhenCrossOrigin enum const. PageReferrerPolicyOriginWhenCrossOrigin PageReferrerPolicy = "originWhenCrossOrigin" // PageReferrerPolicySameOrigin enum const. PageReferrerPolicySameOrigin PageReferrerPolicy = "sameOrigin" // PageReferrerPolicyStrictOrigin enum const. PageReferrerPolicyStrictOrigin PageReferrerPolicy = "strictOrigin" // PageReferrerPolicyStrictOriginWhenCrossOrigin enum const. PageReferrerPolicyStrictOriginWhenCrossOrigin PageReferrerPolicy = "strictOriginWhenCrossOrigin" // PageReferrerPolicyUnsafeURL enum const. PageReferrerPolicyUnsafeURL PageReferrerPolicy = "unsafeUrl" )
type PageRelatedApplication ¶ added in v0.116.0
type PageRelatedApplication struct { // ID (optional) ... ID string `json:"id,omitempty"` // URL ... URL string `json:"url"` }
PageRelatedApplication (experimental) ...
type PageReload ¶
type PageReload struct { // IgnoreCache (optional) If true, browser cache is ignored (as if the user pressed Shift+refresh). IgnoreCache bool `json:"ignoreCache,omitempty"` // ScriptToEvaluateOnLoad (optional) If set, the script will be injected into all frames of the inspected page after reload. // Argument will be ignored if reloading dataURL origin. ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"` // LoaderID (experimental) (optional) If set, an error will be thrown if the target page's main frame's // loader id does not match the provided id. This prevents accidentally // reloading an unintended target in case there's a racing navigation. LoaderID NetworkLoaderID `json:"loaderId,omitempty"` }
PageReload Reloads given page optionally ignoring the cache.
type PageRemoveScriptToEvaluateOnLoad ¶
type PageRemoveScriptToEvaluateOnLoad struct { // Identifier ... Identifier PageScriptIdentifier `json:"identifier"` }
PageRemoveScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
func (PageRemoveScriptToEvaluateOnLoad) Call ¶
func (m PageRemoveScriptToEvaluateOnLoad) Call(c Client) error
Call sends the request.
func (PageRemoveScriptToEvaluateOnLoad) ProtoReq ¶ added in v0.74.0
func (m PageRemoveScriptToEvaluateOnLoad) ProtoReq() string
ProtoReq name.
type PageRemoveScriptToEvaluateOnNewDocument ¶
type PageRemoveScriptToEvaluateOnNewDocument struct { // Identifier ... Identifier PageScriptIdentifier `json:"identifier"` }
PageRemoveScriptToEvaluateOnNewDocument Removes given script from the list.
func (PageRemoveScriptToEvaluateOnNewDocument) Call ¶
func (m PageRemoveScriptToEvaluateOnNewDocument) Call(c Client) error
Call sends the request.
func (PageRemoveScriptToEvaluateOnNewDocument) ProtoReq ¶ added in v0.74.0
func (m PageRemoveScriptToEvaluateOnNewDocument) ProtoReq() string
ProtoReq name.
type PageResetNavigationHistory ¶
type PageResetNavigationHistory struct{}
PageResetNavigationHistory Resets navigation history for the current page.
func (PageResetNavigationHistory) Call ¶
func (m PageResetNavigationHistory) Call(c Client) error
Call sends the request.
func (PageResetNavigationHistory) ProtoReq ¶ added in v0.74.0
func (m PageResetNavigationHistory) ProtoReq() string
ProtoReq name.
type PageScopeExtension ¶ added in v0.116.0
type PageScopeExtension struct { // Origin Instead of using tuple, this field always returns the serialized string // for easy understanding and comparison. Origin string `json:"origin"` // HasOriginWildcard ... HasOriginWildcard bool `json:"hasOriginWildcard"` }
PageScopeExtension (experimental) ...
type PageScreencastFrame ¶
type PageScreencastFrame struct { // Data Base64-encoded compressed image. Data []byte `json:"data"` // Metadata Screencast frame metadata. Metadata *PageScreencastFrameMetadata `json:"metadata"` // SessionID Frame number. SessionID int `json:"sessionId"` }
PageScreencastFrame (experimental) Compressed image data requested by the `startScreencast`.
func (PageScreencastFrame) ProtoEvent ¶ added in v0.72.0
func (evt PageScreencastFrame) ProtoEvent() string
ProtoEvent name.
type PageScreencastFrameAck ¶
type PageScreencastFrameAck struct { // SessionID Frame number. SessionID int `json:"sessionId"` }
PageScreencastFrameAck (experimental) Acknowledges that a screencast frame has been received by the frontend.
func (PageScreencastFrameAck) Call ¶
func (m PageScreencastFrameAck) Call(c Client) error
Call sends the request.
func (PageScreencastFrameAck) ProtoReq ¶ added in v0.74.0
func (m PageScreencastFrameAck) ProtoReq() string
ProtoReq name.
type PageScreencastFrameMetadata ¶
type PageScreencastFrameMetadata struct { // OffsetTop Top offset in DIP. OffsetTop float64 `json:"offsetTop"` // PageScaleFactor Page scale factor. PageScaleFactor float64 `json:"pageScaleFactor"` // DeviceWidth Device screen width in DIP. DeviceWidth float64 `json:"deviceWidth"` // DeviceHeight Device screen height in DIP. DeviceHeight float64 `json:"deviceHeight"` // ScrollOffsetX Position of horizontal scroll in CSS pixels. ScrollOffsetX float64 `json:"scrollOffsetX"` // ScrollOffsetY Position of vertical scroll in CSS pixels. ScrollOffsetY float64 `json:"scrollOffsetY"` // Timestamp (optional) Frame swap timestamp. Timestamp TimeSinceEpoch `json:"timestamp,omitempty"` }
PageScreencastFrameMetadata (experimental) Screencast frame metadata.
type PageScreencastVisibilityChanged ¶
type PageScreencastVisibilityChanged struct { // Visible True if the page is visible. Visible bool `json:"visible"` }
PageScreencastVisibilityChanged (experimental) Fired when the page with currently enabled screencast was shown or hidden `.
func (PageScreencastVisibilityChanged) ProtoEvent ¶ added in v0.72.0
func (evt PageScreencastVisibilityChanged) ProtoEvent() string
ProtoEvent name.
type PageScreenshot ¶ added in v0.116.0
type PageScreenshot struct { // Image ... Image *PageImageResource `json:"image"` // FormFactor ... FormFactor string `json:"formFactor"` // Label (optional) ... Label string `json:"label,omitempty"` }
PageScreenshot (experimental) ...
type PageScriptFontFamilies ¶ added in v0.102.0
type PageScriptFontFamilies struct { // Script Name of the script which these font families are defined for. Script string `json:"script"` // FontFamilies Generic font families collection for the script. FontFamilies *PageFontFamilies `json:"fontFamilies"` }
PageScriptFontFamilies (experimental) Font families collection for a script.
type PageScriptIdentifier ¶
type PageScriptIdentifier string
PageScriptIdentifier Unique script identifier.
type PageSearchInResource ¶
type PageSearchInResource struct { // FrameID Frame id for resource to search in. FrameID PageFrameID `json:"frameId"` // URL of the resource to search in. URL string `json:"url"` // Query String to search for. Query string `json:"query"` // CaseSensitive (optional) If true, search is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` // IsRegex (optional) If true, treats string parameter as regex. IsRegex bool `json:"isRegex,omitempty"` }
PageSearchInResource (experimental) Searches for given string in resource content.
func (PageSearchInResource) Call ¶
func (m PageSearchInResource) Call(c Client) (*PageSearchInResourceResult, error)
Call the request.
func (PageSearchInResource) ProtoReq ¶ added in v0.74.0
func (m PageSearchInResource) ProtoReq() string
ProtoReq name.
type PageSearchInResourceResult ¶
type PageSearchInResourceResult struct { // Result List of search matches. Result []*DebuggerSearchMatch `json:"result"` }
PageSearchInResourceResult (experimental) ...
type PageSecureContextType ¶ added in v0.72.0
type PageSecureContextType string
PageSecureContextType (experimental) Indicates whether the frame is a secure context and why it is the case.
const ( // PageSecureContextTypeSecure enum const. PageSecureContextTypeSecure PageSecureContextType = "Secure" // PageSecureContextTypeSecureLocalhost enum const. PageSecureContextTypeSecureLocalhost PageSecureContextType = "SecureLocalhost" // PageSecureContextTypeInsecureScheme enum const. PageSecureContextTypeInsecureScheme PageSecureContextType = "InsecureScheme" // PageSecureContextTypeInsecureAncestor enum const. PageSecureContextTypeInsecureAncestor PageSecureContextType = "InsecureAncestor" )
type PageSetAdBlockingEnabled ¶
type PageSetAdBlockingEnabled struct { // Enabled Whether to block ads. Enabled bool `json:"enabled"` }
PageSetAdBlockingEnabled (experimental) Enable Chrome's experimental ad filter on all sites.
func (PageSetAdBlockingEnabled) Call ¶
func (m PageSetAdBlockingEnabled) Call(c Client) error
Call sends the request.
func (PageSetAdBlockingEnabled) ProtoReq ¶ added in v0.74.0
func (m PageSetAdBlockingEnabled) ProtoReq() string
ProtoReq name.
type PageSetBypassCSP ¶
type PageSetBypassCSP struct { // Enabled Whether to bypass page CSP. Enabled bool `json:"enabled"` }
PageSetBypassCSP Enable page Content Security Policy by-passing.
func (PageSetBypassCSP) Call ¶
func (m PageSetBypassCSP) Call(c Client) error
Call sends the request.
func (PageSetBypassCSP) ProtoReq ¶ added in v0.74.0
func (m PageSetBypassCSP) ProtoReq() string
ProtoReq name.
type PageSetDeviceMetricsOverride ¶
type PageSetDeviceMetricsOverride struct { // Width Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. Width int `json:"width"` // Height Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. Height int `json:"height"` // DeviceScaleFactor Overriding device scale factor value. 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Mobile Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text // autosizing and more. Mobile bool `json:"mobile"` // Scale (optional) Scale to apply to resulting view image. Scale *float64 `json:"scale,omitempty"` // ScreenWidth (optional) Overriding screen width value in pixels (minimum 0, maximum 10000000). ScreenWidth *int `json:"screenWidth,omitempty"` // ScreenHeight (optional) Overriding screen height value in pixels (minimum 0, maximum 10000000). ScreenHeight *int `json:"screenHeight,omitempty"` // PositionX (optional) Overriding view X position on screen in pixels (minimum 0, maximum 10000000). PositionX *int `json:"positionX,omitempty"` // PositionY (optional) Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). PositionY *int `json:"positionY,omitempty"` // DontSetVisibleSize (optional) Do not set visible view size, rely upon explicit setVisibleSize call. DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"` // ScreenOrientation (optional) Screen orientation override. ScreenOrientation *EmulationScreenOrientation `json:"screenOrientation,omitempty"` // Viewport (optional) The viewport dimensions and scale. If not set, the override is cleared. Viewport *PageViewport `json:"viewport,omitempty"` }
PageSetDeviceMetricsOverride (deprecated) (experimental) 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 (PageSetDeviceMetricsOverride) Call ¶
func (m PageSetDeviceMetricsOverride) Call(c Client) error
Call sends the request.
func (PageSetDeviceMetricsOverride) ProtoReq ¶ added in v0.74.0
func (m PageSetDeviceMetricsOverride) ProtoReq() string
ProtoReq name.
type PageSetDeviceOrientationOverride ¶
type PageSetDeviceOrientationOverride struct { // Alpha Mock alpha Alpha float64 `json:"alpha"` // Beta Mock beta Beta float64 `json:"beta"` // Gamma Mock gamma Gamma float64 `json:"gamma"` }
PageSetDeviceOrientationOverride (deprecated) (experimental) Overrides the Device Orientation.
func (PageSetDeviceOrientationOverride) Call ¶
func (m PageSetDeviceOrientationOverride) Call(c Client) error
Call sends the request.
func (PageSetDeviceOrientationOverride) ProtoReq ¶ added in v0.74.0
func (m PageSetDeviceOrientationOverride) ProtoReq() string
ProtoReq name.
type PageSetDocumentContent ¶
type PageSetDocumentContent struct { // FrameID Frame id to set HTML for. FrameID PageFrameID `json:"frameId"` // HTML content to set. HTML string `json:"html"` }
PageSetDocumentContent Sets given markup as the document's HTML.
func (PageSetDocumentContent) Call ¶
func (m PageSetDocumentContent) Call(c Client) error
Call sends the request.
func (PageSetDocumentContent) ProtoReq ¶ added in v0.74.0
func (m PageSetDocumentContent) ProtoReq() string
ProtoReq name.
type PageSetDownloadBehavior ¶
type PageSetDownloadBehavior struct { // Behavior Whether to allow all or deny all download requests, or use default Chrome behavior if // available (otherwise deny). Behavior PageSetDownloadBehaviorBehavior `json:"behavior"` // DownloadPath (optional) The default path to save downloaded files to. This is required if behavior is set to 'allow' DownloadPath string `json:"downloadPath,omitempty"` }
PageSetDownloadBehavior (deprecated) (experimental) Set the behavior when downloading a file.
func (PageSetDownloadBehavior) Call ¶
func (m PageSetDownloadBehavior) Call(c Client) error
Call sends the request.
func (PageSetDownloadBehavior) ProtoReq ¶ added in v0.74.0
func (m PageSetDownloadBehavior) ProtoReq() string
ProtoReq name.
type PageSetDownloadBehaviorBehavior ¶
type PageSetDownloadBehaviorBehavior string
PageSetDownloadBehaviorBehavior enum.
const ( // PageSetDownloadBehaviorBehaviorDeny enum const. PageSetDownloadBehaviorBehaviorDeny PageSetDownloadBehaviorBehavior = "deny" // PageSetDownloadBehaviorBehaviorAllow enum const. PageSetDownloadBehaviorBehaviorAllow PageSetDownloadBehaviorBehavior = "allow" // PageSetDownloadBehaviorBehaviorDefault enum const. PageSetDownloadBehaviorBehaviorDefault PageSetDownloadBehaviorBehavior = "default" )
type PageSetFontFamilies ¶
type PageSetFontFamilies struct { // FontFamilies Specifies font families to set. If a font family is not specified, it won't be changed. FontFamilies *PageFontFamilies `json:"fontFamilies"` // ForScripts (optional) Specifies font families to set for individual scripts. ForScripts []*PageScriptFontFamilies `json:"forScripts,omitempty"` }
PageSetFontFamilies (experimental) Set generic font families.
func (PageSetFontFamilies) Call ¶
func (m PageSetFontFamilies) Call(c Client) error
Call sends the request.
func (PageSetFontFamilies) ProtoReq ¶ added in v0.74.0
func (m PageSetFontFamilies) ProtoReq() string
ProtoReq name.
type PageSetFontSizes ¶
type PageSetFontSizes struct { // FontSizes Specifies font sizes to set. If a font size is not specified, it won't be changed. FontSizes *PageFontSizes `json:"fontSizes"` }
PageSetFontSizes (experimental) Set default font sizes.
func (PageSetFontSizes) Call ¶
func (m PageSetFontSizes) Call(c Client) error
Call sends the request.
func (PageSetFontSizes) ProtoReq ¶ added in v0.74.0
func (m PageSetFontSizes) ProtoReq() string
ProtoReq name.
type PageSetGeolocationOverride ¶
type PageSetGeolocationOverride struct { // Latitude (optional) Mock latitude Latitude *float64 `json:"latitude,omitempty"` // Longitude (optional) Mock longitude Longitude *float64 `json:"longitude,omitempty"` // Accuracy (optional) Mock accuracy Accuracy *float64 `json:"accuracy,omitempty"` }
PageSetGeolocationOverride (deprecated) Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
func (PageSetGeolocationOverride) Call ¶
func (m PageSetGeolocationOverride) Call(c Client) error
Call sends the request.
func (PageSetGeolocationOverride) ProtoReq ¶ added in v0.74.0
func (m PageSetGeolocationOverride) ProtoReq() string
ProtoReq name.
type PageSetInterceptFileChooserDialog ¶
type PageSetInterceptFileChooserDialog struct { // Enabled ... Enabled bool `json:"enabled"` }
PageSetInterceptFileChooserDialog 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 (PageSetInterceptFileChooserDialog) Call ¶
func (m PageSetInterceptFileChooserDialog) Call(c Client) error
Call sends the request.
func (PageSetInterceptFileChooserDialog) ProtoReq ¶ added in v0.74.0
func (m PageSetInterceptFileChooserDialog) ProtoReq() string
ProtoReq name.
type PageSetLifecycleEventsEnabled ¶
type PageSetLifecycleEventsEnabled struct { // Enabled If true, starts emitting lifecycle events. Enabled bool `json:"enabled"` }
PageSetLifecycleEventsEnabled Controls whether page will emit lifecycle events.
func (PageSetLifecycleEventsEnabled) Call ¶
func (m PageSetLifecycleEventsEnabled) Call(c Client) error
Call sends the request.
func (PageSetLifecycleEventsEnabled) ProtoReq ¶ added in v0.74.0
func (m PageSetLifecycleEventsEnabled) ProtoReq() string
ProtoReq name.
type PageSetPrerenderingAllowed ¶ added in v0.115.0
type PageSetPrerenderingAllowed struct { // IsAllowed ... IsAllowed bool `json:"isAllowed"` }
PageSetPrerenderingAllowed (experimental) Enable/disable prerendering manually.
This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details.
TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
func (PageSetPrerenderingAllowed) Call ¶ added in v0.115.0
func (m PageSetPrerenderingAllowed) Call(c Client) error
Call sends the request.
func (PageSetPrerenderingAllowed) ProtoReq ¶ added in v0.115.0
func (m PageSetPrerenderingAllowed) ProtoReq() string
ProtoReq name.
type PageSetRPHRegistrationMode ¶ added in v0.112.7
type PageSetRPHRegistrationMode struct { // Mode ... Mode PageAutoResponseMode `json:"mode"` }
PageSetRPHRegistrationMode (experimental) Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
func (PageSetRPHRegistrationMode) Call ¶ added in v0.112.7
func (m PageSetRPHRegistrationMode) Call(c Client) error
Call sends the request.
func (PageSetRPHRegistrationMode) ProtoReq ¶ added in v0.112.7
func (m PageSetRPHRegistrationMode) ProtoReq() string
ProtoReq name.
type PageSetSPCTransactionMode ¶ added in v0.102.0
type PageSetSPCTransactionMode struct { // Mode ... Mode PageAutoResponseMode `json:"mode"` }
PageSetSPCTransactionMode (experimental) Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
func (PageSetSPCTransactionMode) Call ¶ added in v0.102.0
func (m PageSetSPCTransactionMode) Call(c Client) error
Call sends the request.
func (PageSetSPCTransactionMode) ProtoReq ¶ added in v0.102.0
func (m PageSetSPCTransactionMode) ProtoReq() string
ProtoReq name.
type PageSetTouchEmulationEnabled ¶
type PageSetTouchEmulationEnabled struct { // Enabled Whether the touch event emulation should be enabled. Enabled bool `json:"enabled"` // Configuration (optional) Touch/gesture events configuration. Default: current platform. Configuration PageSetTouchEmulationEnabledConfiguration `json:"configuration,omitempty"` }
PageSetTouchEmulationEnabled (deprecated) (experimental) Toggles mouse event-based touch event emulation.
func (PageSetTouchEmulationEnabled) Call ¶
func (m PageSetTouchEmulationEnabled) Call(c Client) error
Call sends the request.
func (PageSetTouchEmulationEnabled) ProtoReq ¶ added in v0.74.0
func (m PageSetTouchEmulationEnabled) ProtoReq() string
ProtoReq name.
type PageSetTouchEmulationEnabledConfiguration ¶
type PageSetTouchEmulationEnabledConfiguration string
PageSetTouchEmulationEnabledConfiguration enum.
const ( // PageSetTouchEmulationEnabledConfigurationMobile enum const. PageSetTouchEmulationEnabledConfigurationMobile PageSetTouchEmulationEnabledConfiguration = "mobile" // PageSetTouchEmulationEnabledConfigurationDesktop enum const. PageSetTouchEmulationEnabledConfigurationDesktop PageSetTouchEmulationEnabledConfiguration = "desktop" )
type PageSetWebLifecycleState ¶
type PageSetWebLifecycleState struct { // State Target lifecycle state State PageSetWebLifecycleStateState `json:"state"` }
PageSetWebLifecycleState (experimental) 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 (PageSetWebLifecycleState) Call ¶
func (m PageSetWebLifecycleState) Call(c Client) error
Call sends the request.
func (PageSetWebLifecycleState) ProtoReq ¶ added in v0.74.0
func (m PageSetWebLifecycleState) ProtoReq() string
ProtoReq name.
type PageSetWebLifecycleStateState ¶
type PageSetWebLifecycleStateState string
PageSetWebLifecycleStateState enum.
const ( // PageSetWebLifecycleStateStateFrozen enum const. PageSetWebLifecycleStateStateFrozen PageSetWebLifecycleStateState = "frozen" // PageSetWebLifecycleStateStateActive enum const. PageSetWebLifecycleStateStateActive PageSetWebLifecycleStateState = "active" )
type PageShareTarget ¶ added in v0.116.0
type PageShareTarget struct { string `json:"action"` Method string `json:"method"` Enctype string `json:"enctype"` Title string `json:"title,omitempty"` Text string `json:"text,omitempty"` URL string `json:"url,omitempty"` Files []*PageFileFilter `json:"files,omitempty"` }Action
PageShareTarget (experimental) ...
type PageShortcut ¶ added in v0.116.0
type PageShortcut struct { // Name ... Name string `json:"name"` // URL ... URL string `json:"url"` }
PageShortcut (experimental) ...
type PageStartScreencast ¶
type PageStartScreencast struct { // Format (optional) Image compression format. Format PageStartScreencastFormat `json:"format,omitempty"` // Quality (optional) Compression quality from range [0..100]. Quality *int `json:"quality,omitempty"` // MaxWidth (optional) Maximum screenshot width. MaxWidth *int `json:"maxWidth,omitempty"` // MaxHeight (optional) Maximum screenshot height. MaxHeight *int `json:"maxHeight,omitempty"` // EveryNthFrame (optional) Send every n-th frame. EveryNthFrame *int `json:"everyNthFrame,omitempty"` }
PageStartScreencast (experimental) Starts sending each frame using the `screencastFrame` event.
func (PageStartScreencast) Call ¶
func (m PageStartScreencast) Call(c Client) error
Call sends the request.
func (PageStartScreencast) ProtoReq ¶ added in v0.74.0
func (m PageStartScreencast) ProtoReq() string
ProtoReq name.
type PageStartScreencastFormat ¶
type PageStartScreencastFormat string
PageStartScreencastFormat enum.
const ( // PageStartScreencastFormatJpeg enum const. PageStartScreencastFormatJpeg PageStartScreencastFormat = "jpeg" // PageStartScreencastFormatPng enum const. PageStartScreencastFormatPng PageStartScreencastFormat = "png" )
type PageStopLoading ¶
type PageStopLoading struct{}
PageStopLoading Force the page stop all navigations and pending resource fetches.
func (PageStopLoading) ProtoReq ¶ added in v0.74.0
func (m PageStopLoading) ProtoReq() string
ProtoReq name.
type PageStopScreencast ¶
type PageStopScreencast struct{}
PageStopScreencast (experimental) Stops sending each frame in the `screencastFrame`.
func (PageStopScreencast) Call ¶
func (m PageStopScreencast) Call(c Client) error
Call sends the request.
func (PageStopScreencast) ProtoReq ¶ added in v0.74.0
func (m PageStopScreencast) ProtoReq() string
ProtoReq name.
type PageTransitionType ¶
type PageTransitionType string
PageTransitionType Transition type.
const ( // PageTransitionTypeLink enum const. PageTransitionTypeLink PageTransitionType = "link" // PageTransitionTypeTyped enum const. PageTransitionTypeTyped PageTransitionType = "typed" // PageTransitionTypeAddressBar enum const. PageTransitionTypeAddressBar PageTransitionType = "address_bar" // PageTransitionTypeAutoBookmark enum const. PageTransitionTypeAutoBookmark PageTransitionType = "auto_bookmark" // PageTransitionTypeAutoSubframe enum const. PageTransitionTypeAutoSubframe PageTransitionType = "auto_subframe" // PageTransitionTypeManualSubframe enum const. PageTransitionTypeManualSubframe PageTransitionType = "manual_subframe" // PageTransitionTypeGenerated enum const. PageTransitionTypeGenerated PageTransitionType = "generated" // PageTransitionTypeAutoToplevel enum const. PageTransitionTypeAutoToplevel PageTransitionType = "auto_toplevel" // PageTransitionTypeFormSubmit enum const. PageTransitionTypeFormSubmit PageTransitionType = "form_submit" // PageTransitionTypeReload enum const. PageTransitionTypeReload PageTransitionType = "reload" // PageTransitionTypeKeyword enum const. PageTransitionTypeKeyword PageTransitionType = "keyword" // PageTransitionTypeKeywordGenerated enum const. PageTransitionTypeKeywordGenerated PageTransitionType = "keyword_generated" // PageTransitionTypeOther enum const. PageTransitionTypeOther PageTransitionType = "other" )
type PageViewport ¶
type PageViewport struct { // X offset in device independent pixels (dip). X float64 `json:"x"` // Y offset in device independent pixels (dip). Y float64 `json:"y"` // Width Rectangle width in device independent pixels (dip). Width float64 `json:"width"` // Height Rectangle height in device independent pixels (dip). Height float64 `json:"height"` // Scale Page scale factor. Scale float64 `json:"scale"` }
PageViewport Viewport for capturing screenshot.
type PageVisualViewport ¶
type PageVisualViewport struct { // OffsetX Horizontal offset relative to the layout viewport (CSS pixels). OffsetX float64 `json:"offsetX"` // OffsetY Vertical offset relative to the layout viewport (CSS pixels). OffsetY float64 `json:"offsetY"` // PageX Horizontal offset relative to the document (CSS pixels). PageX float64 `json:"pageX"` // PageY Vertical offset relative to the document (CSS pixels). PageY float64 `json:"pageY"` // ClientWidth Width (CSS pixels), excludes scrollbar if present. ClientWidth float64 `json:"clientWidth"` // ClientHeight Height (CSS pixels), excludes scrollbar if present. ClientHeight float64 `json:"clientHeight"` // Scale relative to the ideal viewport (size at width=device-width). Scale float64 `json:"scale"` // Zoom (optional) Page zoom factor (CSS to device independent pixels ratio). Zoom *float64 `json:"zoom,omitempty"` }
PageVisualViewport Visual viewport position, dimensions, and scale.
type PageWaitForDebugger ¶
type PageWaitForDebugger struct{}
PageWaitForDebugger (experimental) Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.
func (PageWaitForDebugger) Call ¶
func (m PageWaitForDebugger) Call(c Client) error
Call sends the request.
func (PageWaitForDebugger) ProtoReq ¶ added in v0.74.0
func (m PageWaitForDebugger) ProtoReq() string
ProtoReq name.
type PageWebAppManifest ¶ added in v0.116.0
type PageWebAppManifest struct { // BackgroundColor (optional) ... BackgroundColor string `json:"backgroundColor,omitempty"` // Description (optional) The extra description provided by the manifest. Description string `json:"description,omitempty"` // Dir (optional) ... Dir string `json:"dir,omitempty"` // Display (optional) ... Display string `json:"display,omitempty"` // DisplayOverrides (optional) The overrided display mode controlled by the user. DisplayOverrides []string `json:"displayOverrides,omitempty"` // FileHandlers (optional) The handlers to open files. FileHandlers []*PageFileHandler `json:"fileHandlers,omitempty"` // Icons (optional) ... Icons []*PageImageResource `json:"icons,omitempty"` // ID (optional) ... ID string `json:"id,omitempty"` // Lang (optional) ... Lang string `json:"lang,omitempty"` // LaunchHandler (optional) TODO(crbug.com/1231886): This field is non-standard and part of a Chrome // experiment. See: // https://github.com/WICG/web-app-launch/blob/main/launch_handler.md LaunchHandler *PageLaunchHandler `json:"launchHandler,omitempty"` // Name (optional) ... Name string `json:"name,omitempty"` // Orientation (optional) ... Orientation string `json:"orientation,omitempty"` // PreferRelatedApplications (optional) ... PreferRelatedApplications bool `json:"preferRelatedApplications,omitempty"` // ProtocolHandlers (optional) The handlers to open protocols. ProtocolHandlers []*PageProtocolHandler `json:"protocolHandlers,omitempty"` // RelatedApplications (optional) ... RelatedApplications []*PageRelatedApplication `json:"relatedApplications,omitempty"` // Scope (optional) ... Scope string `json:"scope,omitempty"` // ScopeExtensions (optional) Non-standard, see // https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md ScopeExtensions []*PageScopeExtension `json:"scopeExtensions,omitempty"` // Screenshots (optional) The screenshots used by chromium. Screenshots []*PageScreenshot `json:"screenshots,omitempty"` ShareTarget *PageShareTarget `json:"shareTarget,omitempty"` // ShortName (optional) ... ShortName string `json:"shortName,omitempty"` // Shortcuts (optional) ... Shortcuts []*PageShortcut `json:"shortcuts,omitempty"` // StartURL (optional) ... StartURL string `json:"startUrl,omitempty"` // ThemeColor (optional) ... ThemeColor string `json:"themeColor,omitempty"` }
PageWebAppManifest (experimental) ...
type PageWindowOpen ¶
type PageWindowOpen struct { // URL The URL for the new window. URL string `json:"url"` // WindowName Window name. WindowName string `json:"windowName"` // WindowFeatures An array of enabled window features. WindowFeatures []string `json:"windowFeatures"` // UserGesture Whether or not it was triggered by user gesture. UserGesture bool `json:"userGesture"` }
PageWindowOpen Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
func (PageWindowOpen) ProtoEvent ¶ added in v0.72.0
func (evt PageWindowOpen) ProtoEvent() string
ProtoEvent name.
type PerformanceDisable ¶
type PerformanceDisable struct{}
PerformanceDisable Disable collecting and reporting metrics.
func (PerformanceDisable) Call ¶
func (m PerformanceDisable) Call(c Client) error
Call sends the request.
func (PerformanceDisable) ProtoReq ¶ added in v0.74.0
func (m PerformanceDisable) ProtoReq() string
ProtoReq name.
type PerformanceEnable ¶
type PerformanceEnable struct { // TimeDomain (optional) Time domain to use for collecting and reporting duration metrics. TimeDomain PerformanceEnableTimeDomain `json:"timeDomain,omitempty"` }
PerformanceEnable Enable collecting and reporting metrics.
func (PerformanceEnable) Call ¶
func (m PerformanceEnable) Call(c Client) error
Call sends the request.
func (PerformanceEnable) ProtoReq ¶ added in v0.74.0
func (m PerformanceEnable) ProtoReq() string
ProtoReq name.
type PerformanceEnableTimeDomain ¶
type PerformanceEnableTimeDomain string
PerformanceEnableTimeDomain enum.
const ( // PerformanceEnableTimeDomainTimeTicks enum const. PerformanceEnableTimeDomainTimeTicks PerformanceEnableTimeDomain = "timeTicks" // PerformanceEnableTimeDomainThreadTicks enum const. PerformanceEnableTimeDomainThreadTicks PerformanceEnableTimeDomain = "threadTicks" )
type PerformanceGetMetrics ¶
type PerformanceGetMetrics struct{}
PerformanceGetMetrics Retrieve current values of run-time metrics.
func (PerformanceGetMetrics) Call ¶
func (m PerformanceGetMetrics) Call(c Client) (*PerformanceGetMetricsResult, error)
Call the request.
func (PerformanceGetMetrics) ProtoReq ¶ added in v0.74.0
func (m PerformanceGetMetrics) ProtoReq() string
ProtoReq name.
type PerformanceGetMetricsResult ¶
type PerformanceGetMetricsResult struct { // Metrics Current values for run-time metrics. Metrics []*PerformanceMetric `json:"metrics"` }
PerformanceGetMetricsResult ...
type PerformanceMetric ¶
type PerformanceMetric struct { // Name Metric name. Name string `json:"name"` // Value Metric value. Value float64 `json:"value"` }
PerformanceMetric Run-time execution metric.
type PerformanceMetrics ¶
type PerformanceMetrics struct { // Metrics Current values of the metrics. Metrics []*PerformanceMetric `json:"metrics"` // Title Timestamp title. Title string `json:"title"` }
PerformanceMetrics Current values of the metrics.
func (PerformanceMetrics) ProtoEvent ¶ added in v0.72.0
func (evt PerformanceMetrics) ProtoEvent() string
ProtoEvent name.
type PerformanceSetTimeDomain ¶
type PerformanceSetTimeDomain struct { // TimeDomain Time domain TimeDomain PerformanceSetTimeDomainTimeDomain `json:"timeDomain"` }
PerformanceSetTimeDomain (deprecated) (experimental) 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 (PerformanceSetTimeDomain) Call ¶
func (m PerformanceSetTimeDomain) Call(c Client) error
Call sends the request.
func (PerformanceSetTimeDomain) ProtoReq ¶ added in v0.74.0
func (m PerformanceSetTimeDomain) ProtoReq() string
ProtoReq name.
type PerformanceSetTimeDomainTimeDomain ¶
type PerformanceSetTimeDomainTimeDomain string
PerformanceSetTimeDomainTimeDomain enum.
const ( // PerformanceSetTimeDomainTimeDomainTimeTicks enum const. PerformanceSetTimeDomainTimeDomainTimeTicks PerformanceSetTimeDomainTimeDomain = "timeTicks" // PerformanceSetTimeDomainTimeDomainThreadTicks enum const. PerformanceSetTimeDomainTimeDomainThreadTicks PerformanceSetTimeDomainTimeDomain = "threadTicks" )
type PerformanceTimelineEnable ¶ added in v0.90.0
type PerformanceTimelineEnable struct { // EventTypes The types of event to report, as specified in // https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype // The specified filter overrides any previous filters, passing empty // filter disables recording. // Note that not all types exposed to the web platform are currently supported. EventTypes []string `json:"eventTypes"` }
PerformanceTimelineEnable Previously buffered events would be reported before method returns. See also: timelineEventAdded.
func (PerformanceTimelineEnable) Call ¶ added in v0.90.0
func (m PerformanceTimelineEnable) Call(c Client) error
Call sends the request.
func (PerformanceTimelineEnable) ProtoReq ¶ added in v0.90.0
func (m PerformanceTimelineEnable) ProtoReq() string
ProtoReq name.
type PerformanceTimelineLargestContentfulPaint ¶ added in v0.90.0
type PerformanceTimelineLargestContentfulPaint struct { // RenderTime ... RenderTime TimeSinceEpoch `json:"renderTime"` // LoadTime ... LoadTime TimeSinceEpoch `json:"loadTime"` // Size The number of pixels being painted. Size float64 `json:"size"` // ElementID (optional) The id attribute of the element, if available. ElementID string `json:"elementId,omitempty"` // URL (optional) The URL of the image (may be trimmed). URL string `json:"url,omitempty"` // NodeID (optional) ... NodeID DOMBackendNodeID `json:"nodeId,omitempty"` }
PerformanceTimelineLargestContentfulPaint See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl.
type PerformanceTimelineLayoutShift ¶ added in v0.90.0
type PerformanceTimelineLayoutShift struct { // Value Score increment produced by this event. Value float64 `json:"value"` // HadRecentInput ... HadRecentInput bool `json:"hadRecentInput"` // LastInputTime ... LastInputTime TimeSinceEpoch `json:"lastInputTime"` // Sources ... Sources []*PerformanceTimelineLayoutShiftAttribution `json:"sources"` }
PerformanceTimelineLayoutShift See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl.
type PerformanceTimelineLayoutShiftAttribution ¶ added in v0.90.0
type PerformanceTimelineLayoutShiftAttribution struct { // PreviousRect ... PreviousRect *DOMRect `json:"previousRect"` // CurrentRect ... CurrentRect *DOMRect `json:"currentRect"` // NodeID (optional) ... NodeID DOMBackendNodeID `json:"nodeId,omitempty"` }
PerformanceTimelineLayoutShiftAttribution ...
type PerformanceTimelineTimelineEvent ¶ added in v0.90.0
type PerformanceTimelineTimelineEvent struct { // FrameID Identifies the frame that this event is related to. Empty for non-frame targets. FrameID PageFrameID `json:"frameId"` // Type The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype // This determines which of the optional "details" fields is present. Type string `json:"type"` // Name may be empty depending on the type. Name string `json:"name"` // Time in seconds since Epoch, monotonically increasing within document lifetime. Time TimeSinceEpoch `json:"time"` // Duration (optional) Event duration, if applicable. Duration *float64 `json:"duration,omitempty"` // LcpDetails (optional) ... LcpDetails *PerformanceTimelineLargestContentfulPaint `json:"lcpDetails,omitempty"` // LayoutShiftDetails (optional) ... LayoutShiftDetails *PerformanceTimelineLayoutShift `json:"layoutShiftDetails,omitempty"` }
PerformanceTimelineTimelineEvent ...
type PerformanceTimelineTimelineEventAdded ¶ added in v0.90.0
type PerformanceTimelineTimelineEventAdded struct { // Event ... Event *PerformanceTimelineTimelineEvent `json:"event"` }
PerformanceTimelineTimelineEventAdded Sent when a performance timeline event is added. See reportPerformanceTimeline method.
func (PerformanceTimelineTimelineEventAdded) ProtoEvent ¶ added in v0.90.0
func (evt PerformanceTimelineTimelineEventAdded) ProtoEvent() string
ProtoEvent name.
type Point ¶ added in v0.66.0
Point from the origin (0, 0).
type PreloadDisable ¶ added in v0.112.9
type PreloadDisable struct{}
PreloadDisable ...
func (PreloadDisable) Call ¶ added in v0.112.9
func (m PreloadDisable) Call(c Client) error
Call sends the request.
func (PreloadDisable) ProtoReq ¶ added in v0.112.9
func (m PreloadDisable) ProtoReq() string
ProtoReq name.
type PreloadEnable ¶ added in v0.112.9
type PreloadEnable struct{}
PreloadEnable ...
func (PreloadEnable) Call ¶ added in v0.112.9
func (m PreloadEnable) Call(c Client) error
Call sends the request.
func (PreloadEnable) ProtoReq ¶ added in v0.112.9
func (m PreloadEnable) ProtoReq() string
ProtoReq name.
type PreloadPrefetchStatus ¶ added in v0.115.0
type PreloadPrefetchStatus string
PreloadPrefetchStatus TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and filter out the ones that aren't necessary to the developers.
const ( // PreloadPrefetchStatusPrefetchAllowed enum const. PreloadPrefetchStatusPrefetchAllowed PreloadPrefetchStatus = "PrefetchAllowed" // PreloadPrefetchStatusPrefetchFailedIneligibleRedirect enum const. PreloadPrefetchStatusPrefetchFailedIneligibleRedirect PreloadPrefetchStatus = "PrefetchFailedIneligibleRedirect" // PreloadPrefetchStatusPrefetchFailedInvalidRedirect enum const. PreloadPrefetchStatusPrefetchFailedInvalidRedirect PreloadPrefetchStatus = "PrefetchFailedInvalidRedirect" // PreloadPrefetchStatusPrefetchFailedMIMENotSupported enum const. PreloadPrefetchStatusPrefetchFailedMIMENotSupported PreloadPrefetchStatus = "PrefetchFailedMIMENotSupported" // PreloadPrefetchStatusPrefetchFailedNetError enum const. PreloadPrefetchStatusPrefetchFailedNetError PreloadPrefetchStatus = "PrefetchFailedNetError" // PreloadPrefetchStatusPrefetchFailedNon2XX enum const. PreloadPrefetchStatusPrefetchFailedNon2XX PreloadPrefetchStatus = "PrefetchFailedNon2XX" // PreloadPrefetchStatusPrefetchFailedPerPageLimitExceeded enum const. PreloadPrefetchStatusPrefetchFailedPerPageLimitExceeded PreloadPrefetchStatus = "PrefetchFailedPerPageLimitExceeded" // PreloadPrefetchStatusPrefetchEvictedAfterCandidateRemoved enum const. PreloadPrefetchStatusPrefetchEvictedAfterCandidateRemoved PreloadPrefetchStatus = "PrefetchEvictedAfterCandidateRemoved" // PreloadPrefetchStatusPrefetchEvictedForNewerPrefetch enum const. PreloadPrefetchStatusPrefetchEvictedForNewerPrefetch PreloadPrefetchStatus = "PrefetchEvictedForNewerPrefetch" // PreloadPrefetchStatusPrefetchHeldback enum const. PreloadPrefetchStatusPrefetchHeldback PreloadPrefetchStatus = "PrefetchHeldback" // PreloadPrefetchStatusPrefetchIneligibleRetryAfter enum const. PreloadPrefetchStatusPrefetchIneligibleRetryAfter PreloadPrefetchStatus = "PrefetchIneligibleRetryAfter" // PreloadPrefetchStatusPrefetchIsPrivacyDecoy enum const. PreloadPrefetchStatusPrefetchIsPrivacyDecoy PreloadPrefetchStatus = "PrefetchIsPrivacyDecoy" // PreloadPrefetchStatusPrefetchIsStale enum const. PreloadPrefetchStatusPrefetchIsStale PreloadPrefetchStatus = "PrefetchIsStale" // PreloadPrefetchStatusPrefetchNotEligibleBrowserContextOffTheRecord enum const. PreloadPrefetchStatusPrefetchNotEligibleBrowserContextOffTheRecord PreloadPrefetchStatus = "PrefetchNotEligibleBrowserContextOffTheRecord" // PreloadPrefetchStatusPrefetchNotEligibleDataSaverEnabled enum const. PreloadPrefetchStatusPrefetchNotEligibleDataSaverEnabled PreloadPrefetchStatus = "PrefetchNotEligibleDataSaverEnabled" // PreloadPrefetchStatusPrefetchNotEligibleExistingProxy enum const. PreloadPrefetchStatusPrefetchNotEligibleExistingProxy PreloadPrefetchStatus = "PrefetchNotEligibleExistingProxy" // PreloadPrefetchStatusPrefetchNotEligibleHostIsNonUnique enum const. PreloadPrefetchStatusPrefetchNotEligibleHostIsNonUnique PreloadPrefetchStatus = "PrefetchNotEligibleHostIsNonUnique" // PreloadPrefetchStatusPrefetchNotEligibleNonDefaultStoragePartition enum const. PreloadPrefetchStatusPrefetchNotEligibleNonDefaultStoragePartition PreloadPrefetchStatus = "PrefetchNotEligibleNonDefaultStoragePartition" // PreloadPrefetchStatusPrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy enum const. PreloadPrefetchStatusPrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy PreloadPrefetchStatus = "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy" // PreloadPrefetchStatusPrefetchNotEligibleSchemeIsNotHTTPS enum const. PreloadPrefetchStatusPrefetchNotEligibleSchemeIsNotHTTPS PreloadPrefetchStatus = "PrefetchNotEligibleSchemeIsNotHttps" // PreloadPrefetchStatusPrefetchNotEligibleUserHasCookies enum const. PreloadPrefetchStatusPrefetchNotEligibleUserHasCookies PreloadPrefetchStatus = "PrefetchNotEligibleUserHasCookies" // PreloadPrefetchStatusPrefetchNotEligibleUserHasServiceWorker enum const. PreloadPrefetchStatusPrefetchNotEligibleUserHasServiceWorker PreloadPrefetchStatus = "PrefetchNotEligibleUserHasServiceWorker" // PreloadPrefetchStatusPrefetchNotEligibleBatterySaverEnabled enum const. PreloadPrefetchStatusPrefetchNotEligibleBatterySaverEnabled PreloadPrefetchStatus = "PrefetchNotEligibleBatterySaverEnabled" // PreloadPrefetchStatusPrefetchNotEligiblePreloadingDisabled enum const. PreloadPrefetchStatusPrefetchNotEligiblePreloadingDisabled PreloadPrefetchStatus = "PrefetchNotEligiblePreloadingDisabled" // PreloadPrefetchStatusPrefetchNotFinishedInTime enum const. PreloadPrefetchStatusPrefetchNotFinishedInTime PreloadPrefetchStatus = "PrefetchNotFinishedInTime" // PreloadPrefetchStatusPrefetchNotStarted enum const. PreloadPrefetchStatusPrefetchNotStarted PreloadPrefetchStatus = "PrefetchNotStarted" // PreloadPrefetchStatusPrefetchNotUsedCookiesChanged enum const. PreloadPrefetchStatusPrefetchNotUsedCookiesChanged PreloadPrefetchStatus = "PrefetchNotUsedCookiesChanged" // PreloadPrefetchStatusPrefetchProxyNotAvailable enum const. PreloadPrefetchStatusPrefetchProxyNotAvailable PreloadPrefetchStatus = "PrefetchProxyNotAvailable" // PreloadPrefetchStatusPrefetchResponseUsed enum const. PreloadPrefetchStatusPrefetchResponseUsed PreloadPrefetchStatus = "PrefetchResponseUsed" // PreloadPrefetchStatusPrefetchSuccessfulButNotUsed enum const. PreloadPrefetchStatusPrefetchSuccessfulButNotUsed PreloadPrefetchStatus = "PrefetchSuccessfulButNotUsed" // PreloadPrefetchStatusPrefetchNotUsedProbeFailed enum const. PreloadPrefetchStatusPrefetchNotUsedProbeFailed PreloadPrefetchStatus = "PrefetchNotUsedProbeFailed" )
type PreloadPrefetchStatusUpdated ¶ added in v0.112.9
type PreloadPrefetchStatusUpdated struct { // Key ... Key *PreloadPreloadingAttemptKey `json:"key"` // InitiatingFrameID The frame id of the frame initiating prefetch. InitiatingFrameID PageFrameID `json:"initiatingFrameId"` // PrefetchURL ... PrefetchURL string `json:"prefetchUrl"` // Status ... Status PreloadPreloadingStatus `json:"status"` // PrefetchStatus ... PrefetchStatus PreloadPrefetchStatus `json:"prefetchStatus"` // RequestID ... RequestID NetworkRequestID `json:"requestId"` }
PreloadPrefetchStatusUpdated Fired when a prefetch attempt is updated.
func (PreloadPrefetchStatusUpdated) ProtoEvent ¶ added in v0.112.9
func (evt PreloadPrefetchStatusUpdated) ProtoEvent() string
ProtoEvent name.
type PreloadPreloadEnabledStateUpdated ¶ added in v0.115.0
type PreloadPreloadEnabledStateUpdated struct { // DisabledByPreference ... DisabledByPreference bool `json:"disabledByPreference"` // DisabledByDataSaver ... DisabledByDataSaver bool `json:"disabledByDataSaver"` // DisabledByBatterySaver ... DisabledByBatterySaver bool `json:"disabledByBatterySaver"` // DisabledByHoldbackPrefetchSpeculationRules ... DisabledByHoldbackPrefetchSpeculationRules bool `json:"disabledByHoldbackPrefetchSpeculationRules"` // DisabledByHoldbackPrerenderSpeculationRules ... DisabledByHoldbackPrerenderSpeculationRules bool `json:"disabledByHoldbackPrerenderSpeculationRules"` }
PreloadPreloadEnabledStateUpdated Fired when a preload enabled state is updated.
func (PreloadPreloadEnabledStateUpdated) ProtoEvent ¶ added in v0.115.0
func (evt PreloadPreloadEnabledStateUpdated) ProtoEvent() string
ProtoEvent name.
type PreloadPreloadingAttemptKey ¶ added in v0.112.9
type PreloadPreloadingAttemptKey struct { // LoaderID ... LoaderID NetworkLoaderID `json:"loaderId"` // Action ... Action PreloadSpeculationAction `json:"action"` // URL ... URL string `json:"url"` // TargetHint (optional) ... TargetHint PreloadSpeculationTargetHint `json:"targetHint,omitempty"` }
PreloadPreloadingAttemptKey A key that identifies a preloading attempt.
The url used is the url specified by the trigger (i.e. the initial URL), and not the final url that is navigated to. For example, prerendering allows same-origin main frame navigations during the attempt, but the attempt is still keyed with the initial URL.
type PreloadPreloadingAttemptSource ¶ added in v0.112.9
type PreloadPreloadingAttemptSource struct { // Key ... Key *PreloadPreloadingAttemptKey `json:"key"` // RuleSetIDs ... RuleSetIDs []PreloadRuleSetID `json:"ruleSetIds"` // NodeIDs ... NodeIDs []DOMBackendNodeID `json:"nodeIds"` }
PreloadPreloadingAttemptSource Lists sources for a preloading attempt, specifically the ids of rule sets that had a speculation rule that triggered the attempt, and the BackendNodeIds of <a href> or <area href> elements that triggered the attempt (in the case of attempts triggered by a document rule). It is possible for multiple rule sets and links to trigger a single attempt.
type PreloadPreloadingAttemptSourcesUpdated ¶ added in v0.112.9
type PreloadPreloadingAttemptSourcesUpdated struct { // LoaderID ... LoaderID NetworkLoaderID `json:"loaderId"` // PreloadingAttemptSources ... PreloadingAttemptSources []*PreloadPreloadingAttemptSource `json:"preloadingAttemptSources"` }
PreloadPreloadingAttemptSourcesUpdated Send a list of sources for all preloading attempts in a document.
func (PreloadPreloadingAttemptSourcesUpdated) ProtoEvent ¶ added in v0.112.9
func (evt PreloadPreloadingAttemptSourcesUpdated) ProtoEvent() string
ProtoEvent name.
type PreloadPreloadingStatus ¶ added in v0.112.9
type PreloadPreloadingStatus string
PreloadPreloadingStatus Preloading status values, see also PreloadingTriggeringOutcome. This status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
const ( // PreloadPreloadingStatusPending enum const. PreloadPreloadingStatusPending PreloadPreloadingStatus = "Pending" // PreloadPreloadingStatusRunning enum const. PreloadPreloadingStatusRunning PreloadPreloadingStatus = "Running" // PreloadPreloadingStatusReady enum const. PreloadPreloadingStatusReady PreloadPreloadingStatus = "Ready" // PreloadPreloadingStatusSuccess enum const. PreloadPreloadingStatusSuccess PreloadPreloadingStatus = "Success" // PreloadPreloadingStatusFailure enum const. PreloadPreloadingStatusFailure PreloadPreloadingStatus = "Failure" // PreloadPreloadingStatusNotSupported enum const. PreloadPreloadingStatusNotSupported PreloadPreloadingStatus = "NotSupported" )
type PreloadPrerenderFinalStatus ¶ added in v0.112.9
type PreloadPrerenderFinalStatus string
PreloadPrerenderFinalStatus List of FinalStatus reasons for Prerender2.
const ( // PreloadPrerenderFinalStatusActivated enum const. PreloadPrerenderFinalStatusActivated PreloadPrerenderFinalStatus = "Activated" // PreloadPrerenderFinalStatusDestroyed enum const. PreloadPrerenderFinalStatusDestroyed PreloadPrerenderFinalStatus = "Destroyed" // PreloadPrerenderFinalStatusLowEndDevice enum const. PreloadPrerenderFinalStatusLowEndDevice PreloadPrerenderFinalStatus = "LowEndDevice" // PreloadPrerenderFinalStatusInvalidSchemeRedirect enum const. PreloadPrerenderFinalStatusInvalidSchemeRedirect PreloadPrerenderFinalStatus = "InvalidSchemeRedirect" PreloadPrerenderFinalStatusInvalidSchemeNavigation PreloadPrerenderFinalStatus = "InvalidSchemeNavigation" PreloadPrerenderFinalStatusNavigationRequestBlockedByCsp PreloadPrerenderFinalStatus = "NavigationRequestBlockedByCsp" PreloadPrerenderFinalStatusMainFrameNavigation PreloadPrerenderFinalStatus = "MainFrameNavigation" // PreloadPrerenderFinalStatusMojoBinderPolicy enum const. PreloadPrerenderFinalStatusMojoBinderPolicy PreloadPrerenderFinalStatus = "MojoBinderPolicy" // PreloadPrerenderFinalStatusRendererProcessCrashed enum const. PreloadPrerenderFinalStatusRendererProcessCrashed PreloadPrerenderFinalStatus = "RendererProcessCrashed" // PreloadPrerenderFinalStatusRendererProcessKilled enum const. PreloadPrerenderFinalStatusRendererProcessKilled PreloadPrerenderFinalStatus = "RendererProcessKilled" // PreloadPrerenderFinalStatusDownload enum const. PreloadPrerenderFinalStatusDownload PreloadPrerenderFinalStatus = "Download" // PreloadPrerenderFinalStatusTriggerDestroyed enum const. PreloadPrerenderFinalStatusTriggerDestroyed PreloadPrerenderFinalStatus = "TriggerDestroyed" PreloadPrerenderFinalStatusNavigationNotCommitted PreloadPrerenderFinalStatus = "NavigationNotCommitted" PreloadPrerenderFinalStatusNavigationBadHTTPStatus PreloadPrerenderFinalStatus = "NavigationBadHttpStatus" // PreloadPrerenderFinalStatusClientCertRequested enum const. PreloadPrerenderFinalStatusClientCertRequested PreloadPrerenderFinalStatus = "ClientCertRequested" PreloadPrerenderFinalStatusNavigationRequestNetworkError PreloadPrerenderFinalStatus = "NavigationRequestNetworkError" // PreloadPrerenderFinalStatusCancelAllHostsForTesting enum const. PreloadPrerenderFinalStatusCancelAllHostsForTesting PreloadPrerenderFinalStatus = "CancelAllHostsForTesting" // PreloadPrerenderFinalStatusDidFailLoad enum const. PreloadPrerenderFinalStatusDidFailLoad PreloadPrerenderFinalStatus = "DidFailLoad" // PreloadPrerenderFinalStatusStop enum const. PreloadPrerenderFinalStatusStop PreloadPrerenderFinalStatus = "Stop" // PreloadPrerenderFinalStatusSslCertificateError enum const. PreloadPrerenderFinalStatusSslCertificateError PreloadPrerenderFinalStatus = "SslCertificateError" // PreloadPrerenderFinalStatusLoginAuthRequested enum const. PreloadPrerenderFinalStatusLoginAuthRequested PreloadPrerenderFinalStatus = "LoginAuthRequested" // PreloadPrerenderFinalStatusUaChangeRequiresReload enum const. PreloadPrerenderFinalStatusUaChangeRequiresReload PreloadPrerenderFinalStatus = "UaChangeRequiresReload" // PreloadPrerenderFinalStatusBlockedByClient enum const. PreloadPrerenderFinalStatusBlockedByClient PreloadPrerenderFinalStatus = "BlockedByClient" // PreloadPrerenderFinalStatusAudioOutputDeviceRequested enum const. PreloadPrerenderFinalStatusAudioOutputDeviceRequested PreloadPrerenderFinalStatus = "AudioOutputDeviceRequested" // PreloadPrerenderFinalStatusMixedContent enum const. PreloadPrerenderFinalStatusMixedContent PreloadPrerenderFinalStatus = "MixedContent" // PreloadPrerenderFinalStatusTriggerBackgrounded enum const. PreloadPrerenderFinalStatusTriggerBackgrounded PreloadPrerenderFinalStatus = "TriggerBackgrounded" // PreloadPrerenderFinalStatusMemoryLimitExceeded enum const. PreloadPrerenderFinalStatusMemoryLimitExceeded PreloadPrerenderFinalStatus = "MemoryLimitExceeded" // PreloadPrerenderFinalStatusDataSaverEnabled enum const. PreloadPrerenderFinalStatusDataSaverEnabled PreloadPrerenderFinalStatus = "DataSaverEnabled" // PreloadPrerenderFinalStatusTriggerURLHasEffectiveURL enum const. PreloadPrerenderFinalStatusTriggerURLHasEffectiveURL PreloadPrerenderFinalStatus = "TriggerUrlHasEffectiveUrl" // PreloadPrerenderFinalStatusActivatedBeforeStarted enum const. PreloadPrerenderFinalStatusActivatedBeforeStarted PreloadPrerenderFinalStatus = "ActivatedBeforeStarted" // PreloadPrerenderFinalStatusInactivePageRestriction enum const. PreloadPrerenderFinalStatusInactivePageRestriction PreloadPrerenderFinalStatus = "InactivePageRestriction" // PreloadPrerenderFinalStatusStartFailed enum const. PreloadPrerenderFinalStatusStartFailed PreloadPrerenderFinalStatus = "StartFailed" // PreloadPrerenderFinalStatusTimeoutBackgrounded enum const. PreloadPrerenderFinalStatusTimeoutBackgrounded PreloadPrerenderFinalStatus = "TimeoutBackgrounded" PreloadPrerenderFinalStatusCrossSiteRedirectInInitialNavigation PreloadPrerenderFinalStatus = "CrossSiteRedirectInInitialNavigation" PreloadPrerenderFinalStatusCrossSiteNavigationInInitialNavigation PreloadPrerenderFinalStatus = "CrossSiteNavigationInInitialNavigation" PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInInitialNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginRedirectNotOptInInInitialNavigation" PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInInitialNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginNavigationNotOptInInInitialNavigation" PreloadPrerenderFinalStatusActivationNavigationParameterMismatch PreloadPrerenderFinalStatus = "ActivationNavigationParameterMismatch" // PreloadPrerenderFinalStatusActivatedInBackground enum const. PreloadPrerenderFinalStatusActivatedInBackground PreloadPrerenderFinalStatus = "ActivatedInBackground" // PreloadPrerenderFinalStatusEmbedderHostDisallowed enum const. PreloadPrerenderFinalStatusEmbedderHostDisallowed PreloadPrerenderFinalStatus = "EmbedderHostDisallowed" PreloadPrerenderFinalStatusActivationNavigationDestroyedBeforeSuccess PreloadPrerenderFinalStatus = "ActivationNavigationDestroyedBeforeSuccess" // PreloadPrerenderFinalStatusTabClosedByUserGesture enum const. PreloadPrerenderFinalStatusTabClosedByUserGesture PreloadPrerenderFinalStatus = "TabClosedByUserGesture" // PreloadPrerenderFinalStatusTabClosedWithoutUserGesture enum const. PreloadPrerenderFinalStatusTabClosedWithoutUserGesture PreloadPrerenderFinalStatus = "TabClosedWithoutUserGesture" // PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessCrashed enum const. PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessCrashed PreloadPrerenderFinalStatus = "PrimaryMainFrameRendererProcessCrashed" // PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessKilled enum const. PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessKilled PreloadPrerenderFinalStatus = "PrimaryMainFrameRendererProcessKilled" // PreloadPrerenderFinalStatusActivationFramePolicyNotCompatible enum const. PreloadPrerenderFinalStatusActivationFramePolicyNotCompatible PreloadPrerenderFinalStatus = "ActivationFramePolicyNotCompatible" // PreloadPrerenderFinalStatusPreloadingDisabled enum const. PreloadPrerenderFinalStatusPreloadingDisabled PreloadPrerenderFinalStatus = "PreloadingDisabled" // PreloadPrerenderFinalStatusBatterySaverEnabled enum const. PreloadPrerenderFinalStatusBatterySaverEnabled PreloadPrerenderFinalStatus = "BatterySaverEnabled" PreloadPrerenderFinalStatusActivatedDuringMainFrameNavigation PreloadPrerenderFinalStatus = "ActivatedDuringMainFrameNavigation" // PreloadPrerenderFinalStatusPreloadingUnsupportedByWebContents enum const. PreloadPrerenderFinalStatusPreloadingUnsupportedByWebContents PreloadPrerenderFinalStatus = "PreloadingUnsupportedByWebContents" PreloadPrerenderFinalStatusCrossSiteRedirectInMainFrameNavigation PreloadPrerenderFinalStatus = "CrossSiteRedirectInMainFrameNavigation" PreloadPrerenderFinalStatusCrossSiteNavigationInMainFrameNavigation PreloadPrerenderFinalStatus = "CrossSiteNavigationInMainFrameNavigation" PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInMainFrameNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation" PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInMainFrameNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation" // PreloadPrerenderFinalStatusMemoryPressureOnTrigger enum const. PreloadPrerenderFinalStatusMemoryPressureOnTrigger PreloadPrerenderFinalStatus = "MemoryPressureOnTrigger" // PreloadPrerenderFinalStatusMemoryPressureAfterTriggered enum const. PreloadPrerenderFinalStatusMemoryPressureAfterTriggered PreloadPrerenderFinalStatus = "MemoryPressureAfterTriggered" // PreloadPrerenderFinalStatusPrerenderingDisabledByDevTools enum const. PreloadPrerenderFinalStatusPrerenderingDisabledByDevTools PreloadPrerenderFinalStatus = "PrerenderingDisabledByDevTools" // PreloadPrerenderFinalStatusSpeculationRuleRemoved enum const. PreloadPrerenderFinalStatusSpeculationRuleRemoved PreloadPrerenderFinalStatus = "SpeculationRuleRemoved" // PreloadPrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts enum const. PreloadPrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts PreloadPrerenderFinalStatus = "ActivatedWithAuxiliaryBrowsingContexts" // PreloadPrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded enum const. PreloadPrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningEagerPrerendersExceeded" // PreloadPrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded enum const. PreloadPrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningNonEagerPrerendersExceeded" // PreloadPrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded enum const. PreloadPrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningEmbedderPrerendersExceeded" // PreloadPrerenderFinalStatusPrerenderingURLHasEffectiveURL enum const. PreloadPrerenderFinalStatusPrerenderingURLHasEffectiveURL PreloadPrerenderFinalStatus = "PrerenderingUrlHasEffectiveUrl" // PreloadPrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL enum const. PreloadPrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL PreloadPrerenderFinalStatus = "RedirectedPrerenderingUrlHasEffectiveUrl" // PreloadPrerenderFinalStatusActivationURLHasEffectiveURL enum const. PreloadPrerenderFinalStatusActivationURLHasEffectiveURL PreloadPrerenderFinalStatus = "ActivationUrlHasEffectiveUrl" // PreloadPrerenderFinalStatusJavaScriptInterfaceAdded enum const. PreloadPrerenderFinalStatusJavaScriptInterfaceAdded PreloadPrerenderFinalStatus = "JavaScriptInterfaceAdded" // PreloadPrerenderFinalStatusJavaScriptInterfaceRemoved enum const. PreloadPrerenderFinalStatusJavaScriptInterfaceRemoved PreloadPrerenderFinalStatus = "JavaScriptInterfaceRemoved" // PreloadPrerenderFinalStatusAllPrerenderingCanceled enum const. PreloadPrerenderFinalStatusAllPrerenderingCanceled PreloadPrerenderFinalStatus = "AllPrerenderingCanceled" )
type PreloadPrerenderMismatchedHeaders ¶ added in v0.115.0
type PreloadPrerenderMismatchedHeaders struct { // HeaderName ... HeaderName string `json:"headerName"` // InitialValue (optional) ... InitialValue string `json:"initialValue,omitempty"` // ActivationValue (optional) ... ActivationValue string `json:"activationValue,omitempty"` }
PreloadPrerenderMismatchedHeaders Information of headers to be displayed when the header mismatch occurred.
type PreloadPrerenderStatusUpdated ¶ added in v0.112.9
type PreloadPrerenderStatusUpdated struct { // Key ... Key *PreloadPreloadingAttemptKey `json:"key"` // Status ... Status PreloadPreloadingStatus `json:"status"` // PrerenderStatus (optional) ... PrerenderStatus PreloadPrerenderFinalStatus `json:"prerenderStatus,omitempty"` // DisallowedMojoInterface (optional) This is used to give users more information about the name of Mojo interface // that is incompatible with prerender and has caused the cancellation of the attempt. DisallowedMojoInterface string `json:"disallowedMojoInterface,omitempty"` // MismatchedHeaders (optional) ... MismatchedHeaders []*PreloadPrerenderMismatchedHeaders `json:"mismatchedHeaders,omitempty"` }
PreloadPrerenderStatusUpdated Fired when a prerender attempt is updated.
func (PreloadPrerenderStatusUpdated) ProtoEvent ¶ added in v0.112.9
func (evt PreloadPrerenderStatusUpdated) ProtoEvent() string
ProtoEvent name.
type PreloadRuleSet ¶ added in v0.112.9
type PreloadRuleSet struct { // ID ... ID PreloadRuleSetID `json:"id"` // LoaderID Identifies a document which the rule set is associated with. LoaderID NetworkLoaderID `json:"loaderId"` // SourceText Source text of JSON representing the rule set. If it comes from // `<script>` tag, it is the textContent of the node. Note that it is // a JSON for valid case. // // See also: // - https://wicg.github.io/nav-speculation/speculation-rules.html // - https://github.com/WICG/nav-speculation/blob/main/triggers.md SourceText string `json:"sourceText"` // BackendNodeID (optional) A speculation rule set is either added through an inline // `<script>` tag or through an external resource via the // 'Speculation-Rules' HTTP header. For the first case, we include // the BackendNodeId of the relevant `<script>` tag. For the second // case, we include the external URL where the rule set was loaded // from, and also RequestId if Network domain is enabled. // // See also: // - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script // - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"` // URL (optional) ... URL string `json:"url,omitempty"` // RequestID (optional) ... RequestID NetworkRequestID `json:"requestId,omitempty"` // ErrorType (optional) Error information // `errorMessage` is null iff `errorType` is null. ErrorType PreloadRuleSetErrorType `json:"errorType,omitempty"` // ErrorMessage (deprecated) (optional) TODO(https://crbug.com/1425354): Replace this property with structured error. ErrorMessage string `json:"errorMessage,omitempty"` }
PreloadRuleSet Corresponds to SpeculationRuleSet.
type PreloadRuleSetErrorType ¶ added in v0.112.9
type PreloadRuleSetErrorType string
PreloadRuleSetErrorType ...
const ( // PreloadRuleSetErrorTypeSourceIsNotJSONObject enum const. PreloadRuleSetErrorTypeSourceIsNotJSONObject PreloadRuleSetErrorType = "SourceIsNotJsonObject" // PreloadRuleSetErrorTypeInvalidRulesSkipped enum const. PreloadRuleSetErrorTypeInvalidRulesSkipped PreloadRuleSetErrorType = "InvalidRulesSkipped" )
type PreloadRuleSetRemoved ¶ added in v0.112.9
type PreloadRuleSetRemoved struct { // ID ... ID PreloadRuleSetID `json:"id"` }
PreloadRuleSetRemoved ...
func (PreloadRuleSetRemoved) ProtoEvent ¶ added in v0.112.9
func (evt PreloadRuleSetRemoved) ProtoEvent() string
ProtoEvent name.
type PreloadRuleSetUpdated ¶ added in v0.112.9
type PreloadRuleSetUpdated struct { // RuleSet ... RuleSet *PreloadRuleSet `json:"ruleSet"` }
PreloadRuleSetUpdated Upsert. Currently, it is only emitted when a rule set added.
func (PreloadRuleSetUpdated) ProtoEvent ¶ added in v0.112.9
func (evt PreloadRuleSetUpdated) ProtoEvent() string
ProtoEvent name.
type PreloadSpeculationAction ¶ added in v0.112.9
type PreloadSpeculationAction string
PreloadSpeculationAction The type of preloading attempted. It corresponds to mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it isn't being used by clients).
const ( // PreloadSpeculationActionPrefetch enum const. PreloadSpeculationActionPrefetch PreloadSpeculationAction = "Prefetch" // PreloadSpeculationActionPrerender enum const. PreloadSpeculationActionPrerender PreloadSpeculationAction = "Prerender" )
type PreloadSpeculationTargetHint ¶ added in v0.112.9
type PreloadSpeculationTargetHint string
PreloadSpeculationTargetHint Corresponds to mojom::SpeculationTargetHint. See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
const ( // PreloadSpeculationTargetHintBlank enum const. PreloadSpeculationTargetHintBlank PreloadSpeculationTargetHint = "Blank" // PreloadSpeculationTargetHintSelf enum const. PreloadSpeculationTargetHintSelf PreloadSpeculationTargetHint = "Self" )
type ProfilerConsoleProfileFinished ¶
type ProfilerConsoleProfileFinished struct { // ID ... ID string `json:"id"` // Location of console.profileEnd(). Location *DebuggerLocation `json:"location"` // Profile ... Profile *ProfilerProfile `json:"profile"` // Title (optional) Profile title passed as an argument to console.profile(). Title string `json:"title,omitempty"` }
ProfilerConsoleProfileFinished ...
func (ProfilerConsoleProfileFinished) ProtoEvent ¶ added in v0.72.0
func (evt ProfilerConsoleProfileFinished) ProtoEvent() string
ProtoEvent name.
type ProfilerConsoleProfileStarted ¶
type ProfilerConsoleProfileStarted struct { // ID ... ID string `json:"id"` // Location of console.profile(). Location *DebuggerLocation `json:"location"` // Title (optional) Profile title passed as an argument to console.profile(). Title string `json:"title,omitempty"` }
ProfilerConsoleProfileStarted Sent when new profile recording is started using console.profile() call.
func (ProfilerConsoleProfileStarted) ProtoEvent ¶ added in v0.72.0
func (evt ProfilerConsoleProfileStarted) ProtoEvent() string
ProtoEvent name.
type ProfilerCoverageRange ¶
type ProfilerCoverageRange struct { // StartOffset JavaScript script source offset for the range start. StartOffset int `json:"startOffset"` // EndOffset JavaScript script source offset for the range end. EndOffset int `json:"endOffset"` // Count Collected execution count of the source range. Count int `json:"count"` }
ProfilerCoverageRange Coverage data for a source range.
type ProfilerDisable ¶
type ProfilerDisable struct{}
ProfilerDisable ...
func (ProfilerDisable) ProtoReq ¶ added in v0.74.0
func (m ProfilerDisable) ProtoReq() string
ProtoReq name.
type ProfilerEnable ¶
type ProfilerEnable struct{}
ProfilerEnable ...
func (ProfilerEnable) ProtoReq ¶ added in v0.74.0
func (m ProfilerEnable) ProtoReq() string
ProtoReq name.
type ProfilerFunctionCoverage ¶
type ProfilerFunctionCoverage struct { // FunctionName JavaScript function name. FunctionName string `json:"functionName"` // Ranges Source ranges inside the function with coverage data. Ranges []*ProfilerCoverageRange `json:"ranges"` // IsBlockCoverage Whether coverage data for this function has block granularity. IsBlockCoverage bool `json:"isBlockCoverage"` }
ProfilerFunctionCoverage Coverage data for a JavaScript function.
type ProfilerGetBestEffortCoverage ¶
type ProfilerGetBestEffortCoverage struct{}
ProfilerGetBestEffortCoverage Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
func (ProfilerGetBestEffortCoverage) Call ¶
func (m ProfilerGetBestEffortCoverage) Call(c Client) (*ProfilerGetBestEffortCoverageResult, error)
Call the request.
func (ProfilerGetBestEffortCoverage) ProtoReq ¶ added in v0.74.0
func (m ProfilerGetBestEffortCoverage) ProtoReq() string
ProtoReq name.
type ProfilerGetBestEffortCoverageResult ¶
type ProfilerGetBestEffortCoverageResult struct { // Result Coverage data for the current isolate. Result []*ProfilerScriptCoverage `json:"result"` }
ProfilerGetBestEffortCoverageResult ...
type ProfilerPositionTickInfo ¶
type ProfilerPositionTickInfo struct { // Line Source line number (1-based). Line int `json:"line"` // Ticks Number of samples attributed to the source line. Ticks int `json:"ticks"` }
ProfilerPositionTickInfo Specifies a number of samples attributed to a certain source position.
type ProfilerPreciseCoverageDeltaUpdate ¶
type ProfilerPreciseCoverageDeltaUpdate struct { // Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend. Timestamp float64 `json:"timestamp"` // Occasion Identifier for distinguishing coverage events. Occasion string `json:"occasion"` // Result Coverage data for the current isolate. Result []*ProfilerScriptCoverage `json:"result"` }
ProfilerPreciseCoverageDeltaUpdate (experimental) Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.
func (ProfilerPreciseCoverageDeltaUpdate) ProtoEvent ¶ added in v0.72.0
func (evt ProfilerPreciseCoverageDeltaUpdate) ProtoEvent() string
ProtoEvent name.
type ProfilerProfile ¶
type ProfilerProfile struct { // Nodes The list of profile nodes. First item is the root node. Nodes []*ProfilerProfileNode `json:"nodes"` // StartTime Profiling start timestamp in microseconds. StartTime float64 `json:"startTime"` // EndTime Profiling end timestamp in microseconds. EndTime float64 `json:"endTime"` // Samples (optional) Ids of samples top nodes. Samples []int `json:"samples,omitempty"` // TimeDeltas (optional) Time intervals between adjacent samples in microseconds. The first delta is relative to the // profile startTime. TimeDeltas []int `json:"timeDeltas,omitempty"` }
ProfilerProfile Profile.
type ProfilerProfileNode ¶
type ProfilerProfileNode struct { // ID Unique id of the node. ID int `json:"id"` // CallFrame Function location. CallFrame *RuntimeCallFrame `json:"callFrame"` // HitCount (optional) Number of samples where this node was on top of the call stack. HitCount *int `json:"hitCount,omitempty"` // Children (optional) Child node ids. Children []int `json:"children,omitempty"` // DeoptReason (optional) The reason of being not optimized. The function may be deoptimized or marked as don't // optimize. DeoptReason string `json:"deoptReason,omitempty"` // PositionTicks (optional) An array of source position ticks. PositionTicks []*ProfilerPositionTickInfo `json:"positionTicks,omitempty"` }
ProfilerProfileNode Profile node. Holds callsite information, execution statistics and child nodes.
type ProfilerScriptCoverage ¶
type ProfilerScriptCoverage struct { // ScriptID JavaScript script id. ScriptID RuntimeScriptID `json:"scriptId"` // URL JavaScript script name or url. URL string `json:"url"` // Functions contained in the script that has coverage data. Functions []*ProfilerFunctionCoverage `json:"functions"` }
ProfilerScriptCoverage Coverage data for a JavaScript script.
type ProfilerSetSamplingInterval ¶
type ProfilerSetSamplingInterval struct { // Interval New sampling interval in microseconds. Interval int `json:"interval"` }
ProfilerSetSamplingInterval Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
func (ProfilerSetSamplingInterval) Call ¶
func (m ProfilerSetSamplingInterval) Call(c Client) error
Call sends the request.
func (ProfilerSetSamplingInterval) ProtoReq ¶ added in v0.74.0
func (m ProfilerSetSamplingInterval) ProtoReq() string
ProtoReq name.
type ProfilerStart ¶
type ProfilerStart struct{}
ProfilerStart ...
func (ProfilerStart) ProtoReq ¶ added in v0.74.0
func (m ProfilerStart) ProtoReq() string
ProtoReq name.
type ProfilerStartPreciseCoverage ¶
type ProfilerStartPreciseCoverage struct { // CallCount (optional) Collect accurate call counts beyond simple 'covered' or 'not covered'. CallCount bool `json:"callCount,omitempty"` // Detailed (optional) Collect block-based coverage. Detailed bool `json:"detailed,omitempty"` // AllowTriggeredUpdates (optional) Allow the backend to send updates on its own initiative AllowTriggeredUpdates bool `json:"allowTriggeredUpdates,omitempty"` }
ProfilerStartPreciseCoverage 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 (ProfilerStartPreciseCoverage) Call ¶
func (m ProfilerStartPreciseCoverage) Call(c Client) (*ProfilerStartPreciseCoverageResult, error)
Call the request.
func (ProfilerStartPreciseCoverage) ProtoReq ¶ added in v0.74.0
func (m ProfilerStartPreciseCoverage) ProtoReq() string
ProtoReq name.
type ProfilerStartPreciseCoverageResult ¶
type ProfilerStartPreciseCoverageResult struct { // Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend. Timestamp float64 `json:"timestamp"` }
ProfilerStartPreciseCoverageResult ...
type ProfilerStop ¶
type ProfilerStop struct{}
ProfilerStop ...
func (ProfilerStop) Call ¶
func (m ProfilerStop) Call(c Client) (*ProfilerStopResult, error)
Call the request.
func (ProfilerStop) ProtoReq ¶ added in v0.74.0
func (m ProfilerStop) ProtoReq() string
ProtoReq name.
type ProfilerStopPreciseCoverage ¶
type ProfilerStopPreciseCoverage struct{}
ProfilerStopPreciseCoverage Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
func (ProfilerStopPreciseCoverage) Call ¶
func (m ProfilerStopPreciseCoverage) Call(c Client) error
Call sends the request.
func (ProfilerStopPreciseCoverage) ProtoReq ¶ added in v0.74.0
func (m ProfilerStopPreciseCoverage) ProtoReq() string
ProtoReq name.
type ProfilerStopResult ¶
type ProfilerStopResult struct { // Profile Recorded profile. Profile *ProfilerProfile `json:"profile"` }
ProfilerStopResult ...
type ProfilerTakePreciseCoverage ¶
type ProfilerTakePreciseCoverage struct{}
ProfilerTakePreciseCoverage Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
func (ProfilerTakePreciseCoverage) Call ¶
func (m ProfilerTakePreciseCoverage) Call(c Client) (*ProfilerTakePreciseCoverageResult, error)
Call the request.
func (ProfilerTakePreciseCoverage) ProtoReq ¶ added in v0.74.0
func (m ProfilerTakePreciseCoverage) ProtoReq() string
ProtoReq name.
type ProfilerTakePreciseCoverageResult ¶
type ProfilerTakePreciseCoverageResult struct { // Result Coverage data for the current isolate. Result []*ProfilerScriptCoverage `json:"result"` // Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend. Timestamp float64 `json:"timestamp"` }
ProfilerTakePreciseCoverageResult ...
type Request ¶ added in v0.72.0
type Request interface { // ProtoReq returns the cdp.Request.Method ProtoReq() string }
Request represents a cdp.Request.Method.
type RuntimeAddBinding ¶
type RuntimeAddBinding struct { // Name ... Name string `json:"name"` // ExecutionContextID (deprecated) (experimental) (optional) If specified, the binding would only be exposed to the specified // execution context. If omitted and `executionContextName` is not set, // the binding is exposed to all execution contexts of the target. // This parameter is mutually exclusive with `executionContextName`. // Deprecated in favor of `executionContextName` due to an unclear use case // and bugs in implementation (crbug.com/1169639). `executionContextId` will be // removed in the future. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` // ExecutionContextName (optional) If specified, the binding is exposed to the executionContext with // matching name, even for contexts created after the binding is added. // See also `ExecutionContext.name` and `worldName` parameter to // `Page.addScriptToEvaluateOnNewDocument`. // This parameter is mutually exclusive with `executionContextId`. ExecutionContextName string `json:"executionContextName,omitempty"` }
RuntimeAddBinding 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. 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 (RuntimeAddBinding) Call ¶
func (m RuntimeAddBinding) Call(c Client) error
Call sends the request.
func (RuntimeAddBinding) ProtoReq ¶ added in v0.74.0
func (m RuntimeAddBinding) ProtoReq() string
ProtoReq name.
type RuntimeAwaitPromise ¶
type RuntimeAwaitPromise struct { // PromiseObjectID Identifier of the promise. PromiseObjectID RuntimeRemoteObjectID `json:"promiseObjectId"` // ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value. ReturnByValue bool `json:"returnByValue,omitempty"` // GeneratePreview (optional) Whether preview should be generated for the result. GeneratePreview bool `json:"generatePreview,omitempty"` }
RuntimeAwaitPromise Add handler to promise with given promise object id.
func (RuntimeAwaitPromise) Call ¶
func (m RuntimeAwaitPromise) Call(c Client) (*RuntimeAwaitPromiseResult, error)
Call the request.
func (RuntimeAwaitPromise) ProtoReq ¶ added in v0.74.0
func (m RuntimeAwaitPromise) ProtoReq() string
ProtoReq name.
type RuntimeAwaitPromiseResult ¶
type RuntimeAwaitPromiseResult struct { // Result Promise result. Will contain rejected value if promise was rejected. Result *RuntimeRemoteObject `json:"result"` // ExceptionDetails (optional) Exception details if stack strace is available. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeAwaitPromiseResult ...
type RuntimeBindingCalled ¶
type RuntimeBindingCalled struct { // Name ... Name string `json:"name"` // Payload ... Payload string `json:"payload"` // ExecutionContextID Identifier of the context where the call was made. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` }
RuntimeBindingCalled (experimental) Notification is issued every time when binding is called.
func (RuntimeBindingCalled) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeBindingCalled) ProtoEvent() string
ProtoEvent name.
type RuntimeCallArgument ¶
type RuntimeCallArgument struct { // Value (optional) Primitive value or serializable javascript object. Value gson.JSON `json:"value,omitempty"` // UnserializableValue (optional) Primitive value which can not be JSON-stringified. UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"` // ObjectID (optional) Remote object handle. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` }
RuntimeCallArgument Represents function call argument. Either remote object id `objectId`, primitive `value`, unserializable primitive value or neither of (for undefined) them should be specified.
type RuntimeCallFrame ¶
type RuntimeCallFrame struct { // FunctionName JavaScript function name. FunctionName string `json:"functionName"` // ScriptID JavaScript script id. ScriptID RuntimeScriptID `json:"scriptId"` // URL JavaScript script name or url. URL string `json:"url"` // LineNumber JavaScript script line number (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber JavaScript script column number (0-based). ColumnNumber int `json:"columnNumber"` }
RuntimeCallFrame Stack entry for runtime errors and assertions.
type RuntimeCallFunctionOn ¶
type RuntimeCallFunctionOn struct { // FunctionDeclaration Declaration of the function to call. FunctionDeclaration string `json:"functionDeclaration"` // ObjectID (optional) Identifier of the object to call function on. Either objectId or executionContextId should // be specified. ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // Arguments (optional) Call arguments. All call arguments must belong to the same JavaScript world as the target // object. Arguments []*RuntimeCallArgument `json:"arguments,omitempty"` // Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause // execution. Overrides `setPauseOnException` state. Silent bool `json:"silent,omitempty"` // ReturnByValue (optional) Whether the result is expected to be a JSON object which should be sent by value. // Can be overridden by `serializationOptions`. ReturnByValue bool `json:"returnByValue,omitempty"` // GeneratePreview (experimental) (optional) Whether preview should be generated for the result. GeneratePreview bool `json:"generatePreview,omitempty"` // UserGesture (optional) Whether execution should be treated as initiated by user in the UI. UserGesture bool `json:"userGesture,omitempty"` // AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is // resolved. AwaitPromise bool `json:"awaitPromise,omitempty"` // ExecutionContextID (optional) Specifies execution context which global object will be used to call function on. Either // executionContextId or objectId should be specified. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` // ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. If objectGroup is not // specified and objectId is, objectGroup will be inherited from object. ObjectGroup string `json:"objectGroup,omitempty"` // ThrowOnSideEffect (experimental) (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation. ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // UniqueContextID (experimental) (optional) An alternative way to specify the execution context to call function on. // Compared to contextId that may be reused across processes, this is guaranteed to be // system-unique, so it can be used to prevent accidental function call // in context different than intended (e.g. as a result of navigation across process // boundaries). // This is mutually exclusive with `executionContextId`. UniqueContextID string `json:"uniqueContextId,omitempty"` // SerializationOptions (experimental) (optional) Specifies the result serialization. If provided, overrides // `generatePreview` and `returnByValue`. SerializationOptions *RuntimeSerializationOptions `json:"serializationOptions,omitempty"` }
RuntimeCallFunctionOn Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
func (RuntimeCallFunctionOn) Call ¶
func (m RuntimeCallFunctionOn) Call(c Client) (*RuntimeCallFunctionOnResult, error)
Call the request.
func (RuntimeCallFunctionOn) ProtoReq ¶ added in v0.74.0
func (m RuntimeCallFunctionOn) ProtoReq() string
ProtoReq name.
type RuntimeCallFunctionOnResult ¶
type RuntimeCallFunctionOnResult struct { // Result Call result. Result *RuntimeRemoteObject `json:"result"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeCallFunctionOnResult ...
type RuntimeCompileScript ¶
type RuntimeCompileScript struct { // Expression to compile. Expression string `json:"expression"` // SourceURL Source url to be set for the script. SourceURL string `json:"sourceURL"` // PersistScript Specifies whether the compiled script should be persisted. PersistScript bool `json:"persistScript"` // ExecutionContextID (optional) Specifies in which execution context to perform script run. If the parameter is omitted the // evaluation will be performed in the context of the inspected page. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` }
RuntimeCompileScript Compiles expression.
func (RuntimeCompileScript) Call ¶
func (m RuntimeCompileScript) Call(c Client) (*RuntimeCompileScriptResult, error)
Call the request.
func (RuntimeCompileScript) ProtoReq ¶ added in v0.74.0
func (m RuntimeCompileScript) ProtoReq() string
ProtoReq name.
type RuntimeCompileScriptResult ¶
type RuntimeCompileScriptResult struct { // ScriptID (optional) Id of the script. ScriptID RuntimeScriptID `json:"scriptId,omitempty"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeCompileScriptResult ...
type RuntimeConsoleAPICalled ¶
type RuntimeConsoleAPICalled struct { // Type of the call. Type RuntimeConsoleAPICalledType `json:"type"` // Args Call arguments. Args []*RuntimeRemoteObject `json:"args"` // ExecutionContextID Identifier of the context where the call was made. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` // Timestamp Call timestamp. Timestamp RuntimeTimestamp `json:"timestamp"` // StackTrace (optional) Stack trace captured when the call was made. The async stack chain is automatically reported for // the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call // chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field. StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // Context (experimental) (optional) Console context descriptor for calls on non-default console context (not console.*): // 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call // on named context. Context string `json:"context,omitempty"` }
RuntimeConsoleAPICalled Issued when console API was called.
func (RuntimeConsoleAPICalled) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeConsoleAPICalled) ProtoEvent() string
ProtoEvent name.
type RuntimeConsoleAPICalledType ¶
type RuntimeConsoleAPICalledType string
RuntimeConsoleAPICalledType enum.
const ( // RuntimeConsoleAPICalledTypeLog enum const. RuntimeConsoleAPICalledTypeLog RuntimeConsoleAPICalledType = "log" // RuntimeConsoleAPICalledTypeDebug enum const. RuntimeConsoleAPICalledTypeDebug RuntimeConsoleAPICalledType = "debug" // RuntimeConsoleAPICalledTypeInfo enum const. RuntimeConsoleAPICalledTypeInfo RuntimeConsoleAPICalledType = "info" // RuntimeConsoleAPICalledTypeError enum const. RuntimeConsoleAPICalledTypeError RuntimeConsoleAPICalledType = "error" // RuntimeConsoleAPICalledTypeWarning enum const. RuntimeConsoleAPICalledTypeWarning RuntimeConsoleAPICalledType = "warning" // RuntimeConsoleAPICalledTypeDir enum const. RuntimeConsoleAPICalledTypeDir RuntimeConsoleAPICalledType = "dir" // RuntimeConsoleAPICalledTypeDirxml enum const. RuntimeConsoleAPICalledTypeDirxml RuntimeConsoleAPICalledType = "dirxml" // RuntimeConsoleAPICalledTypeTable enum const. RuntimeConsoleAPICalledTypeTable RuntimeConsoleAPICalledType = "table" // RuntimeConsoleAPICalledTypeTrace enum const. RuntimeConsoleAPICalledTypeTrace RuntimeConsoleAPICalledType = "trace" // RuntimeConsoleAPICalledTypeClear enum const. RuntimeConsoleAPICalledTypeClear RuntimeConsoleAPICalledType = "clear" // RuntimeConsoleAPICalledTypeStartGroup enum const. RuntimeConsoleAPICalledTypeStartGroup RuntimeConsoleAPICalledType = "startGroup" // RuntimeConsoleAPICalledTypeStartGroupCollapsed enum const. RuntimeConsoleAPICalledTypeStartGroupCollapsed RuntimeConsoleAPICalledType = "startGroupCollapsed" // RuntimeConsoleAPICalledTypeEndGroup enum const. RuntimeConsoleAPICalledTypeEndGroup RuntimeConsoleAPICalledType = "endGroup" // RuntimeConsoleAPICalledTypeAssert enum const. RuntimeConsoleAPICalledTypeAssert RuntimeConsoleAPICalledType = "assert" // RuntimeConsoleAPICalledTypeProfile enum const. RuntimeConsoleAPICalledTypeProfile RuntimeConsoleAPICalledType = "profile" // RuntimeConsoleAPICalledTypeProfileEnd enum const. RuntimeConsoleAPICalledTypeProfileEnd RuntimeConsoleAPICalledType = "profileEnd" // RuntimeConsoleAPICalledTypeCount enum const. RuntimeConsoleAPICalledTypeCount RuntimeConsoleAPICalledType = "count" // RuntimeConsoleAPICalledTypeTimeEnd enum const. RuntimeConsoleAPICalledTypeTimeEnd RuntimeConsoleAPICalledType = "timeEnd" )
type RuntimeCustomPreview ¶
type RuntimeCustomPreview struct { // Header The JSON-stringified result of formatter.header(object, config) call. // It contains json ML array that represents RemoteObject. Header string `json:"header"` // BodyGetterID (optional) If formatter returns true as a result of formatter.hasBody call then bodyGetterId will // contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. // The result value is json ML array. BodyGetterID RuntimeRemoteObjectID `json:"bodyGetterId,omitempty"` }
RuntimeCustomPreview (experimental) ...
type RuntimeDeepSerializedValue ¶ added in v0.115.0
type RuntimeDeepSerializedValue struct { // Type ... Type RuntimeDeepSerializedValueType `json:"type"` // Value (optional) ... Value gson.JSON `json:"value,omitempty"` // ObjectID (optional) ... ObjectID string `json:"objectId,omitempty"` // WeakLocalObjectReference (optional) Set if value reference met more then once during serialization. In such // case, value is provided only to one of the serialized values. Unique // per value in the scope of one CDP call. WeakLocalObjectReference *int `json:"weakLocalObjectReference,omitempty"` }
RuntimeDeepSerializedValue Represents deep serialized value.
type RuntimeDeepSerializedValueType ¶ added in v0.115.0
type RuntimeDeepSerializedValueType string
RuntimeDeepSerializedValueType enum.
const ( // RuntimeDeepSerializedValueTypeUndefined enum const. RuntimeDeepSerializedValueTypeUndefined RuntimeDeepSerializedValueType = "undefined" // RuntimeDeepSerializedValueTypeNull enum const. RuntimeDeepSerializedValueTypeNull RuntimeDeepSerializedValueType = "null" // RuntimeDeepSerializedValueTypeString enum const. RuntimeDeepSerializedValueTypeString RuntimeDeepSerializedValueType = "string" // RuntimeDeepSerializedValueTypeNumber enum const. RuntimeDeepSerializedValueTypeNumber RuntimeDeepSerializedValueType = "number" // RuntimeDeepSerializedValueTypeBoolean enum const. RuntimeDeepSerializedValueTypeBoolean RuntimeDeepSerializedValueType = "boolean" // RuntimeDeepSerializedValueTypeBigint enum const. RuntimeDeepSerializedValueTypeBigint RuntimeDeepSerializedValueType = "bigint" // RuntimeDeepSerializedValueTypeRegexp enum const. RuntimeDeepSerializedValueTypeRegexp RuntimeDeepSerializedValueType = "regexp" // RuntimeDeepSerializedValueTypeDate enum const. RuntimeDeepSerializedValueTypeDate RuntimeDeepSerializedValueType = "date" // RuntimeDeepSerializedValueTypeSymbol enum const. RuntimeDeepSerializedValueTypeSymbol RuntimeDeepSerializedValueType = "symbol" // RuntimeDeepSerializedValueTypeArray enum const. RuntimeDeepSerializedValueTypeArray RuntimeDeepSerializedValueType = "array" // RuntimeDeepSerializedValueTypeObject enum const. RuntimeDeepSerializedValueTypeObject RuntimeDeepSerializedValueType = "object" // RuntimeDeepSerializedValueTypeFunction enum const. RuntimeDeepSerializedValueTypeFunction RuntimeDeepSerializedValueType = "function" // RuntimeDeepSerializedValueTypeMap enum const. RuntimeDeepSerializedValueTypeMap RuntimeDeepSerializedValueType = "map" // RuntimeDeepSerializedValueTypeSet enum const. RuntimeDeepSerializedValueTypeSet RuntimeDeepSerializedValueType = "set" // RuntimeDeepSerializedValueTypeWeakmap enum const. RuntimeDeepSerializedValueTypeWeakmap RuntimeDeepSerializedValueType = "weakmap" // RuntimeDeepSerializedValueTypeWeakset enum const. RuntimeDeepSerializedValueTypeWeakset RuntimeDeepSerializedValueType = "weakset" // RuntimeDeepSerializedValueTypeError enum const. RuntimeDeepSerializedValueTypeError RuntimeDeepSerializedValueType = "error" // RuntimeDeepSerializedValueTypeProxy enum const. RuntimeDeepSerializedValueTypeProxy RuntimeDeepSerializedValueType = "proxy" // RuntimeDeepSerializedValueTypePromise enum const. RuntimeDeepSerializedValueTypePromise RuntimeDeepSerializedValueType = "promise" // RuntimeDeepSerializedValueTypeTypedarray enum const. RuntimeDeepSerializedValueTypeTypedarray RuntimeDeepSerializedValueType = "typedarray" // RuntimeDeepSerializedValueTypeArraybuffer enum const. RuntimeDeepSerializedValueTypeArraybuffer RuntimeDeepSerializedValueType = "arraybuffer" // RuntimeDeepSerializedValueTypeNode enum const. RuntimeDeepSerializedValueTypeNode RuntimeDeepSerializedValueType = "node" // RuntimeDeepSerializedValueTypeWindow enum const. RuntimeDeepSerializedValueTypeWindow RuntimeDeepSerializedValueType = "window" // RuntimeDeepSerializedValueTypeGenerator enum const. RuntimeDeepSerializedValueTypeGenerator RuntimeDeepSerializedValueType = "generator" )
type RuntimeDisable ¶
type RuntimeDisable struct{}
RuntimeDisable Disables reporting of execution contexts creation.
func (RuntimeDisable) ProtoReq ¶ added in v0.74.0
func (m RuntimeDisable) ProtoReq() string
ProtoReq name.
type RuntimeDiscardConsoleEntries ¶
type RuntimeDiscardConsoleEntries struct{}
RuntimeDiscardConsoleEntries Discards collected exceptions and console API calls.
func (RuntimeDiscardConsoleEntries) Call ¶
func (m RuntimeDiscardConsoleEntries) Call(c Client) error
Call sends the request.
func (RuntimeDiscardConsoleEntries) ProtoReq ¶ added in v0.74.0
func (m RuntimeDiscardConsoleEntries) ProtoReq() string
ProtoReq name.
type RuntimeEnable ¶
type RuntimeEnable struct{}
RuntimeEnable 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 (RuntimeEnable) ProtoReq ¶ added in v0.74.0
func (m RuntimeEnable) ProtoReq() string
ProtoReq name.
type RuntimeEntryPreview ¶
type RuntimeEntryPreview struct { // Key (optional) Preview of the key. Specified for map-like collection entries. Key *RuntimeObjectPreview `json:"key,omitempty"` // Value Preview of the value. Value *RuntimeObjectPreview `json:"value"` }
RuntimeEntryPreview (experimental) ...
type RuntimeEvaluate ¶
type RuntimeEvaluate struct { // Expression to evaluate. Expression string `json:"expression"` // ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. ObjectGroup string `json:"objectGroup,omitempty"` // IncludeCommandLineAPI (optional) Determines whether Command Line API should be available during the evaluation. IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause // execution. Overrides `setPauseOnException` state. Silent bool `json:"silent,omitempty"` // ContextID (optional) Specifies in which execution context to perform evaluation. If the parameter is omitted the // evaluation will be performed in the context of the inspected page. // This is mutually exclusive with `uniqueContextId`, which offers an // alternative way to identify the execution context that is more reliable // in a multi-process environment. ContextID RuntimeExecutionContextID `json:"contextId,omitempty"` // ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value. ReturnByValue bool `json:"returnByValue,omitempty"` // GeneratePreview (experimental) (optional) Whether preview should be generated for the result. GeneratePreview bool `json:"generatePreview,omitempty"` // UserGesture (optional) Whether execution should be treated as initiated by user in the UI. UserGesture bool `json:"userGesture,omitempty"` // AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is // resolved. AwaitPromise bool `json:"awaitPromise,omitempty"` // ThrowOnSideEffect (experimental) (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation. // This implies `disableBreaks` below. ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // Timeout (experimental) (optional) Terminate execution after timing out (number of milliseconds). Timeout RuntimeTimeDelta `json:"timeout,omitempty"` // DisableBreaks (experimental) (optional) Disable breakpoints during execution. DisableBreaks bool `json:"disableBreaks,omitempty"` // ReplMode (experimental) (optional) Setting this flag to true enables `let` re-declaration and top-level `await`. // Note that `let` variables can only be re-declared if they originate from // `replMode` themselves. ReplMode bool `json:"replMode,omitempty"` // AllowUnsafeEvalBlockedByCSP (experimental) (optional) The Content Security Policy (CSP) for the target might block 'unsafe-eval' // which includes eval(), Function(), setTimeout() and setInterval() // when called with non-callable arguments. This flag bypasses CSP for this // evaluation and allows unsafe-eval. Defaults to true. AllowUnsafeEvalBlockedByCSP bool `json:"allowUnsafeEvalBlockedByCSP,omitempty"` // UniqueContextID (experimental) (optional) An alternative way to specify the execution context to evaluate in. // Compared to contextId that may be reused across processes, this is guaranteed to be // system-unique, so it can be used to prevent accidental evaluation of the expression // in context different than intended (e.g. as a result of navigation across process // boundaries). // This is mutually exclusive with `contextId`. UniqueContextID string `json:"uniqueContextId,omitempty"` // SerializationOptions (experimental) (optional) Specifies the result serialization. If provided, overrides // `generatePreview` and `returnByValue`. SerializationOptions *RuntimeSerializationOptions `json:"serializationOptions,omitempty"` }
RuntimeEvaluate Evaluates expression on global object.
func (RuntimeEvaluate) Call ¶
func (m RuntimeEvaluate) Call(c Client) (*RuntimeEvaluateResult, error)
Call the request.
func (RuntimeEvaluate) ProtoReq ¶ added in v0.74.0
func (m RuntimeEvaluate) ProtoReq() string
ProtoReq name.
type RuntimeEvaluateResult ¶
type RuntimeEvaluateResult struct { // Result Evaluation result. Result *RuntimeRemoteObject `json:"result"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeEvaluateResult ...
type RuntimeExceptionDetails ¶
type RuntimeExceptionDetails struct { // ExceptionID Exception id. ExceptionID int `json:"exceptionId"` // Text Exception text, which should be used together with exception object when available. Text string `json:"text"` // LineNumber Line number of the exception location (0-based). LineNumber int `json:"lineNumber"` // ColumnNumber Column number of the exception location (0-based). ColumnNumber int `json:"columnNumber"` // ScriptID (optional) Script ID of the exception location. ScriptID RuntimeScriptID `json:"scriptId,omitempty"` // URL (optional) URL of the exception location, to be used when the script was not reported. URL string `json:"url,omitempty"` // StackTrace (optional) JavaScript stack trace if available. StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"` // Exception (optional) Exception object if available. Exception *RuntimeRemoteObject `json:"exception,omitempty"` // ExecutionContextID (optional) Identifier of the context where exception happened. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` // ExceptionMetaData (experimental) (optional) Dictionary with entries of meta data that the client associated // with this exception, such as information about associated network // requests, etc. ExceptionMetaData map[string]gson.JSON `json:"exceptionMetaData,omitempty"` }
RuntimeExceptionDetails Detailed information about exception (or error) that was thrown during script compilation or execution.
type RuntimeExceptionRevoked ¶
type RuntimeExceptionRevoked struct { // Reason describing why exception was revoked. Reason string `json:"reason"` // ExceptionID The id of revoked exception, as reported in `exceptionThrown`. ExceptionID int `json:"exceptionId"` }
RuntimeExceptionRevoked Issued when unhandled exception was revoked.
func (RuntimeExceptionRevoked) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeExceptionRevoked) ProtoEvent() string
ProtoEvent name.
type RuntimeExceptionThrown ¶
type RuntimeExceptionThrown struct { // Timestamp of the exception. Timestamp RuntimeTimestamp `json:"timestamp"` // ExceptionDetails ... ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails"` }
RuntimeExceptionThrown Issued when exception was thrown and unhandled.
func (RuntimeExceptionThrown) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeExceptionThrown) ProtoEvent() string
ProtoEvent name.
type RuntimeExecutionContextCreated ¶
type RuntimeExecutionContextCreated struct { // Context A newly created execution context. Context *RuntimeExecutionContextDescription `json:"context"` }
RuntimeExecutionContextCreated Issued when new execution context is created.
func (RuntimeExecutionContextCreated) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeExecutionContextCreated) ProtoEvent() string
ProtoEvent name.
type RuntimeExecutionContextDescription ¶
type RuntimeExecutionContextDescription struct { // ID Unique id of the execution context. It can be used to specify in which execution context // script evaluation should be performed. ID RuntimeExecutionContextID `json:"id"` // Origin Execution context origin. Origin string `json:"origin"` // Name Human readable name describing given context. Name string `json:"name"` // UniqueID (experimental) A system-unique execution context identifier. Unlike the id, this is unique across // multiple processes, so can be reliably used to identify specific context while backend // performs a cross-process navigation. UniqueID string `json:"uniqueId"` // AuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} AuxData map[string]gson.JSON `json:"auxData,omitempty"` }
RuntimeExecutionContextDescription Description of an isolated world.
type RuntimeExecutionContextDestroyed ¶
type RuntimeExecutionContextDestroyed struct { // ExecutionContextID (deprecated) Id of the destroyed context ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"` // ExecutionContextUniqueID (experimental) Unique Id of the destroyed context ExecutionContextUniqueID string `json:"executionContextUniqueId"` }
RuntimeExecutionContextDestroyed Issued when execution context is destroyed.
func (RuntimeExecutionContextDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeExecutionContextDestroyed) ProtoEvent() string
ProtoEvent name.
type RuntimeExecutionContextID ¶
type RuntimeExecutionContextID int
RuntimeExecutionContextID Id of an execution context.
type RuntimeExecutionContextsCleared ¶
type RuntimeExecutionContextsCleared struct{}
RuntimeExecutionContextsCleared Issued when all executionContexts were cleared in browser.
func (RuntimeExecutionContextsCleared) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeExecutionContextsCleared) ProtoEvent() string
ProtoEvent name.
type RuntimeGetExceptionDetails ¶ added in v0.102.0
type RuntimeGetExceptionDetails struct { // ErrorObjectID The error object for which to resolve the exception details. ErrorObjectID RuntimeRemoteObjectID `json:"errorObjectId"` }
RuntimeGetExceptionDetails (experimental) This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown.
func (RuntimeGetExceptionDetails) Call ¶ added in v0.102.0
func (m RuntimeGetExceptionDetails) Call(c Client) (*RuntimeGetExceptionDetailsResult, error)
Call the request.
func (RuntimeGetExceptionDetails) ProtoReq ¶ added in v0.102.0
func (m RuntimeGetExceptionDetails) ProtoReq() string
ProtoReq name.
type RuntimeGetExceptionDetailsResult ¶ added in v0.102.0
type RuntimeGetExceptionDetailsResult struct { // ExceptionDetails (optional) ... ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeGetExceptionDetailsResult (experimental) ...
type RuntimeGetHeapUsage ¶
type RuntimeGetHeapUsage struct{}
RuntimeGetHeapUsage (experimental) Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
func (RuntimeGetHeapUsage) Call ¶
func (m RuntimeGetHeapUsage) Call(c Client) (*RuntimeGetHeapUsageResult, error)
Call the request.
func (RuntimeGetHeapUsage) ProtoReq ¶ added in v0.74.0
func (m RuntimeGetHeapUsage) ProtoReq() string
ProtoReq name.
type RuntimeGetHeapUsageResult ¶
type RuntimeGetHeapUsageResult struct { // UsedSize Used heap size in bytes. UsedSize float64 `json:"usedSize"` // TotalSize Allocated heap size in bytes. TotalSize float64 `json:"totalSize"` }
RuntimeGetHeapUsageResult (experimental) ...
type RuntimeGetIsolateID ¶
type RuntimeGetIsolateID struct{}
RuntimeGetIsolateID (experimental) Returns the isolate id.
func (RuntimeGetIsolateID) Call ¶
func (m RuntimeGetIsolateID) Call(c Client) (*RuntimeGetIsolateIDResult, error)
Call the request.
func (RuntimeGetIsolateID) ProtoReq ¶ added in v0.74.0
func (m RuntimeGetIsolateID) ProtoReq() string
ProtoReq name.
type RuntimeGetIsolateIDResult ¶
type RuntimeGetIsolateIDResult struct { // ID The isolate id. ID string `json:"id"` }
RuntimeGetIsolateIDResult (experimental) ...
type RuntimeGetProperties ¶
type RuntimeGetProperties struct { // ObjectID Identifier of the object to return properties for. ObjectID RuntimeRemoteObjectID `json:"objectId"` // OwnProperties (optional) If true, returns properties belonging only to the element itself, not to its prototype // chain. OwnProperties bool `json:"ownProperties,omitempty"` // AccessorPropertiesOnly (experimental) (optional) If true, returns accessor properties (with getter/setter) only; internal properties are not // returned either. AccessorPropertiesOnly bool `json:"accessorPropertiesOnly,omitempty"` // GeneratePreview (experimental) (optional) Whether preview should be generated for the results. GeneratePreview bool `json:"generatePreview,omitempty"` // NonIndexedPropertiesOnly (experimental) (optional) If true, returns non-indexed properties only. NonIndexedPropertiesOnly bool `json:"nonIndexedPropertiesOnly,omitempty"` }
RuntimeGetProperties Returns properties of a given object. Object group of the result is inherited from the target object.
func (RuntimeGetProperties) Call ¶
func (m RuntimeGetProperties) Call(c Client) (*RuntimeGetPropertiesResult, error)
Call the request.
func (RuntimeGetProperties) ProtoReq ¶ added in v0.74.0
func (m RuntimeGetProperties) ProtoReq() string
ProtoReq name.
type RuntimeGetPropertiesResult ¶
type RuntimeGetPropertiesResult struct { // Result Object properties. Result []*RuntimePropertyDescriptor `json:"result"` // InternalProperties (optional) Internal object properties (only of the element itself). InternalProperties []*RuntimeInternalPropertyDescriptor `json:"internalProperties,omitempty"` // PrivateProperties (experimental) (optional) Object private properties. PrivateProperties []*RuntimePrivatePropertyDescriptor `json:"privateProperties,omitempty"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeGetPropertiesResult ...
type RuntimeGlobalLexicalScopeNames ¶
type RuntimeGlobalLexicalScopeNames struct { // ExecutionContextID (optional) Specifies in which execution context to lookup global scope variables. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` }
RuntimeGlobalLexicalScopeNames Returns all let, const and class variables from global scope.
func (RuntimeGlobalLexicalScopeNames) Call ¶
func (m RuntimeGlobalLexicalScopeNames) Call(c Client) (*RuntimeGlobalLexicalScopeNamesResult, error)
Call the request.
func (RuntimeGlobalLexicalScopeNames) ProtoReq ¶ added in v0.74.0
func (m RuntimeGlobalLexicalScopeNames) ProtoReq() string
ProtoReq name.
type RuntimeGlobalLexicalScopeNamesResult ¶
type RuntimeGlobalLexicalScopeNamesResult struct { // Names ... Names []string `json:"names"` }
RuntimeGlobalLexicalScopeNamesResult ...
type RuntimeInspectRequested ¶
type RuntimeInspectRequested struct { // Object ... Object *RuntimeRemoteObject `json:"object"` // Hints ... Hints map[string]gson.JSON `json:"hints"` // ExecutionContextID (experimental) (optional) Identifier of the context where the call was made. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` }
RuntimeInspectRequested Issued when object should be inspected (for example, as a result of inspect() command line API call).
func (RuntimeInspectRequested) ProtoEvent ¶ added in v0.72.0
func (evt RuntimeInspectRequested) ProtoEvent() string
ProtoEvent name.
type RuntimeInternalPropertyDescriptor ¶
type RuntimeInternalPropertyDescriptor struct { // Name Conventional property name. Name string `json:"name"` // Value (optional) The value associated with the property. Value *RuntimeRemoteObject `json:"value,omitempty"` }
RuntimeInternalPropertyDescriptor Object internal property descriptor. This property isn't normally visible in JavaScript code.
type RuntimeObjectPreview ¶
type RuntimeObjectPreview struct { // Type Object type. Type RuntimeObjectPreviewType `json:"type"` // Subtype (optional) Object subtype hint. Specified for `object` type values only. Subtype RuntimeObjectPreviewSubtype `json:"subtype,omitempty"` // Description (optional) String representation of the object. Description string `json:"description,omitempty"` // Overflow True iff some of the properties or entries of the original object did not fit. Overflow bool `json:"overflow"` // Properties List of the properties. Properties []*RuntimePropertyPreview `json:"properties"` // Entries (optional) List of the entries. Specified for `map` and `set` subtype values only. Entries []*RuntimeEntryPreview `json:"entries,omitempty"` }
RuntimeObjectPreview (experimental) Object containing abbreviated remote object value.
type RuntimeObjectPreviewSubtype ¶
type RuntimeObjectPreviewSubtype string
RuntimeObjectPreviewSubtype enum.
const ( // RuntimeObjectPreviewSubtypeArray enum const. RuntimeObjectPreviewSubtypeArray RuntimeObjectPreviewSubtype = "array" // RuntimeObjectPreviewSubtypeNull enum const. RuntimeObjectPreviewSubtypeNull RuntimeObjectPreviewSubtype = "null" // RuntimeObjectPreviewSubtypeNode enum const. RuntimeObjectPreviewSubtypeNode RuntimeObjectPreviewSubtype = "node" // RuntimeObjectPreviewSubtypeRegexp enum const. RuntimeObjectPreviewSubtypeRegexp RuntimeObjectPreviewSubtype = "regexp" // RuntimeObjectPreviewSubtypeDate enum const. RuntimeObjectPreviewSubtypeDate RuntimeObjectPreviewSubtype = "date" // RuntimeObjectPreviewSubtypeMap enum const. RuntimeObjectPreviewSubtypeMap RuntimeObjectPreviewSubtype = "map" // RuntimeObjectPreviewSubtypeSet enum const. RuntimeObjectPreviewSubtypeSet RuntimeObjectPreviewSubtype = "set" // RuntimeObjectPreviewSubtypeWeakmap enum const. RuntimeObjectPreviewSubtypeWeakmap RuntimeObjectPreviewSubtype = "weakmap" // RuntimeObjectPreviewSubtypeWeakset enum const. RuntimeObjectPreviewSubtypeWeakset RuntimeObjectPreviewSubtype = "weakset" // RuntimeObjectPreviewSubtypeIterator enum const. RuntimeObjectPreviewSubtypeIterator RuntimeObjectPreviewSubtype = "iterator" // RuntimeObjectPreviewSubtypeGenerator enum const. RuntimeObjectPreviewSubtypeGenerator RuntimeObjectPreviewSubtype = "generator" // RuntimeObjectPreviewSubtypeError enum const. RuntimeObjectPreviewSubtypeError RuntimeObjectPreviewSubtype = "error" // RuntimeObjectPreviewSubtypeProxy enum const. RuntimeObjectPreviewSubtypeProxy RuntimeObjectPreviewSubtype = "proxy" // RuntimeObjectPreviewSubtypePromise enum const. RuntimeObjectPreviewSubtypePromise RuntimeObjectPreviewSubtype = "promise" // RuntimeObjectPreviewSubtypeTypedarray enum const. RuntimeObjectPreviewSubtypeTypedarray RuntimeObjectPreviewSubtype = "typedarray" // RuntimeObjectPreviewSubtypeArraybuffer enum const. RuntimeObjectPreviewSubtypeArraybuffer RuntimeObjectPreviewSubtype = "arraybuffer" // RuntimeObjectPreviewSubtypeDataview enum const. RuntimeObjectPreviewSubtypeDataview RuntimeObjectPreviewSubtype = "dataview" // RuntimeObjectPreviewSubtypeWebassemblymemory enum const. RuntimeObjectPreviewSubtypeWebassemblymemory RuntimeObjectPreviewSubtype = "webassemblymemory" // RuntimeObjectPreviewSubtypeWasmvalue enum const. RuntimeObjectPreviewSubtypeWasmvalue RuntimeObjectPreviewSubtype = "wasmvalue" )
type RuntimeObjectPreviewType ¶
type RuntimeObjectPreviewType string
RuntimeObjectPreviewType enum.
const ( // RuntimeObjectPreviewTypeObject enum const. RuntimeObjectPreviewTypeObject RuntimeObjectPreviewType = "object" // RuntimeObjectPreviewTypeFunction enum const. RuntimeObjectPreviewTypeFunction RuntimeObjectPreviewType = "function" // RuntimeObjectPreviewTypeUndefined enum const. RuntimeObjectPreviewTypeUndefined RuntimeObjectPreviewType = "undefined" // RuntimeObjectPreviewTypeString enum const. RuntimeObjectPreviewTypeString RuntimeObjectPreviewType = "string" // RuntimeObjectPreviewTypeNumber enum const. RuntimeObjectPreviewTypeNumber RuntimeObjectPreviewType = "number" // RuntimeObjectPreviewTypeBoolean enum const. RuntimeObjectPreviewTypeBoolean RuntimeObjectPreviewType = "boolean" // RuntimeObjectPreviewTypeSymbol enum const. RuntimeObjectPreviewTypeSymbol RuntimeObjectPreviewType = "symbol" // RuntimeObjectPreviewTypeBigint enum const. RuntimeObjectPreviewTypeBigint RuntimeObjectPreviewType = "bigint" )
type RuntimePrivatePropertyDescriptor ¶
type RuntimePrivatePropertyDescriptor struct { // Name Private property name. Name string `json:"name"` // Value (optional) The value associated with the private property. Value *RuntimeRemoteObject `json:"value,omitempty"` // Get (optional) A function which serves as a getter for the private property, // or `undefined` if there is no getter (accessor descriptors only). Get *RuntimeRemoteObject `json:"get,omitempty"` // Set (optional) A function which serves as a setter for the private property, // or `undefined` if there is no setter (accessor descriptors only). Set *RuntimeRemoteObject `json:"set,omitempty"` }
RuntimePrivatePropertyDescriptor (experimental) Object private field descriptor.
type RuntimePropertyDescriptor ¶
type RuntimePropertyDescriptor struct { // Name Property name or symbol description. Name string `json:"name"` // Value (optional) The value associated with the property. Value *RuntimeRemoteObject `json:"value,omitempty"` // Writable (optional) True if the value associated with the property may be changed (data descriptors only). Writable bool `json:"writable,omitempty"` // Get (optional) A function which serves as a getter for the property, or `undefined` if there is no getter // (accessor descriptors only). Get *RuntimeRemoteObject `json:"get,omitempty"` // Set (optional) A function which serves as a setter for the property, or `undefined` if there is no setter // (accessor descriptors only). Set *RuntimeRemoteObject `json:"set,omitempty"` // Configurable True if the type of this property descriptor may be changed and if the property may be // deleted from the corresponding object. Configurable bool `json:"configurable"` // Enumerable True if this property shows up during enumeration of the properties on the corresponding // object. Enumerable bool `json:"enumerable"` // WasThrown (optional) True if the result was thrown during the evaluation. WasThrown bool `json:"wasThrown,omitempty"` // IsOwn (optional) True if the property is owned for the object. IsOwn bool `json:"isOwn,omitempty"` // Symbol (optional) Property symbol object, if the property is of the `symbol` type. Symbol *RuntimeRemoteObject `json:"symbol,omitempty"` }
RuntimePropertyDescriptor Object property descriptor.
type RuntimePropertyPreview ¶
type RuntimePropertyPreview struct { // Name Property name. Name string `json:"name"` // Type Object type. Accessor means that the property itself is an accessor property. Type RuntimePropertyPreviewType `json:"type"` // Value (optional) User-friendly property value string. Value string `json:"value,omitempty"` // ValuePreview (optional) Nested value preview. ValuePreview *RuntimeObjectPreview `json:"valuePreview,omitempty"` // Subtype (optional) Object subtype hint. Specified for `object` type values only. Subtype RuntimePropertyPreviewSubtype `json:"subtype,omitempty"` }
RuntimePropertyPreview (experimental) ...
type RuntimePropertyPreviewSubtype ¶
type RuntimePropertyPreviewSubtype string
RuntimePropertyPreviewSubtype enum.
const ( // RuntimePropertyPreviewSubtypeArray enum const. RuntimePropertyPreviewSubtypeArray RuntimePropertyPreviewSubtype = "array" // RuntimePropertyPreviewSubtypeNull enum const. RuntimePropertyPreviewSubtypeNull RuntimePropertyPreviewSubtype = "null" // RuntimePropertyPreviewSubtypeNode enum const. RuntimePropertyPreviewSubtypeNode RuntimePropertyPreviewSubtype = "node" // RuntimePropertyPreviewSubtypeRegexp enum const. RuntimePropertyPreviewSubtypeRegexp RuntimePropertyPreviewSubtype = "regexp" // RuntimePropertyPreviewSubtypeDate enum const. RuntimePropertyPreviewSubtypeDate RuntimePropertyPreviewSubtype = "date" // RuntimePropertyPreviewSubtypeMap enum const. RuntimePropertyPreviewSubtypeMap RuntimePropertyPreviewSubtype = "map" // RuntimePropertyPreviewSubtypeSet enum const. RuntimePropertyPreviewSubtypeSet RuntimePropertyPreviewSubtype = "set" // RuntimePropertyPreviewSubtypeWeakmap enum const. RuntimePropertyPreviewSubtypeWeakmap RuntimePropertyPreviewSubtype = "weakmap" // RuntimePropertyPreviewSubtypeWeakset enum const. RuntimePropertyPreviewSubtypeWeakset RuntimePropertyPreviewSubtype = "weakset" // RuntimePropertyPreviewSubtypeIterator enum const. RuntimePropertyPreviewSubtypeIterator RuntimePropertyPreviewSubtype = "iterator" // RuntimePropertyPreviewSubtypeGenerator enum const. RuntimePropertyPreviewSubtypeGenerator RuntimePropertyPreviewSubtype = "generator" // RuntimePropertyPreviewSubtypeError enum const. RuntimePropertyPreviewSubtypeError RuntimePropertyPreviewSubtype = "error" // RuntimePropertyPreviewSubtypeProxy enum const. RuntimePropertyPreviewSubtypeProxy RuntimePropertyPreviewSubtype = "proxy" // RuntimePropertyPreviewSubtypePromise enum const. RuntimePropertyPreviewSubtypePromise RuntimePropertyPreviewSubtype = "promise" // RuntimePropertyPreviewSubtypeTypedarray enum const. RuntimePropertyPreviewSubtypeTypedarray RuntimePropertyPreviewSubtype = "typedarray" // RuntimePropertyPreviewSubtypeArraybuffer enum const. RuntimePropertyPreviewSubtypeArraybuffer RuntimePropertyPreviewSubtype = "arraybuffer" // RuntimePropertyPreviewSubtypeDataview enum const. RuntimePropertyPreviewSubtypeDataview RuntimePropertyPreviewSubtype = "dataview" // RuntimePropertyPreviewSubtypeWebassemblymemory enum const. RuntimePropertyPreviewSubtypeWebassemblymemory RuntimePropertyPreviewSubtype = "webassemblymemory" // RuntimePropertyPreviewSubtypeWasmvalue enum const. RuntimePropertyPreviewSubtypeWasmvalue RuntimePropertyPreviewSubtype = "wasmvalue" )
type RuntimePropertyPreviewType ¶
type RuntimePropertyPreviewType string
RuntimePropertyPreviewType enum.
const ( // RuntimePropertyPreviewTypeObject enum const. RuntimePropertyPreviewTypeObject RuntimePropertyPreviewType = "object" // RuntimePropertyPreviewTypeFunction enum const. RuntimePropertyPreviewTypeFunction RuntimePropertyPreviewType = "function" // RuntimePropertyPreviewTypeUndefined enum const. RuntimePropertyPreviewTypeUndefined RuntimePropertyPreviewType = "undefined" // RuntimePropertyPreviewTypeString enum const. RuntimePropertyPreviewTypeString RuntimePropertyPreviewType = "string" // RuntimePropertyPreviewTypeNumber enum const. RuntimePropertyPreviewTypeNumber RuntimePropertyPreviewType = "number" // RuntimePropertyPreviewTypeBoolean enum const. RuntimePropertyPreviewTypeBoolean RuntimePropertyPreviewType = "boolean" // RuntimePropertyPreviewTypeSymbol enum const. RuntimePropertyPreviewTypeSymbol RuntimePropertyPreviewType = "symbol" // RuntimePropertyPreviewTypeAccessor enum const. RuntimePropertyPreviewTypeAccessor RuntimePropertyPreviewType = "accessor" // RuntimePropertyPreviewTypeBigint enum const. RuntimePropertyPreviewTypeBigint RuntimePropertyPreviewType = "bigint" )
type RuntimeQueryObjects ¶
type RuntimeQueryObjects struct { // PrototypeObjectID Identifier of the prototype to return objects for. PrototypeObjectID RuntimeRemoteObjectID `json:"prototypeObjectId"` // ObjectGroup (optional) Symbolic group name that can be used to release the results. ObjectGroup string `json:"objectGroup,omitempty"` }
RuntimeQueryObjects ...
func (RuntimeQueryObjects) Call ¶
func (m RuntimeQueryObjects) Call(c Client) (*RuntimeQueryObjectsResult, error)
Call the request.
func (RuntimeQueryObjects) ProtoReq ¶ added in v0.74.0
func (m RuntimeQueryObjects) ProtoReq() string
ProtoReq name.
type RuntimeQueryObjectsResult ¶
type RuntimeQueryObjectsResult struct { // Objects Array with objects. Objects *RuntimeRemoteObject `json:"objects"` }
RuntimeQueryObjectsResult ...
type RuntimeReleaseObject ¶
type RuntimeReleaseObject struct { // ObjectID Identifier of the object to release. ObjectID RuntimeRemoteObjectID `json:"objectId"` }
RuntimeReleaseObject Releases remote object with given id.
func (RuntimeReleaseObject) Call ¶
func (m RuntimeReleaseObject) Call(c Client) error
Call sends the request.
func (RuntimeReleaseObject) ProtoReq ¶ added in v0.74.0
func (m RuntimeReleaseObject) ProtoReq() string
ProtoReq name.
type RuntimeReleaseObjectGroup ¶
type RuntimeReleaseObjectGroup struct { // ObjectGroup Symbolic object group name. ObjectGroup string `json:"objectGroup"` }
RuntimeReleaseObjectGroup Releases all remote objects that belong to a given group.
func (RuntimeReleaseObjectGroup) Call ¶
func (m RuntimeReleaseObjectGroup) Call(c Client) error
Call sends the request.
func (RuntimeReleaseObjectGroup) ProtoReq ¶ added in v0.74.0
func (m RuntimeReleaseObjectGroup) ProtoReq() string
ProtoReq name.
type RuntimeRemoteObject ¶
type RuntimeRemoteObject struct { // Type Object type. Type RuntimeRemoteObjectType `json:"type"` // Subtype (optional) Object subtype hint. Specified for `object` type values only. // NOTE: If you change anything here, make sure to also update // `subtype` in `ObjectPreview` and `PropertyPreview` below. Subtype RuntimeRemoteObjectSubtype `json:"subtype,omitempty"` // ClassName (optional) Object class (constructor) name. Specified for `object` type values only. ClassName string `json:"className,omitempty"` // Value (optional) Remote object value in case of primitive values or JSON values (if it was requested). Value gson.JSON `json:"value,omitempty"` // UnserializableValue (optional) Primitive value which can not be JSON-stringified does not have `value`, but gets this // property. UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"` // Description (optional) String representation of the object. Description string `json:"description,omitempty"` // DeepSerializedValue (experimental) (optional) Deep serialized value. DeepSerializedValue *RuntimeDeepSerializedValue `json:"deepSerializedValue,omitempty"` // ObjectID (optional) Unique object identifier (for non-primitive values). ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"` // Preview (experimental) (optional) Preview containing abbreviated property values. Specified for `object` type values only. Preview *RuntimeObjectPreview `json:"preview,omitempty"` // CustomPreview (experimental) (optional) ... CustomPreview *RuntimeCustomPreview `json:"customPreview,omitempty"` }
RuntimeRemoteObject Mirror object referencing original JavaScript object.
type RuntimeRemoteObjectID ¶
type RuntimeRemoteObjectID string
RuntimeRemoteObjectID Unique object identifier.
type RuntimeRemoteObjectSubtype ¶
type RuntimeRemoteObjectSubtype string
RuntimeRemoteObjectSubtype enum.
const ( // RuntimeRemoteObjectSubtypeArray enum const. RuntimeRemoteObjectSubtypeArray RuntimeRemoteObjectSubtype = "array" // RuntimeRemoteObjectSubtypeNull enum const. RuntimeRemoteObjectSubtypeNull RuntimeRemoteObjectSubtype = "null" // RuntimeRemoteObjectSubtypeNode enum const. RuntimeRemoteObjectSubtypeNode RuntimeRemoteObjectSubtype = "node" // RuntimeRemoteObjectSubtypeRegexp enum const. RuntimeRemoteObjectSubtypeRegexp RuntimeRemoteObjectSubtype = "regexp" // RuntimeRemoteObjectSubtypeDate enum const. RuntimeRemoteObjectSubtypeDate RuntimeRemoteObjectSubtype = "date" // RuntimeRemoteObjectSubtypeMap enum const. RuntimeRemoteObjectSubtypeMap RuntimeRemoteObjectSubtype = "map" // RuntimeRemoteObjectSubtypeSet enum const. RuntimeRemoteObjectSubtypeSet RuntimeRemoteObjectSubtype = "set" // RuntimeRemoteObjectSubtypeWeakmap enum const. RuntimeRemoteObjectSubtypeWeakmap RuntimeRemoteObjectSubtype = "weakmap" // RuntimeRemoteObjectSubtypeWeakset enum const. RuntimeRemoteObjectSubtypeWeakset RuntimeRemoteObjectSubtype = "weakset" // RuntimeRemoteObjectSubtypeIterator enum const. RuntimeRemoteObjectSubtypeIterator RuntimeRemoteObjectSubtype = "iterator" // RuntimeRemoteObjectSubtypeGenerator enum const. RuntimeRemoteObjectSubtypeGenerator RuntimeRemoteObjectSubtype = "generator" // RuntimeRemoteObjectSubtypeError enum const. RuntimeRemoteObjectSubtypeError RuntimeRemoteObjectSubtype = "error" // RuntimeRemoteObjectSubtypeProxy enum const. RuntimeRemoteObjectSubtypeProxy RuntimeRemoteObjectSubtype = "proxy" // RuntimeRemoteObjectSubtypePromise enum const. RuntimeRemoteObjectSubtypePromise RuntimeRemoteObjectSubtype = "promise" // RuntimeRemoteObjectSubtypeTypedarray enum const. RuntimeRemoteObjectSubtypeTypedarray RuntimeRemoteObjectSubtype = "typedarray" // RuntimeRemoteObjectSubtypeArraybuffer enum const. RuntimeRemoteObjectSubtypeArraybuffer RuntimeRemoteObjectSubtype = "arraybuffer" // RuntimeRemoteObjectSubtypeDataview enum const. RuntimeRemoteObjectSubtypeDataview RuntimeRemoteObjectSubtype = "dataview" // RuntimeRemoteObjectSubtypeWebassemblymemory enum const. RuntimeRemoteObjectSubtypeWebassemblymemory RuntimeRemoteObjectSubtype = "webassemblymemory" // RuntimeRemoteObjectSubtypeWasmvalue enum const. RuntimeRemoteObjectSubtypeWasmvalue RuntimeRemoteObjectSubtype = "wasmvalue" )
type RuntimeRemoteObjectType ¶
type RuntimeRemoteObjectType string
RuntimeRemoteObjectType enum.
const ( // RuntimeRemoteObjectTypeObject enum const. RuntimeRemoteObjectTypeObject RuntimeRemoteObjectType = "object" // RuntimeRemoteObjectTypeFunction enum const. RuntimeRemoteObjectTypeFunction RuntimeRemoteObjectType = "function" // RuntimeRemoteObjectTypeUndefined enum const. RuntimeRemoteObjectTypeUndefined RuntimeRemoteObjectType = "undefined" // RuntimeRemoteObjectTypeString enum const. RuntimeRemoteObjectTypeString RuntimeRemoteObjectType = "string" // RuntimeRemoteObjectTypeNumber enum const. RuntimeRemoteObjectTypeNumber RuntimeRemoteObjectType = "number" // RuntimeRemoteObjectTypeBoolean enum const. RuntimeRemoteObjectTypeBoolean RuntimeRemoteObjectType = "boolean" // RuntimeRemoteObjectTypeSymbol enum const. RuntimeRemoteObjectTypeSymbol RuntimeRemoteObjectType = "symbol" // RuntimeRemoteObjectTypeBigint enum const. RuntimeRemoteObjectTypeBigint RuntimeRemoteObjectType = "bigint" )
type RuntimeRemoveBinding ¶
type RuntimeRemoveBinding struct { // Name ... Name string `json:"name"` }
RuntimeRemoveBinding This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
func (RuntimeRemoveBinding) Call ¶
func (m RuntimeRemoveBinding) Call(c Client) error
Call sends the request.
func (RuntimeRemoveBinding) ProtoReq ¶ added in v0.74.0
func (m RuntimeRemoveBinding) ProtoReq() string
ProtoReq name.
type RuntimeRunIfWaitingForDebugger ¶
type RuntimeRunIfWaitingForDebugger struct{}
RuntimeRunIfWaitingForDebugger Tells inspected instance to run if it was waiting for debugger to attach.
func (RuntimeRunIfWaitingForDebugger) Call ¶
func (m RuntimeRunIfWaitingForDebugger) Call(c Client) error
Call sends the request.
func (RuntimeRunIfWaitingForDebugger) ProtoReq ¶ added in v0.74.0
func (m RuntimeRunIfWaitingForDebugger) ProtoReq() string
ProtoReq name.
type RuntimeRunScript ¶
type RuntimeRunScript struct { // ScriptID Id of the script to run. ScriptID RuntimeScriptID `json:"scriptId"` // ExecutionContextID (optional) Specifies in which execution context to perform script run. If the parameter is omitted the // evaluation will be performed in the context of the inspected page. ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"` // ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. ObjectGroup string `json:"objectGroup,omitempty"` // Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause // execution. Overrides `setPauseOnException` state. Silent bool `json:"silent,omitempty"` // IncludeCommandLineAPI (optional) Determines whether Command Line API should be available during the evaluation. IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // ReturnByValue (optional) Whether the result is expected to be a JSON object which should be sent by value. ReturnByValue bool `json:"returnByValue,omitempty"` // GeneratePreview (optional) Whether preview should be generated for the result. GeneratePreview bool `json:"generatePreview,omitempty"` // AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is // resolved. AwaitPromise bool `json:"awaitPromise,omitempty"` }
RuntimeRunScript Runs script with given id in a given context.
func (RuntimeRunScript) Call ¶
func (m RuntimeRunScript) Call(c Client) (*RuntimeRunScriptResult, error)
Call the request.
func (RuntimeRunScript) ProtoReq ¶ added in v0.74.0
func (m RuntimeRunScript) ProtoReq() string
ProtoReq name.
type RuntimeRunScriptResult ¶
type RuntimeRunScriptResult struct { // Result Run result. Result *RuntimeRemoteObject `json:"result"` // ExceptionDetails (optional) Exception details. ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"` }
RuntimeRunScriptResult ...
type RuntimeSerializationOptions ¶ added in v0.115.0
type RuntimeSerializationOptions struct { // Serialization ... Serialization RuntimeSerializationOptionsSerialization `json:"serialization"` // MaxDepth (optional) Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode. MaxDepth *int `json:"maxDepth,omitempty"` // AdditionalParameters (optional) Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM // serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. // Values can be only of type string or integer. AdditionalParameters map[string]gson.JSON `json:"additionalParameters,omitempty"` }
RuntimeSerializationOptions Represents options for serialization. Overrides `generatePreview` and `returnByValue`.
type RuntimeSerializationOptionsSerialization ¶ added in v0.115.0
type RuntimeSerializationOptionsSerialization string
RuntimeSerializationOptionsSerialization enum.
const ( // RuntimeSerializationOptionsSerializationDeep enum const. RuntimeSerializationOptionsSerializationDeep RuntimeSerializationOptionsSerialization = "deep" // RuntimeSerializationOptionsSerializationJSON enum const. RuntimeSerializationOptionsSerializationJSON RuntimeSerializationOptionsSerialization = "json" // RuntimeSerializationOptionsSerializationIDOnly enum const. RuntimeSerializationOptionsSerializationIDOnly RuntimeSerializationOptionsSerialization = "idOnly" )
type RuntimeSetAsyncCallStackDepth ¶
type RuntimeSetAsyncCallStackDepth struct { // MaxDepth Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async // call stacks (default). MaxDepth int `json:"maxDepth"` }
RuntimeSetAsyncCallStackDepth Enables or disables async call stacks tracking.
func (RuntimeSetAsyncCallStackDepth) Call ¶
func (m RuntimeSetAsyncCallStackDepth) Call(c Client) error
Call sends the request.
func (RuntimeSetAsyncCallStackDepth) ProtoReq ¶ added in v0.74.0
func (m RuntimeSetAsyncCallStackDepth) ProtoReq() string
ProtoReq name.
type RuntimeSetCustomObjectFormatterEnabled ¶
type RuntimeSetCustomObjectFormatterEnabled struct { // Enabled ... Enabled bool `json:"enabled"` }
RuntimeSetCustomObjectFormatterEnabled (experimental) ...
func (RuntimeSetCustomObjectFormatterEnabled) Call ¶
func (m RuntimeSetCustomObjectFormatterEnabled) Call(c Client) error
Call sends the request.
func (RuntimeSetCustomObjectFormatterEnabled) ProtoReq ¶ added in v0.74.0
func (m RuntimeSetCustomObjectFormatterEnabled) ProtoReq() string
ProtoReq name.
type RuntimeSetMaxCallStackSizeToCapture ¶
type RuntimeSetMaxCallStackSizeToCapture struct { // Size ... Size int `json:"size"` }
RuntimeSetMaxCallStackSizeToCapture (experimental) ...
func (RuntimeSetMaxCallStackSizeToCapture) Call ¶
func (m RuntimeSetMaxCallStackSizeToCapture) Call(c Client) error
Call sends the request.
func (RuntimeSetMaxCallStackSizeToCapture) ProtoReq ¶ added in v0.74.0
func (m RuntimeSetMaxCallStackSizeToCapture) ProtoReq() string
ProtoReq name.
type RuntimeStackTrace ¶
type RuntimeStackTrace struct { // Description (optional) String label of this stack trace. For async traces this may be a name of the function that // initiated the async call. Description string `json:"description,omitempty"` // CallFrames JavaScript function name. CallFrames []*RuntimeCallFrame `json:"callFrames"` // Parent (optional) Asynchronous JavaScript stack trace that preceded this stack, if available. Parent *RuntimeStackTrace `json:"parent,omitempty"` // ParentID (experimental) (optional) Asynchronous JavaScript stack trace that preceded this stack, if available. ParentID *RuntimeStackTraceID `json:"parentId,omitempty"` }
RuntimeStackTrace Call frames for assertions or error messages.
type RuntimeStackTraceID ¶
type RuntimeStackTraceID struct { // ID ... ID string `json:"id"` // DebuggerID (optional) ... DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId,omitempty"` }
RuntimeStackTraceID (experimental) If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.
type RuntimeTerminateExecution ¶
type RuntimeTerminateExecution struct{}
RuntimeTerminateExecution (experimental) Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
func (RuntimeTerminateExecution) Call ¶
func (m RuntimeTerminateExecution) Call(c Client) error
Call sends the request.
func (RuntimeTerminateExecution) ProtoReq ¶ added in v0.74.0
func (m RuntimeTerminateExecution) ProtoReq() string
ProtoReq name.
type RuntimeTimestamp ¶
type RuntimeTimestamp float64
RuntimeTimestamp Number of milliseconds since epoch.
type RuntimeUniqueDebuggerID ¶
type RuntimeUniqueDebuggerID string
RuntimeUniqueDebuggerID (experimental) Unique identifier of current debugger.
type RuntimeUnserializableValue ¶
type RuntimeUnserializableValue string
RuntimeUnserializableValue Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.
type SchemaDomain ¶
type SchemaDomain struct { // Name Domain name. Name string `json:"name"` // Version Domain version. Version string `json:"version"` }
SchemaDomain Description of the protocol domain.
type SchemaGetDomains ¶
type SchemaGetDomains struct{}
SchemaGetDomains Returns supported domains.
func (SchemaGetDomains) Call ¶
func (m SchemaGetDomains) Call(c Client) (*SchemaGetDomainsResult, error)
Call the request.
func (SchemaGetDomains) ProtoReq ¶ added in v0.74.0
func (m SchemaGetDomains) ProtoReq() string
ProtoReq name.
type SchemaGetDomainsResult ¶
type SchemaGetDomainsResult struct { // Domains List of supported domains. Domains []*SchemaDomain `json:"domains"` }
SchemaGetDomainsResult ...
type SecurityCertificateError ¶
type SecurityCertificateError struct { // EventID The ID of the event. EventID int `json:"eventId"` // ErrorType The type of the error. ErrorType string `json:"errorType"` // RequestURL The url that was requested. RequestURL string `json:"requestURL"` }
SecurityCertificateError (deprecated) There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the `handleCertificateError` command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.
func (SecurityCertificateError) ProtoEvent ¶ added in v0.72.0
func (evt SecurityCertificateError) ProtoEvent() string
ProtoEvent name.
type SecurityCertificateErrorAction ¶
type SecurityCertificateErrorAction string
SecurityCertificateErrorAction The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.
const ( // SecurityCertificateErrorActionContinue enum const. SecurityCertificateErrorActionContinue SecurityCertificateErrorAction = "continue" // SecurityCertificateErrorActionCancel enum const. SecurityCertificateErrorActionCancel SecurityCertificateErrorAction = "cancel" )
type SecurityCertificateID ¶
type SecurityCertificateID int
SecurityCertificateID An internal certificate ID value.
type SecurityCertificateSecurityState ¶
type SecurityCertificateSecurityState struct { // Protocol name (e.g. "TLS 1.2" or "QUIC"). Protocol string `json:"protocol"` // KeyExchange Key Exchange used by the connection, or the empty string if not applicable. KeyExchange string `json:"keyExchange"` // KeyExchangeGroup (optional) (EC)DH group used by the connection, if applicable. KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"` // Cipher name. Cipher string `json:"cipher"` // Mac (optional) TLS MAC. Note that AEAD ciphers do not have separate MACs. Mac string `json:"mac,omitempty"` // Certificate Page certificate. Certificate []string `json:"certificate"` // SubjectName Certificate subject name. SubjectName string `json:"subjectName"` // Issuer Name of the issuing CA. Issuer string `json:"issuer"` // ValidFrom Certificate valid from date. ValidFrom TimeSinceEpoch `json:"validFrom"` // ValidTo Certificate valid to (expiration) date ValidTo TimeSinceEpoch `json:"validTo"` // CertificateNetworkError (optional) The highest priority network error code, if the certificate has an error. CertificateNetworkError string `json:"certificateNetworkError,omitempty"` // CertificateHasWeakSignature True if the certificate uses a weak signature algorithm. CertificateHasWeakSignature bool `json:"certificateHasWeakSignature"` // CertificateHasSha1Signature True if the certificate has a SHA1 signature in the chain. CertificateHasSha1Signature bool `json:"certificateHasSha1Signature"` // ModernSSL True if modern SSL ModernSSL bool `json:"modernSSL"` // ObsoleteSslProtocol True if the connection is using an obsolete SSL protocol. ObsoleteSslProtocol bool `json:"obsoleteSslProtocol"` // ObsoleteSslKeyExchange True if the connection is using an obsolete SSL key exchange. ObsoleteSslKeyExchange bool `json:"obsoleteSslKeyExchange"` // ObsoleteSslCipher True if the connection is using an obsolete SSL cipher. ObsoleteSslCipher bool `json:"obsoleteSslCipher"` // ObsoleteSslSignature True if the connection is using an obsolete SSL signature. ObsoleteSslSignature bool `json:"obsoleteSslSignature"` }
SecurityCertificateSecurityState (experimental) Details about the security state of the page certificate.
type SecurityDisable ¶
type SecurityDisable struct{}
SecurityDisable Disables tracking security state changes.
func (SecurityDisable) ProtoReq ¶ added in v0.74.0
func (m SecurityDisable) ProtoReq() string
ProtoReq name.
type SecurityEnable ¶
type SecurityEnable struct{}
SecurityEnable Enables tracking security state changes.
func (SecurityEnable) ProtoReq ¶ added in v0.74.0
func (m SecurityEnable) ProtoReq() string
ProtoReq name.
type SecurityHandleCertificateError ¶
type SecurityHandleCertificateError struct { // EventID The ID of the event. EventID int `json:"eventId"` // Action The action to take on the certificate error. Action SecurityCertificateErrorAction `json:"action"` }
SecurityHandleCertificateError (deprecated) Handles a certificate error that fired a certificateError event.
func (SecurityHandleCertificateError) Call ¶
func (m SecurityHandleCertificateError) Call(c Client) error
Call sends the request.
func (SecurityHandleCertificateError) ProtoReq ¶ added in v0.74.0
func (m SecurityHandleCertificateError) ProtoReq() string
ProtoReq name.
type SecurityInsecureContentStatus ¶
type SecurityInsecureContentStatus struct { // RanMixedContent Always false. RanMixedContent bool `json:"ranMixedContent"` // DisplayedMixedContent Always false. DisplayedMixedContent bool `json:"displayedMixedContent"` // ContainedMixedForm Always false. ContainedMixedForm bool `json:"containedMixedForm"` // RanContentWithCertErrors Always false. RanContentWithCertErrors bool `json:"ranContentWithCertErrors"` // DisplayedContentWithCertErrors Always false. DisplayedContentWithCertErrors bool `json:"displayedContentWithCertErrors"` // RanInsecureContentStyle Always set to unknown. RanInsecureContentStyle SecuritySecurityState `json:"ranInsecureContentStyle"` // DisplayedInsecureContentStyle Always set to unknown. DisplayedInsecureContentStyle SecuritySecurityState `json:"displayedInsecureContentStyle"` }
SecurityInsecureContentStatus (deprecated) Information about insecure content on the page.
type SecurityMixedContentType ¶
type SecurityMixedContentType string
SecurityMixedContentType A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories
const ( // SecurityMixedContentTypeBlockable enum const. SecurityMixedContentTypeBlockable SecurityMixedContentType = "blockable" // SecurityMixedContentTypeOptionallyBlockable enum const. SecurityMixedContentTypeOptionallyBlockable SecurityMixedContentType = "optionally-blockable" // SecurityMixedContentTypeNone enum const. SecurityMixedContentTypeNone SecurityMixedContentType = "none" )
type SecuritySafetyTipInfo ¶
type SecuritySafetyTipInfo struct { // SafetyTipStatus Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. SafetyTipStatus SecuritySafetyTipStatus `json:"safetyTipStatus"` // SafeURL (optional) The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. SafeURL string `json:"safeUrl,omitempty"` }
SecuritySafetyTipInfo (experimental) ...
type SecuritySafetyTipStatus ¶
type SecuritySafetyTipStatus string
SecuritySafetyTipStatus (experimental) ...
const ( // SecuritySafetyTipStatusBadReputation enum const. SecuritySafetyTipStatusBadReputation SecuritySafetyTipStatus = "badReputation" // SecuritySafetyTipStatusLookalike enum const. SecuritySafetyTipStatusLookalike SecuritySafetyTipStatus = "lookalike" )
type SecuritySecurityState ¶
type SecuritySecurityState string
SecuritySecurityState The security level of a page or resource.
const ( // SecuritySecurityStateUnknown enum const. SecuritySecurityStateUnknown SecuritySecurityState = "unknown" // SecuritySecurityStateNeutral enum const. SecuritySecurityStateNeutral SecuritySecurityState = "neutral" // SecuritySecurityStateInsecure enum const. SecuritySecurityStateInsecure SecuritySecurityState = "insecure" // SecuritySecurityStateSecure enum const. SecuritySecurityStateSecure SecuritySecurityState = "secure" // SecuritySecurityStateInfo enum const. SecuritySecurityStateInfo SecuritySecurityState = "info" // SecuritySecurityStateInsecureBroken enum const. SecuritySecurityStateInsecureBroken SecuritySecurityState = "insecure-broken" )
type SecuritySecurityStateChanged ¶
type SecuritySecurityStateChanged struct { // SecurityState Security state. SecurityState SecuritySecurityState `json:"securityState"` // SchemeIsCryptographic (deprecated) True if the page was loaded over cryptographic transport such as HTTPS. SchemeIsCryptographic bool `json:"schemeIsCryptographic"` // Explanations (deprecated) Previously a list of explanations for the security state. Now always // empty. Explanations []*SecuritySecurityStateExplanation `json:"explanations"` // InsecureContentStatus (deprecated) Information about insecure content on the page. InsecureContentStatus *SecurityInsecureContentStatus `json:"insecureContentStatus"` // Summary (deprecated) (optional) Overrides user-visible description of the state. Always omitted. Summary string `json:"summary,omitempty"` }
SecuritySecurityStateChanged (deprecated) The security state of the page changed. No longer being sent.
func (SecuritySecurityStateChanged) ProtoEvent ¶ added in v0.72.0
func (evt SecuritySecurityStateChanged) ProtoEvent() string
ProtoEvent name.
type SecuritySecurityStateExplanation ¶
type SecuritySecurityStateExplanation struct { // SecurityState Security state representing the severity of the factor being explained. SecurityState SecuritySecurityState `json:"securityState"` // Title describing the type of factor. Title string `json:"title"` // Summary Short phrase describing the type of factor. Summary string `json:"summary"` // Description Full text explanation of the factor. Description string `json:"description"` // MixedContentType The type of mixed content described by the explanation. MixedContentType SecurityMixedContentType `json:"mixedContentType"` // Certificate Page certificate. Certificate []string `json:"certificate"` // Recommendations (optional) Recommendations to fix any issues. Recommendations []string `json:"recommendations,omitempty"` }
SecuritySecurityStateExplanation An explanation of an factor contributing to the security state.
type SecuritySetIgnoreCertificateErrors ¶
type SecuritySetIgnoreCertificateErrors struct { // Ignore If true, all certificate errors will be ignored. Ignore bool `json:"ignore"` }
SecuritySetIgnoreCertificateErrors Enable/disable whether all certificate errors should be ignored.
func (SecuritySetIgnoreCertificateErrors) Call ¶
func (m SecuritySetIgnoreCertificateErrors) Call(c Client) error
Call sends the request.
func (SecuritySetIgnoreCertificateErrors) ProtoReq ¶ added in v0.74.0
func (m SecuritySetIgnoreCertificateErrors) ProtoReq() string
ProtoReq name.
type SecuritySetOverrideCertificateErrors ¶
type SecuritySetOverrideCertificateErrors struct { // Override If true, certificate errors will be overridden. Override bool `json:"override"` }
SecuritySetOverrideCertificateErrors (deprecated) 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 (SecuritySetOverrideCertificateErrors) Call ¶
func (m SecuritySetOverrideCertificateErrors) Call(c Client) error
Call sends the request.
func (SecuritySetOverrideCertificateErrors) ProtoReq ¶ added in v0.74.0
func (m SecuritySetOverrideCertificateErrors) ProtoReq() string
ProtoReq name.
type SecurityVisibleSecurityState ¶
type SecurityVisibleSecurityState struct { // SecurityState The security level of the page. SecurityState SecuritySecurityState `json:"securityState"` // CertificateSecurityState (optional) Security state details about the page certificate. CertificateSecurityState *SecurityCertificateSecurityState `json:"certificateSecurityState,omitempty"` // SafetyTipInfo (optional) The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown. SafetyTipInfo *SecuritySafetyTipInfo `json:"safetyTipInfo,omitempty"` // SecurityStateIssueIDs Array of security state issues ids. SecurityStateIssueIDs []string `json:"securityStateIssueIds"` }
SecurityVisibleSecurityState (experimental) Security state information about the page.
type SecurityVisibleSecurityStateChanged ¶
type SecurityVisibleSecurityStateChanged struct { // VisibleSecurityState Security state information about the page. VisibleSecurityState *SecurityVisibleSecurityState `json:"visibleSecurityState"` }
SecurityVisibleSecurityStateChanged (experimental) The security state of the page changed.
func (SecurityVisibleSecurityStateChanged) ProtoEvent ¶ added in v0.72.0
func (evt SecurityVisibleSecurityStateChanged) ProtoEvent() string
ProtoEvent name.
type ServiceWorkerDeliverPushMessage ¶
type ServiceWorkerDeliverPushMessage struct { // Origin ... Origin string `json:"origin"` // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // Data ... Data string `json:"data"` }
ServiceWorkerDeliverPushMessage ...
func (ServiceWorkerDeliverPushMessage) Call ¶
func (m ServiceWorkerDeliverPushMessage) Call(c Client) error
Call sends the request.
func (ServiceWorkerDeliverPushMessage) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerDeliverPushMessage) ProtoReq() string
ProtoReq name.
type ServiceWorkerDisable ¶
type ServiceWorkerDisable struct{}
ServiceWorkerDisable ...
func (ServiceWorkerDisable) Call ¶
func (m ServiceWorkerDisable) Call(c Client) error
Call sends the request.
func (ServiceWorkerDisable) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerDisable) ProtoReq() string
ProtoReq name.
type ServiceWorkerDispatchPeriodicSyncEvent ¶
type ServiceWorkerDispatchPeriodicSyncEvent struct { // Origin ... Origin string `json:"origin"` // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // Tag ... Tag string `json:"tag"` }
ServiceWorkerDispatchPeriodicSyncEvent ...
func (ServiceWorkerDispatchPeriodicSyncEvent) Call ¶
func (m ServiceWorkerDispatchPeriodicSyncEvent) Call(c Client) error
Call sends the request.
func (ServiceWorkerDispatchPeriodicSyncEvent) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerDispatchPeriodicSyncEvent) ProtoReq() string
ProtoReq name.
type ServiceWorkerDispatchSyncEvent ¶
type ServiceWorkerDispatchSyncEvent struct { // Origin ... Origin string `json:"origin"` // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // Tag ... Tag string `json:"tag"` // LastChance ... LastChance bool `json:"lastChance"` }
ServiceWorkerDispatchSyncEvent ...
func (ServiceWorkerDispatchSyncEvent) Call ¶
func (m ServiceWorkerDispatchSyncEvent) Call(c Client) error
Call sends the request.
func (ServiceWorkerDispatchSyncEvent) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerDispatchSyncEvent) ProtoReq() string
ProtoReq name.
type ServiceWorkerEnable ¶
type ServiceWorkerEnable struct{}
ServiceWorkerEnable ...
func (ServiceWorkerEnable) Call ¶
func (m ServiceWorkerEnable) Call(c Client) error
Call sends the request.
func (ServiceWorkerEnable) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerEnable) ProtoReq() string
ProtoReq name.
type ServiceWorkerInspectWorker ¶
type ServiceWorkerInspectWorker struct { // VersionID ... VersionID string `json:"versionId"` }
ServiceWorkerInspectWorker ...
func (ServiceWorkerInspectWorker) Call ¶
func (m ServiceWorkerInspectWorker) Call(c Client) error
Call sends the request.
func (ServiceWorkerInspectWorker) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerInspectWorker) ProtoReq() string
ProtoReq name.
type ServiceWorkerRegistrationID ¶
type ServiceWorkerRegistrationID string
ServiceWorkerRegistrationID ...
type ServiceWorkerServiceWorkerErrorMessage ¶
type ServiceWorkerServiceWorkerErrorMessage struct { // ErrorMessage ... ErrorMessage string `json:"errorMessage"` // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // VersionID ... VersionID string `json:"versionId"` // SourceURL ... SourceURL string `json:"sourceURL"` // LineNumber ... LineNumber int `json:"lineNumber"` // ColumnNumber ... ColumnNumber int `json:"columnNumber"` }
ServiceWorkerServiceWorkerErrorMessage ServiceWorker error message.
type ServiceWorkerServiceWorkerRegistration ¶
type ServiceWorkerServiceWorkerRegistration struct { // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // ScopeURL ... ScopeURL string `json:"scopeURL"` // IsDeleted ... IsDeleted bool `json:"isDeleted"` }
ServiceWorkerServiceWorkerRegistration ServiceWorker registration.
type ServiceWorkerServiceWorkerVersion ¶
type ServiceWorkerServiceWorkerVersion struct { // VersionID ... VersionID string `json:"versionId"` // RegistrationID ... RegistrationID ServiceWorkerRegistrationID `json:"registrationId"` // ScriptURL ... ScriptURL string `json:"scriptURL"` // RunningStatus ... RunningStatus ServiceWorkerServiceWorkerVersionRunningStatus `json:"runningStatus"` // Status ... Status ServiceWorkerServiceWorkerVersionStatus `json:"status"` // ScriptLastModified (optional) The Last-Modified header value of the main script. ScriptLastModified *float64 `json:"scriptLastModified,omitempty"` // ScriptResponseTime (optional) The time at which the response headers of the main script were received from the server. // For cached script it is the last time the cache entry was validated. ScriptResponseTime *float64 `json:"scriptResponseTime,omitempty"` // ControlledClients (optional) ... ControlledClients []TargetTargetID `json:"controlledClients,omitempty"` // TargetID (optional) ... TargetID TargetTargetID `json:"targetId,omitempty"` // RouterRules (optional) ... RouterRules string `json:"routerRules,omitempty"` }
ServiceWorkerServiceWorkerVersion ServiceWorker version.
type ServiceWorkerServiceWorkerVersionRunningStatus ¶
type ServiceWorkerServiceWorkerVersionRunningStatus string
ServiceWorkerServiceWorkerVersionRunningStatus ...
const ( // ServiceWorkerServiceWorkerVersionRunningStatusStopped enum const. ServiceWorkerServiceWorkerVersionRunningStatusStopped ServiceWorkerServiceWorkerVersionRunningStatus = "stopped" // ServiceWorkerServiceWorkerVersionRunningStatusStarting enum const. ServiceWorkerServiceWorkerVersionRunningStatusStarting ServiceWorkerServiceWorkerVersionRunningStatus = "starting" // ServiceWorkerServiceWorkerVersionRunningStatusRunning enum const. ServiceWorkerServiceWorkerVersionRunningStatusRunning ServiceWorkerServiceWorkerVersionRunningStatus = "running" // ServiceWorkerServiceWorkerVersionRunningStatusStopping enum const. ServiceWorkerServiceWorkerVersionRunningStatusStopping ServiceWorkerServiceWorkerVersionRunningStatus = "stopping" )
type ServiceWorkerServiceWorkerVersionStatus ¶
type ServiceWorkerServiceWorkerVersionStatus string
ServiceWorkerServiceWorkerVersionStatus ...
const ( // ServiceWorkerServiceWorkerVersionStatusNew enum const. ServiceWorkerServiceWorkerVersionStatusNew ServiceWorkerServiceWorkerVersionStatus = "new" // ServiceWorkerServiceWorkerVersionStatusInstalling enum const. ServiceWorkerServiceWorkerVersionStatusInstalling ServiceWorkerServiceWorkerVersionStatus = "installing" // ServiceWorkerServiceWorkerVersionStatusInstalled enum const. ServiceWorkerServiceWorkerVersionStatusInstalled ServiceWorkerServiceWorkerVersionStatus = "installed" // ServiceWorkerServiceWorkerVersionStatusActivating enum const. ServiceWorkerServiceWorkerVersionStatusActivating ServiceWorkerServiceWorkerVersionStatus = "activating" // ServiceWorkerServiceWorkerVersionStatusActivated enum const. ServiceWorkerServiceWorkerVersionStatusActivated ServiceWorkerServiceWorkerVersionStatus = "activated" // ServiceWorkerServiceWorkerVersionStatusRedundant enum const. ServiceWorkerServiceWorkerVersionStatusRedundant ServiceWorkerServiceWorkerVersionStatus = "redundant" )
type ServiceWorkerSetForceUpdateOnPageLoad ¶
type ServiceWorkerSetForceUpdateOnPageLoad struct { // ForceUpdateOnPageLoad ... ForceUpdateOnPageLoad bool `json:"forceUpdateOnPageLoad"` }
ServiceWorkerSetForceUpdateOnPageLoad ...
func (ServiceWorkerSetForceUpdateOnPageLoad) Call ¶
func (m ServiceWorkerSetForceUpdateOnPageLoad) Call(c Client) error
Call sends the request.
func (ServiceWorkerSetForceUpdateOnPageLoad) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerSetForceUpdateOnPageLoad) ProtoReq() string
ProtoReq name.
type ServiceWorkerSkipWaiting ¶
type ServiceWorkerSkipWaiting struct { // ScopeURL ... ScopeURL string `json:"scopeURL"` }
ServiceWorkerSkipWaiting ...
func (ServiceWorkerSkipWaiting) Call ¶
func (m ServiceWorkerSkipWaiting) Call(c Client) error
Call sends the request.
func (ServiceWorkerSkipWaiting) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerSkipWaiting) ProtoReq() string
ProtoReq name.
type ServiceWorkerStartWorker ¶
type ServiceWorkerStartWorker struct { // ScopeURL ... ScopeURL string `json:"scopeURL"` }
ServiceWorkerStartWorker ...
func (ServiceWorkerStartWorker) Call ¶
func (m ServiceWorkerStartWorker) Call(c Client) error
Call sends the request.
func (ServiceWorkerStartWorker) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerStartWorker) ProtoReq() string
ProtoReq name.
type ServiceWorkerStopAllWorkers ¶
type ServiceWorkerStopAllWorkers struct{}
ServiceWorkerStopAllWorkers ...
func (ServiceWorkerStopAllWorkers) Call ¶
func (m ServiceWorkerStopAllWorkers) Call(c Client) error
Call sends the request.
func (ServiceWorkerStopAllWorkers) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerStopAllWorkers) ProtoReq() string
ProtoReq name.
type ServiceWorkerStopWorker ¶
type ServiceWorkerStopWorker struct { // VersionID ... VersionID string `json:"versionId"` }
ServiceWorkerStopWorker ...
func (ServiceWorkerStopWorker) Call ¶
func (m ServiceWorkerStopWorker) Call(c Client) error
Call sends the request.
func (ServiceWorkerStopWorker) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerStopWorker) ProtoReq() string
ProtoReq name.
type ServiceWorkerUnregister ¶
type ServiceWorkerUnregister struct { // ScopeURL ... ScopeURL string `json:"scopeURL"` }
ServiceWorkerUnregister ...
func (ServiceWorkerUnregister) Call ¶
func (m ServiceWorkerUnregister) Call(c Client) error
Call sends the request.
func (ServiceWorkerUnregister) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerUnregister) ProtoReq() string
ProtoReq name.
type ServiceWorkerUpdateRegistration ¶
type ServiceWorkerUpdateRegistration struct { // ScopeURL ... ScopeURL string `json:"scopeURL"` }
ServiceWorkerUpdateRegistration ...
func (ServiceWorkerUpdateRegistration) Call ¶
func (m ServiceWorkerUpdateRegistration) Call(c Client) error
Call sends the request.
func (ServiceWorkerUpdateRegistration) ProtoReq ¶ added in v0.74.0
func (m ServiceWorkerUpdateRegistration) ProtoReq() string
ProtoReq name.
type ServiceWorkerWorkerErrorReported ¶
type ServiceWorkerWorkerErrorReported struct { // ErrorMessage ... ErrorMessage *ServiceWorkerServiceWorkerErrorMessage `json:"errorMessage"` }
ServiceWorkerWorkerErrorReported ...
func (ServiceWorkerWorkerErrorReported) ProtoEvent ¶ added in v0.72.0
func (evt ServiceWorkerWorkerErrorReported) ProtoEvent() string
ProtoEvent name.
type ServiceWorkerWorkerRegistrationUpdated ¶
type ServiceWorkerWorkerRegistrationUpdated struct { // Registrations ... Registrations []*ServiceWorkerServiceWorkerRegistration `json:"registrations"` }
ServiceWorkerWorkerRegistrationUpdated ...
func (ServiceWorkerWorkerRegistrationUpdated) ProtoEvent ¶ added in v0.72.0
func (evt ServiceWorkerWorkerRegistrationUpdated) ProtoEvent() string
ProtoEvent name.
type ServiceWorkerWorkerVersionUpdated ¶
type ServiceWorkerWorkerVersionUpdated struct { // Versions ... Versions []*ServiceWorkerServiceWorkerVersion `json:"versions"` }
ServiceWorkerWorkerVersionUpdated ...
func (ServiceWorkerWorkerVersionUpdated) ProtoEvent ¶ added in v0.72.0
func (evt ServiceWorkerWorkerVersionUpdated) ProtoEvent() string
ProtoEvent name.
type Sessionable ¶ added in v0.72.0
type Sessionable interface {
GetSessionID() TargetSessionID
}
Sessionable type has a proto.TargetSessionID for its methods.
type StorageAttributionReportingAggregatableDedupKey ¶ added in v0.115.0
type StorageAttributionReportingAggregatableDedupKey struct { // DedupKey (optional) ... DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"` // Filters ... Filters *StorageAttributionReportingFilterPair `json:"filters"` }
StorageAttributionReportingAggregatableDedupKey (experimental) ...
type StorageAttributionReportingAggregatableResult ¶ added in v0.115.0
type StorageAttributionReportingAggregatableResult string
StorageAttributionReportingAggregatableResult (experimental) ...
const ( // StorageAttributionReportingAggregatableResultSuccess enum const. StorageAttributionReportingAggregatableResultSuccess StorageAttributionReportingAggregatableResult = "success" // StorageAttributionReportingAggregatableResultInternalError enum const. StorageAttributionReportingAggregatableResultInternalError StorageAttributionReportingAggregatableResult = "internalError" // StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination enum const. StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination StorageAttributionReportingAggregatableResult = "noCapacityForAttributionDestination" // StorageAttributionReportingAggregatableResultNoMatchingSources enum const. StorageAttributionReportingAggregatableResultNoMatchingSources StorageAttributionReportingAggregatableResult = "noMatchingSources" // StorageAttributionReportingAggregatableResultExcessiveAttributions enum const. StorageAttributionReportingAggregatableResultExcessiveAttributions StorageAttributionReportingAggregatableResult = "excessiveAttributions" // StorageAttributionReportingAggregatableResultExcessiveReportingOrigins enum const. StorageAttributionReportingAggregatableResultExcessiveReportingOrigins StorageAttributionReportingAggregatableResult = "excessiveReportingOrigins" // StorageAttributionReportingAggregatableResultNoHistograms enum const. StorageAttributionReportingAggregatableResultNoHistograms StorageAttributionReportingAggregatableResult = "noHistograms" // StorageAttributionReportingAggregatableResultInsufficientBudget enum const. StorageAttributionReportingAggregatableResultInsufficientBudget StorageAttributionReportingAggregatableResult = "insufficientBudget" // StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData enum const. StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData StorageAttributionReportingAggregatableResult = "noMatchingSourceFilterData" // StorageAttributionReportingAggregatableResultNotRegistered enum const. StorageAttributionReportingAggregatableResultNotRegistered StorageAttributionReportingAggregatableResult = "notRegistered" // StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy enum const. StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy StorageAttributionReportingAggregatableResult = "prohibitedByBrowserPolicy" // StorageAttributionReportingAggregatableResultDeduplicated enum const. StorageAttributionReportingAggregatableResultDeduplicated StorageAttributionReportingAggregatableResult = "deduplicated" // StorageAttributionReportingAggregatableResultReportWindowPassed enum const. StorageAttributionReportingAggregatableResultReportWindowPassed StorageAttributionReportingAggregatableResult = "reportWindowPassed" // StorageAttributionReportingAggregatableResultExcessiveReports enum const. StorageAttributionReportingAggregatableResultExcessiveReports StorageAttributionReportingAggregatableResult = "excessiveReports" )
type StorageAttributionReportingAggregatableTriggerData ¶ added in v0.115.0
type StorageAttributionReportingAggregatableTriggerData struct { // KeyPiece ... KeyPiece StorageUnsignedInt128AsBase16 `json:"keyPiece"` // SourceKeys ... SourceKeys []string `json:"sourceKeys"` // Filters ... Filters *StorageAttributionReportingFilterPair `json:"filters"` }
StorageAttributionReportingAggregatableTriggerData (experimental) ...
type StorageAttributionReportingAggregatableValueDictEntry ¶ added in v0.115.0
type StorageAttributionReportingAggregatableValueDictEntry struct { // Key ... Key string `json:"key"` // Value number instead of integer because not all uint32 can be represented by // int Value float64 `json:"value"` }
StorageAttributionReportingAggregatableValueDictEntry (experimental) ...
type StorageAttributionReportingAggregatableValueEntry ¶ added in v0.115.0
type StorageAttributionReportingAggregatableValueEntry struct { // Values ... Values []*StorageAttributionReportingAggregatableValueDictEntry `json:"values"` // Filters ... Filters *StorageAttributionReportingFilterPair `json:"filters"` }
StorageAttributionReportingAggregatableValueEntry (experimental) ...
type StorageAttributionReportingAggregationKeysEntry ¶ added in v0.115.0
type StorageAttributionReportingAggregationKeysEntry struct { // Key ... Key string `json:"key"` // Value ... Value StorageUnsignedInt128AsBase16 `json:"value"` }
StorageAttributionReportingAggregationKeysEntry (experimental) ...
type StorageAttributionReportingEventLevelResult ¶ added in v0.115.0
type StorageAttributionReportingEventLevelResult string
StorageAttributionReportingEventLevelResult (experimental) ...
const ( // StorageAttributionReportingEventLevelResultSuccess enum const. StorageAttributionReportingEventLevelResultSuccess StorageAttributionReportingEventLevelResult = "success" // StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority enum const. StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority StorageAttributionReportingEventLevelResult = "successDroppedLowerPriority" // StorageAttributionReportingEventLevelResultInternalError enum const. StorageAttributionReportingEventLevelResultInternalError StorageAttributionReportingEventLevelResult = "internalError" // StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination enum const. StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination StorageAttributionReportingEventLevelResult = "noCapacityForAttributionDestination" // StorageAttributionReportingEventLevelResultNoMatchingSources enum const. StorageAttributionReportingEventLevelResultNoMatchingSources StorageAttributionReportingEventLevelResult = "noMatchingSources" // StorageAttributionReportingEventLevelResultDeduplicated enum const. StorageAttributionReportingEventLevelResultDeduplicated StorageAttributionReportingEventLevelResult = "deduplicated" // StorageAttributionReportingEventLevelResultExcessiveAttributions enum const. StorageAttributionReportingEventLevelResultExcessiveAttributions StorageAttributionReportingEventLevelResult = "excessiveAttributions" // StorageAttributionReportingEventLevelResultPriorityTooLow enum const. StorageAttributionReportingEventLevelResultPriorityTooLow StorageAttributionReportingEventLevelResult = "priorityTooLow" // StorageAttributionReportingEventLevelResultNeverAttributedSource enum const. StorageAttributionReportingEventLevelResultNeverAttributedSource StorageAttributionReportingEventLevelResult = "neverAttributedSource" // StorageAttributionReportingEventLevelResultExcessiveReportingOrigins enum const. StorageAttributionReportingEventLevelResultExcessiveReportingOrigins StorageAttributionReportingEventLevelResult = "excessiveReportingOrigins" // StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData enum const. StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData StorageAttributionReportingEventLevelResult = "noMatchingSourceFilterData" // StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy enum const. StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy StorageAttributionReportingEventLevelResult = "prohibitedByBrowserPolicy" // StorageAttributionReportingEventLevelResultNoMatchingConfigurations enum const. StorageAttributionReportingEventLevelResultNoMatchingConfigurations StorageAttributionReportingEventLevelResult = "noMatchingConfigurations" // StorageAttributionReportingEventLevelResultExcessiveReports enum const. StorageAttributionReportingEventLevelResultExcessiveReports StorageAttributionReportingEventLevelResult = "excessiveReports" // StorageAttributionReportingEventLevelResultFalselyAttributedSource enum const. StorageAttributionReportingEventLevelResultFalselyAttributedSource StorageAttributionReportingEventLevelResult = "falselyAttributedSource" // StorageAttributionReportingEventLevelResultReportWindowPassed enum const. StorageAttributionReportingEventLevelResultReportWindowPassed StorageAttributionReportingEventLevelResult = "reportWindowPassed" // StorageAttributionReportingEventLevelResultNotRegistered enum const. StorageAttributionReportingEventLevelResultNotRegistered StorageAttributionReportingEventLevelResult = "notRegistered" // StorageAttributionReportingEventLevelResultReportWindowNotStarted enum const. StorageAttributionReportingEventLevelResultReportWindowNotStarted StorageAttributionReportingEventLevelResult = "reportWindowNotStarted" // StorageAttributionReportingEventLevelResultNoMatchingTriggerData enum const. StorageAttributionReportingEventLevelResultNoMatchingTriggerData StorageAttributionReportingEventLevelResult = "noMatchingTriggerData" )
type StorageAttributionReportingEventReportWindows ¶ added in v0.115.0
type StorageAttributionReportingEventReportWindows struct { // Start duration in seconds Start int `json:"start"` // Ends duration in seconds Ends []int `json:"ends"` }
StorageAttributionReportingEventReportWindows (experimental) ...
type StorageAttributionReportingEventTriggerData ¶ added in v0.115.0
type StorageAttributionReportingEventTriggerData struct { // Data ... Data StorageUnsignedInt64AsBase10 `json:"data"` // Priority ... Priority StorageSignedInt64AsBase10 `json:"priority"` // DedupKey (optional) ... DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"` // Filters ... Filters *StorageAttributionReportingFilterPair `json:"filters"` }
StorageAttributionReportingEventTriggerData (experimental) ...
type StorageAttributionReportingFilterConfig ¶ added in v0.115.0
type StorageAttributionReportingFilterConfig struct { // FilterValues ... FilterValues []*StorageAttributionReportingFilterDataEntry `json:"filterValues"` // LookbackWindow (optional) duration in seconds LookbackWindow *int `json:"lookbackWindow,omitempty"` }
StorageAttributionReportingFilterConfig (experimental) ...
type StorageAttributionReportingFilterDataEntry ¶ added in v0.115.0
type StorageAttributionReportingFilterDataEntry struct { // Key ... Key string `json:"key"` // Values ... Values []string `json:"values"` }
StorageAttributionReportingFilterDataEntry (experimental) ...
type StorageAttributionReportingFilterPair ¶ added in v0.115.0
type StorageAttributionReportingFilterPair struct { // Filters ... Filters []*StorageAttributionReportingFilterConfig `json:"filters"` // NotFilters ... NotFilters []*StorageAttributionReportingFilterConfig `json:"notFilters"` }
StorageAttributionReportingFilterPair (experimental) ...
type StorageAttributionReportingSourceRegistered ¶ added in v0.115.0
type StorageAttributionReportingSourceRegistered struct { // Registration ... Registration *StorageAttributionReportingSourceRegistration `json:"registration"` // Result ... Result StorageAttributionReportingSourceRegistrationResult `json:"result"` }
StorageAttributionReportingSourceRegistered (experimental) ...
func (StorageAttributionReportingSourceRegistered) ProtoEvent ¶ added in v0.115.0
func (evt StorageAttributionReportingSourceRegistered) ProtoEvent() string
ProtoEvent name.
type StorageAttributionReportingSourceRegistration ¶ added in v0.115.0
type StorageAttributionReportingSourceRegistration struct { // Time ... Time TimeSinceEpoch `json:"time"` // Expiry duration in seconds Expiry int `json:"expiry"` // TriggerSpecs ... TriggerSpecs []*StorageAttributionReportingTriggerSpec `json:"triggerSpecs"` // AggregatableReportWindow duration in seconds AggregatableReportWindow int `json:"aggregatableReportWindow"` // Type ... Type StorageAttributionReportingSourceType `json:"type"` // SourceOrigin ... SourceOrigin string `json:"sourceOrigin"` // ReportingOrigin ... ReportingOrigin string `json:"reportingOrigin"` // DestinationSites ... DestinationSites []string `json:"destinationSites"` // EventID ... EventID StorageUnsignedInt64AsBase10 `json:"eventId"` // Priority ... Priority StorageSignedInt64AsBase10 `json:"priority"` // FilterData ... FilterData []*StorageAttributionReportingFilterDataEntry `json:"filterData"` // AggregationKeys ... AggregationKeys []*StorageAttributionReportingAggregationKeysEntry `json:"aggregationKeys"` // DebugKey (optional) ... DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"` // TriggerDataMatching ... TriggerDataMatching StorageAttributionReportingTriggerDataMatching `json:"triggerDataMatching"` }
StorageAttributionReportingSourceRegistration (experimental) ...
type StorageAttributionReportingSourceRegistrationResult ¶ added in v0.115.0
type StorageAttributionReportingSourceRegistrationResult string
StorageAttributionReportingSourceRegistrationResult (experimental) ...
const ( // StorageAttributionReportingSourceRegistrationResultSuccess enum const. StorageAttributionReportingSourceRegistrationResultSuccess StorageAttributionReportingSourceRegistrationResult = "success" // StorageAttributionReportingSourceRegistrationResultInternalError enum const. StorageAttributionReportingSourceRegistrationResultInternalError StorageAttributionReportingSourceRegistrationResult = "internalError" // StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity enum const. StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientSourceCapacity" // StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity enum const. StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientUniqueDestinationCapacity" // StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins enum const. StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins StorageAttributionReportingSourceRegistrationResult = "excessiveReportingOrigins" // StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy enum const. StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy StorageAttributionReportingSourceRegistrationResult = "prohibitedByBrowserPolicy" // StorageAttributionReportingSourceRegistrationResultSuccessNoised enum const. StorageAttributionReportingSourceRegistrationResultSuccessNoised StorageAttributionReportingSourceRegistrationResult = "successNoised" // StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached enum const. StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationReportingLimitReached" // StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached enum const. StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationGlobalLimitReached" // StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached enum const. StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached StorageAttributionReportingSourceRegistrationResult = "destinationBothLimitsReached" // StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached enum const. StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached StorageAttributionReportingSourceRegistrationResult = "reportingOriginsPerSiteLimitReached" // StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity enum const. StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity StorageAttributionReportingSourceRegistrationResult = "exceedsMaxChannelCapacity" // StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality enum const. StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality StorageAttributionReportingSourceRegistrationResult = "exceedsMaxTriggerStateCardinality" // StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached enum const. StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationPerDayReportingLimitReached" )
type StorageAttributionReportingSourceRegistrationTimeConfig ¶ added in v0.115.0
type StorageAttributionReportingSourceRegistrationTimeConfig string
StorageAttributionReportingSourceRegistrationTimeConfig (experimental) ...
const ( // StorageAttributionReportingSourceRegistrationTimeConfigInclude enum const. StorageAttributionReportingSourceRegistrationTimeConfigInclude StorageAttributionReportingSourceRegistrationTimeConfig = "include" // StorageAttributionReportingSourceRegistrationTimeConfigExclude enum const. StorageAttributionReportingSourceRegistrationTimeConfigExclude StorageAttributionReportingSourceRegistrationTimeConfig = "exclude" )
type StorageAttributionReportingSourceType ¶ added in v0.115.0
type StorageAttributionReportingSourceType string
StorageAttributionReportingSourceType (experimental) ...
const ( StorageAttributionReportingSourceType = "navigation" // StorageAttributionReportingSourceTypeEvent enum const. StorageAttributionReportingSourceTypeEvent StorageAttributionReportingSourceType = "event" )StorageAttributionReportingSourceTypeNavigation
type StorageAttributionReportingTriggerDataMatching ¶ added in v0.115.0
type StorageAttributionReportingTriggerDataMatching string
StorageAttributionReportingTriggerDataMatching (experimental) ...
const ( // StorageAttributionReportingTriggerDataMatchingExact enum const. StorageAttributionReportingTriggerDataMatchingExact StorageAttributionReportingTriggerDataMatching = "exact" // StorageAttributionReportingTriggerDataMatchingModulus enum const. StorageAttributionReportingTriggerDataMatchingModulus StorageAttributionReportingTriggerDataMatching = "modulus" )
type StorageAttributionReportingTriggerRegistered ¶ added in v0.115.0
type StorageAttributionReportingTriggerRegistered struct { // Registration ... Registration *StorageAttributionReportingTriggerRegistration `json:"registration"` // EventLevel ... EventLevel StorageAttributionReportingEventLevelResult `json:"eventLevel"` // Aggregatable ... Aggregatable StorageAttributionReportingAggregatableResult `json:"aggregatable"` }
StorageAttributionReportingTriggerRegistered (experimental) ...
func (StorageAttributionReportingTriggerRegistered) ProtoEvent ¶ added in v0.115.0
func (evt StorageAttributionReportingTriggerRegistered) ProtoEvent() string
ProtoEvent name.
type StorageAttributionReportingTriggerRegistration ¶ added in v0.115.0
type StorageAttributionReportingTriggerRegistration struct { // Filters ... Filters *StorageAttributionReportingFilterPair `json:"filters"` // DebugKey (optional) ... DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"` // AggregatableDedupKeys ... AggregatableDedupKeys []*StorageAttributionReportingAggregatableDedupKey `json:"aggregatableDedupKeys"` // EventTriggerData ... EventTriggerData []*StorageAttributionReportingEventTriggerData `json:"eventTriggerData"` // AggregatableTriggerData ... AggregatableTriggerData []*StorageAttributionReportingAggregatableTriggerData `json:"aggregatableTriggerData"` // AggregatableValues ... AggregatableValues []*StorageAttributionReportingAggregatableValueEntry `json:"aggregatableValues"` // DebugReporting ... DebugReporting bool `json:"debugReporting"` // AggregationCoordinatorOrigin (optional) ... AggregationCoordinatorOrigin string `json:"aggregationCoordinatorOrigin,omitempty"` // SourceRegistrationTimeConfig ... SourceRegistrationTimeConfig StorageAttributionReportingSourceRegistrationTimeConfig `json:"sourceRegistrationTimeConfig"` // TriggerContextID (optional) ... TriggerContextID string `json:"triggerContextId,omitempty"` }
StorageAttributionReportingTriggerRegistration (experimental) ...
type StorageAttributionReportingTriggerSpec ¶ added in v0.115.0
type StorageAttributionReportingTriggerSpec struct { // TriggerData number instead of integer because not all uint32 can be represented by // int TriggerData []float64 `json:"triggerData"` // EventReportWindows ... EventReportWindows *StorageAttributionReportingEventReportWindows `json:"eventReportWindows"` }
StorageAttributionReportingTriggerSpec (experimental) ...
type StorageCacheStorageContentUpdated ¶
type StorageCacheStorageContentUpdated struct { // Origin to update. Origin string `json:"origin"` // StorageKey Storage key to update. StorageKey string `json:"storageKey"` // BucketID Storage bucket to update. BucketID string `json:"bucketId"` // CacheName Name of cache in origin. CacheName string `json:"cacheName"` }
StorageCacheStorageContentUpdated A cache's contents have been modified.
func (StorageCacheStorageContentUpdated) ProtoEvent ¶ added in v0.72.0
func (evt StorageCacheStorageContentUpdated) ProtoEvent() string
ProtoEvent name.
type StorageCacheStorageListUpdated ¶
type StorageCacheStorageListUpdated struct { // Origin to update. Origin string `json:"origin"` // StorageKey Storage key to update. StorageKey string `json:"storageKey"` // BucketID Storage bucket to update. BucketID string `json:"bucketId"` }
StorageCacheStorageListUpdated A cache has been added/deleted.
func (StorageCacheStorageListUpdated) ProtoEvent ¶ added in v0.72.0
func (evt StorageCacheStorageListUpdated) ProtoEvent() string
ProtoEvent name.
type StorageClearCookies ¶
type StorageClearCookies struct { // BrowserContextID (optional) Browser context to use when called on the browser endpoint. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
StorageClearCookies Clears cookies.
func (StorageClearCookies) Call ¶
func (m StorageClearCookies) Call(c Client) error
Call sends the request.
func (StorageClearCookies) ProtoReq ¶ added in v0.74.0
func (m StorageClearCookies) ProtoReq() string
ProtoReq name.
type StorageClearDataForOrigin ¶
type StorageClearDataForOrigin struct { // Origin Security origin. Origin string `json:"origin"` // StorageTypes Comma separated list of StorageType to clear. StorageTypes string `json:"storageTypes"` }
StorageClearDataForOrigin Clears storage for origin.
func (StorageClearDataForOrigin) Call ¶
func (m StorageClearDataForOrigin) Call(c Client) error
Call sends the request.
func (StorageClearDataForOrigin) ProtoReq ¶ added in v0.74.0
func (m StorageClearDataForOrigin) ProtoReq() string
ProtoReq name.
type StorageClearDataForStorageKey ¶ added in v0.108.2
type StorageClearDataForStorageKey struct { // StorageKey Storage key. StorageKey string `json:"storageKey"` // StorageTypes Comma separated list of StorageType to clear. StorageTypes string `json:"storageTypes"` }
StorageClearDataForStorageKey Clears storage for storage key.
func (StorageClearDataForStorageKey) Call ¶ added in v0.108.2
func (m StorageClearDataForStorageKey) Call(c Client) error
Call sends the request.
func (StorageClearDataForStorageKey) ProtoReq ¶ added in v0.108.2
func (m StorageClearDataForStorageKey) ProtoReq() string
ProtoReq name.
type StorageClearSharedStorageEntries ¶ added in v0.112.3
type StorageClearSharedStorageEntries struct { string `json:"ownerOrigin"` }OwnerOrigin
StorageClearSharedStorageEntries (experimental) Clears all entries for a given origin's shared storage.
func (StorageClearSharedStorageEntries) Call ¶ added in v0.112.3
func (m StorageClearSharedStorageEntries) Call(c Client) error
Call sends the request.
func (StorageClearSharedStorageEntries) ProtoReq ¶ added in v0.112.3
func (m StorageClearSharedStorageEntries) ProtoReq() string
ProtoReq name.
type StorageClearTrustTokens ¶ added in v0.97.5
type StorageClearTrustTokens struct { // IssuerOrigin ... IssuerOrigin string `json:"issuerOrigin"` }
StorageClearTrustTokens (experimental) Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
func (StorageClearTrustTokens) Call ¶ added in v0.97.5
func (m StorageClearTrustTokens) Call(c Client) (*StorageClearTrustTokensResult, error)
Call the request.
func (StorageClearTrustTokens) ProtoReq ¶ added in v0.97.5
func (m StorageClearTrustTokens) ProtoReq() string
ProtoReq name.
type StorageClearTrustTokensResult ¶ added in v0.97.5
type StorageClearTrustTokensResult struct { // DidDeleteTokens True if any tokens were deleted, false otherwise. DidDeleteTokens bool `json:"didDeleteTokens"` }
StorageClearTrustTokensResult (experimental) ...
type StorageDeleteSharedStorageEntry ¶ added in v0.112.3
type StorageDeleteSharedStorageEntry struct { string `json:"ownerOrigin"` Key string `json:"key"` }OwnerOrigin
StorageDeleteSharedStorageEntry (experimental) Deletes entry for `key` (if it exists) for a given origin's shared storage.
func (StorageDeleteSharedStorageEntry) Call ¶ added in v0.112.3
func (m StorageDeleteSharedStorageEntry) Call(c Client) error
Call sends the request.
func (StorageDeleteSharedStorageEntry) ProtoReq ¶ added in v0.112.3
func (m StorageDeleteSharedStorageEntry) ProtoReq() string
ProtoReq name.
type StorageDeleteStorageBucket ¶ added in v0.112.9
type StorageDeleteStorageBucket struct { // Bucket ... Bucket *StorageStorageBucket `json:"bucket"` }
StorageDeleteStorageBucket (experimental) Deletes the Storage Bucket with the given storage key and bucket name.
func (StorageDeleteStorageBucket) Call ¶ added in v0.112.9
func (m StorageDeleteStorageBucket) Call(c Client) error
Call sends the request.
func (StorageDeleteStorageBucket) ProtoReq ¶ added in v0.112.9
func (m StorageDeleteStorageBucket) ProtoReq() string
ProtoReq name.
type StorageGetCookies ¶
type StorageGetCookies struct { // BrowserContextID (optional) Browser context to use when called on the browser endpoint. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
StorageGetCookies Returns all browser cookies.
func (StorageGetCookies) Call ¶
func (m StorageGetCookies) Call(c Client) (*StorageGetCookiesResult, error)
Call the request.
func (StorageGetCookies) ProtoReq ¶ added in v0.74.0
func (m StorageGetCookies) ProtoReq() string
ProtoReq name.
type StorageGetCookiesResult ¶
type StorageGetCookiesResult struct { // Cookies Array of cookie objects. Cookies []*NetworkCookie `json:"cookies"` }
StorageGetCookiesResult ...
type StorageGetInterestGroupDetails ¶ added in v0.102.0
type StorageGetInterestGroupDetails struct { // OwnerOrigin ... OwnerOrigin string `json:"ownerOrigin"` // Name ... Name string `json:"name"` }
StorageGetInterestGroupDetails (experimental) Gets details for a named interest group.
func (StorageGetInterestGroupDetails) Call ¶ added in v0.102.0
func (m StorageGetInterestGroupDetails) Call(c Client) (*StorageGetInterestGroupDetailsResult, error)
Call the request.
func (StorageGetInterestGroupDetails) ProtoReq ¶ added in v0.102.0
func (m StorageGetInterestGroupDetails) ProtoReq() string
ProtoReq name.
type StorageGetInterestGroupDetailsResult ¶ added in v0.102.0
type StorageGetInterestGroupDetailsResult struct { // Details This largely corresponds to: // https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup // but has absolute expirationTime instead of relative lifetimeMs and // also adds joiningOrigin. Details map[string]gson.JSON `json:"details"` }
StorageGetInterestGroupDetailsResult (experimental) ...
type StorageGetRelatedWebsiteSets ¶ added in v0.115.0
type StorageGetRelatedWebsiteSets struct{}
StorageGetRelatedWebsiteSets (experimental) Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.
func (StorageGetRelatedWebsiteSets) Call ¶ added in v0.115.0
func (m StorageGetRelatedWebsiteSets) Call(c Client) (*StorageGetRelatedWebsiteSetsResult, error)
Call the request.
func (StorageGetRelatedWebsiteSets) ProtoReq ¶ added in v0.115.0
func (m StorageGetRelatedWebsiteSets) ProtoReq() string
ProtoReq name.
type StorageGetRelatedWebsiteSetsResult ¶ added in v0.115.0
type StorageGetRelatedWebsiteSetsResult struct { // Sets ... Sets []*StorageRelatedWebsiteSet `json:"sets"` }
StorageGetRelatedWebsiteSetsResult (experimental) ...
type StorageGetSharedStorageEntries ¶ added in v0.112.1
type StorageGetSharedStorageEntries struct { string `json:"ownerOrigin"` }OwnerOrigin
StorageGetSharedStorageEntries (experimental) Gets the entries in an given origin's shared storage.
func (StorageGetSharedStorageEntries) Call ¶ added in v0.112.1
func (m StorageGetSharedStorageEntries) Call(c Client) (*StorageGetSharedStorageEntriesResult, error)
Call the request.
func (StorageGetSharedStorageEntries) ProtoReq ¶ added in v0.112.1
func (m StorageGetSharedStorageEntries) ProtoReq() string
ProtoReq name.
type StorageGetSharedStorageEntriesResult ¶ added in v0.112.1
type StorageGetSharedStorageEntriesResult struct { StorageSharedStorageEntry `json:"entries"` }Entries []*
StorageGetSharedStorageEntriesResult (experimental) ...
type StorageGetSharedStorageMetadata ¶ added in v0.112.1
type StorageGetSharedStorageMetadata struct { string `json:"ownerOrigin"` }OwnerOrigin
StorageGetSharedStorageMetadata (experimental) Gets metadata for an origin's shared storage.
func (StorageGetSharedStorageMetadata) Call ¶ added in v0.112.1
func (m StorageGetSharedStorageMetadata) Call(c Client) (*StorageGetSharedStorageMetadataResult, error)
Call the request.
func (StorageGetSharedStorageMetadata) ProtoReq ¶ added in v0.112.1
func (m StorageGetSharedStorageMetadata) ProtoReq() string
ProtoReq name.
type StorageGetSharedStorageMetadataResult ¶ added in v0.112.1
type StorageGetSharedStorageMetadataResult struct { StorageSharedStorageMetadata `json:"metadata"` }Metadata *
StorageGetSharedStorageMetadataResult (experimental) ...
type StorageGetStorageKeyForFrame ¶ added in v0.107.0
type StorageGetStorageKeyForFrame struct { // FrameID ... FrameID PageFrameID `json:"frameId"` }
StorageGetStorageKeyForFrame Returns a storage key given a frame id.
func (StorageGetStorageKeyForFrame) Call ¶ added in v0.107.0
func (m StorageGetStorageKeyForFrame) Call(c Client) (*StorageGetStorageKeyForFrameResult, error)
Call the request.
func (StorageGetStorageKeyForFrame) ProtoReq ¶ added in v0.107.0
func (m StorageGetStorageKeyForFrame) ProtoReq() string
ProtoReq name.
type StorageGetStorageKeyForFrameResult ¶ added in v0.107.0
type StorageGetStorageKeyForFrameResult struct { // StorageKey ... StorageKey StorageSerializedStorageKey `json:"storageKey"` }
StorageGetStorageKeyForFrameResult ...
type StorageGetTrustTokens ¶ added in v0.90.0
type StorageGetTrustTokens struct{}
StorageGetTrustTokens (experimental) Returns the number of stored Trust Tokens per issuer for the current browsing context.
func (StorageGetTrustTokens) Call ¶ added in v0.90.0
func (m StorageGetTrustTokens) Call(c Client) (*StorageGetTrustTokensResult, error)
Call the request.
func (StorageGetTrustTokens) ProtoReq ¶ added in v0.90.0
func (m StorageGetTrustTokens) ProtoReq() string
ProtoReq name.
type StorageGetTrustTokensResult ¶ added in v0.90.0
type StorageGetTrustTokensResult struct { // Tokens ... Tokens []*StorageTrustTokens `json:"tokens"` }
StorageGetTrustTokensResult (experimental) ...
type StorageGetUsageAndQuota ¶
type StorageGetUsageAndQuota struct { // Origin Security origin. Origin string `json:"origin"` }
StorageGetUsageAndQuota Returns usage and quota in bytes.
func (StorageGetUsageAndQuota) Call ¶
func (m StorageGetUsageAndQuota) Call(c Client) (*StorageGetUsageAndQuotaResult, error)
Call the request.
func (StorageGetUsageAndQuota) ProtoReq ¶ added in v0.74.0
func (m StorageGetUsageAndQuota) ProtoReq() string
ProtoReq name.
type StorageGetUsageAndQuotaResult ¶
type StorageGetUsageAndQuotaResult struct { // Usage Storage usage (bytes). Usage float64 `json:"usage"` // Quota Storage quota (bytes). Quota float64 `json:"quota"` // OverrideActive Whether or not the origin has an active storage quota override OverrideActive bool `json:"overrideActive"` // UsageBreakdown Storage usage per type (bytes). UsageBreakdown []*StorageUsageForType `json:"usageBreakdown"` }
StorageGetUsageAndQuotaResult ...
type StorageIndexedDBContentUpdated ¶
type StorageIndexedDBContentUpdated struct { // Origin to update. Origin string `json:"origin"` // StorageKey Storage key to update. StorageKey string `json:"storageKey"` // BucketID Storage bucket to update. BucketID string `json:"bucketId"` // DatabaseName Database to update. DatabaseName string `json:"databaseName"` // ObjectStoreName ObjectStore to update. ObjectStoreName string `json:"objectStoreName"` }
StorageIndexedDBContentUpdated The origin's IndexedDB object store has been modified.
func (StorageIndexedDBContentUpdated) ProtoEvent ¶ added in v0.72.0
func (evt StorageIndexedDBContentUpdated) ProtoEvent() string
ProtoEvent name.
type StorageIndexedDBListUpdated ¶
type StorageIndexedDBListUpdated struct { // Origin to update. Origin string `json:"origin"` // StorageKey Storage key to update. StorageKey string `json:"storageKey"` // BucketID Storage bucket to update. BucketID string `json:"bucketId"` }
StorageIndexedDBListUpdated The origin's IndexedDB database list has been modified.
func (StorageIndexedDBListUpdated) ProtoEvent ¶ added in v0.72.0
func (evt StorageIndexedDBListUpdated) ProtoEvent() string
ProtoEvent name.
type StorageInterestGroupAccessType ¶ added in v0.102.0
type StorageInterestGroupAccessType string
StorageInterestGroupAccessType Enum of interest group access types.
const ( // StorageInterestGroupAccessTypeJoin enum const. StorageInterestGroupAccessTypeJoin StorageInterestGroupAccessType = "join" // StorageInterestGroupAccessTypeLeave enum const. StorageInterestGroupAccessTypeLeave StorageInterestGroupAccessType = "leave" // StorageInterestGroupAccessTypeUpdate enum const. StorageInterestGroupAccessTypeUpdate StorageInterestGroupAccessType = "update" // StorageInterestGroupAccessTypeLoaded enum const. StorageInterestGroupAccessTypeLoaded StorageInterestGroupAccessType = "loaded" // StorageInterestGroupAccessTypeBid enum const. StorageInterestGroupAccessTypeBid StorageInterestGroupAccessType = "bid" // StorageInterestGroupAccessTypeWin enum const. StorageInterestGroupAccessTypeWin StorageInterestGroupAccessType = "win" // StorageInterestGroupAccessTypeAdditionalBid enum const. StorageInterestGroupAccessTypeAdditionalBid StorageInterestGroupAccessType = "additionalBid" // StorageInterestGroupAccessTypeAdditionalBidWin enum const. StorageInterestGroupAccessTypeAdditionalBidWin StorageInterestGroupAccessType = "additionalBidWin" // StorageInterestGroupAccessTypeTopLevelBid enum const. StorageInterestGroupAccessTypeTopLevelBid StorageInterestGroupAccessType = "topLevelBid" // StorageInterestGroupAccessTypeTopLevelAdditionalBid enum const. StorageInterestGroupAccessTypeTopLevelAdditionalBid StorageInterestGroupAccessType = "topLevelAdditionalBid" // StorageInterestGroupAccessTypeClear enum const. StorageInterestGroupAccessTypeClear StorageInterestGroupAccessType = "clear" )
type StorageInterestGroupAccessed ¶ added in v0.102.0
type StorageInterestGroupAccessed struct { // AccessTime ... AccessTime TimeSinceEpoch `json:"accessTime"` // Type ... Type StorageInterestGroupAccessType `json:"type"` // OwnerOrigin ... OwnerOrigin string `json:"ownerOrigin"` // Name ... Name string `json:"name"` // ComponentSellerOrigin (optional) For topLevelBid/topLevelAdditionalBid, and when appropriate, // win and additionalBidWin ComponentSellerOrigin string `json:"componentSellerOrigin,omitempty"` // Bid (optional) For bid or somethingBid event, if done locally and not on a server. Bid *float64 `json:"bid,omitempty"` // BidCurrency (optional) ... BidCurrency string `json:"bidCurrency,omitempty"` // UniqueAuctionID (optional) For non-global events --- links to interestGroupAuctionEvent UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId,omitempty"` }
StorageInterestGroupAccessed One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.
func (StorageInterestGroupAccessed) ProtoEvent ¶ added in v0.102.0
func (evt StorageInterestGroupAccessed) ProtoEvent() string
ProtoEvent name.
type StorageInterestGroupAuctionEventOccurred ¶ added in v0.115.0
type StorageInterestGroupAuctionEventOccurred struct { // EventTime ... EventTime TimeSinceEpoch `json:"eventTime"` // Type ... Type StorageInterestGroupAuctionEventType `json:"type"` // UniqueAuctionID ... UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId"` // ParentAuctionID (optional) Set for child auctions. ParentAuctionID StorageInterestGroupAuctionID `json:"parentAuctionId,omitempty"` // AuctionConfig (optional) Set for started and configResolved AuctionConfig map[string]gson.JSON `json:"auctionConfig,omitempty"` }
StorageInterestGroupAuctionEventOccurred An auction involving interest groups is taking place. These events are target-specific.
func (StorageInterestGroupAuctionEventOccurred) ProtoEvent ¶ added in v0.115.0
func (evt StorageInterestGroupAuctionEventOccurred) ProtoEvent() string
ProtoEvent name.
type StorageInterestGroupAuctionEventType ¶ added in v0.115.0
type StorageInterestGroupAuctionEventType string
StorageInterestGroupAuctionEventType Enum of auction events.
const ( // StorageInterestGroupAuctionEventTypeStarted enum const. StorageInterestGroupAuctionEventTypeStarted StorageInterestGroupAuctionEventType = "started" // StorageInterestGroupAuctionEventTypeConfigResolved enum const. StorageInterestGroupAuctionEventTypeConfigResolved StorageInterestGroupAuctionEventType = "configResolved" )
type StorageInterestGroupAuctionFetchType ¶ added in v0.115.0
type StorageInterestGroupAuctionFetchType string
StorageInterestGroupAuctionFetchType Enum of network fetches auctions can do.
const ( // StorageInterestGroupAuctionFetchTypeBidderJs enum const. StorageInterestGroupAuctionFetchTypeBidderJs StorageInterestGroupAuctionFetchType = "bidderJs" // StorageInterestGroupAuctionFetchTypeBidderWasm enum const. StorageInterestGroupAuctionFetchTypeBidderWasm StorageInterestGroupAuctionFetchType = "bidderWasm" // StorageInterestGroupAuctionFetchTypeSellerJs enum const. StorageInterestGroupAuctionFetchTypeSellerJs StorageInterestGroupAuctionFetchType = "sellerJs" // StorageInterestGroupAuctionFetchTypeBidderTrustedSignals enum const. StorageInterestGroupAuctionFetchTypeBidderTrustedSignals StorageInterestGroupAuctionFetchType = "bidderTrustedSignals" // StorageInterestGroupAuctionFetchTypeSellerTrustedSignals enum const. StorageInterestGroupAuctionFetchTypeSellerTrustedSignals StorageInterestGroupAuctionFetchType = "sellerTrustedSignals" )
type StorageInterestGroupAuctionID ¶ added in v0.115.0
type StorageInterestGroupAuctionID string
StorageInterestGroupAuctionID Protected audience interest group auction identifier.
type StorageInterestGroupAuctionNetworkRequestCreated ¶ added in v0.115.0
type StorageInterestGroupAuctionNetworkRequestCreated struct { // Type ... Type StorageInterestGroupAuctionFetchType `json:"type"` // RequestID ... RequestID NetworkRequestID `json:"requestId"` // Auctions This is the set of the auctions using the worklet that issued this // request. In the case of trusted signals, it's possible that only some of // them actually care about the keys being queried. Auctions []StorageInterestGroupAuctionID `json:"auctions"` }
StorageInterestGroupAuctionNetworkRequestCreated Specifies which auctions a particular network fetch may be related to, and in what role. Note that it is not ordered with respect to Network.requestWillBeSent (but will happen before loadingFinished loadingFailed).
func (StorageInterestGroupAuctionNetworkRequestCreated) ProtoEvent ¶ added in v0.115.0
func (evt StorageInterestGroupAuctionNetworkRequestCreated) ProtoEvent() string
ProtoEvent name.
type StorageOverrideQuotaForOrigin ¶ added in v0.85.9
type StorageOverrideQuotaForOrigin struct { // Origin Security origin. Origin string `json:"origin"` // QuotaSize (optional) The quota size (in bytes) to override the original quota with. // If this is called multiple times, the overridden quota will be equal to // the quotaSize provided in the final call. If this is called without // specifying a quotaSize, the quota will be reset to the default value for // the specified origin. If this is called multiple times with different // origins, the override will be maintained for each origin until it is // disabled (called without a quotaSize). QuotaSize *float64 `json:"quotaSize,omitempty"` }
StorageOverrideQuotaForOrigin (experimental) Override quota for the specified origin.
func (StorageOverrideQuotaForOrigin) Call ¶ added in v0.85.9
func (m StorageOverrideQuotaForOrigin) Call(c Client) error
Call sends the request.
func (StorageOverrideQuotaForOrigin) ProtoReq ¶ added in v0.85.9
func (m StorageOverrideQuotaForOrigin) ProtoReq() string
ProtoReq name.
type StorageRelatedWebsiteSet ¶ added in v0.115.0
type StorageRelatedWebsiteSet struct { // PrimarySites The primary site of this set, along with the ccTLDs if there is any. PrimarySites []string `json:"primarySites"` // AssociatedSites The associated sites of this set, along with the ccTLDs if there is any. AssociatedSites []string `json:"associatedSites"` // ServiceSites The service sites of this set, along with the ccTLDs if there is any. ServiceSites []string `json:"serviceSites"` }
StorageRelatedWebsiteSet (experimental) A single Related Website Set object.
type StorageResetSharedStorageBudget ¶ added in v0.112.3
type StorageResetSharedStorageBudget struct { string `json:"ownerOrigin"` }OwnerOrigin
StorageResetSharedStorageBudget (experimental) Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
func (StorageResetSharedStorageBudget) Call ¶ added in v0.112.3
func (m StorageResetSharedStorageBudget) Call(c Client) error
Call sends the request.
func (StorageResetSharedStorageBudget) ProtoReq ¶ added in v0.112.3
func (m StorageResetSharedStorageBudget) ProtoReq() string
ProtoReq name.
type StorageRunBounceTrackingMitigations ¶ added in v0.115.0
type StorageRunBounceTrackingMitigations struct{}
StorageRunBounceTrackingMitigations (experimental) Deletes state for sites identified as potential bounce trackers, immediately.
func (StorageRunBounceTrackingMitigations) Call ¶ added in v0.115.0
func (m StorageRunBounceTrackingMitigations) Call(c Client) (*StorageRunBounceTrackingMitigationsResult, error)
Call the request.
func (StorageRunBounceTrackingMitigations) ProtoReq ¶ added in v0.115.0
func (m StorageRunBounceTrackingMitigations) ProtoReq() string
ProtoReq name.
type StorageRunBounceTrackingMitigationsResult ¶ added in v0.115.0
type StorageRunBounceTrackingMitigationsResult struct { // DeletedSites ... DeletedSites []string `json:"deletedSites"` }
StorageRunBounceTrackingMitigationsResult (experimental) ...
type StorageSendPendingAttributionReports ¶ added in v0.115.0
type StorageSendPendingAttributionReports struct{}
StorageSendPendingAttributionReports (experimental) Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
func (StorageSendPendingAttributionReports) Call ¶ added in v0.115.0
func (m StorageSendPendingAttributionReports) Call(c Client) (*StorageSendPendingAttributionReportsResult, error)
Call the request.
func (StorageSendPendingAttributionReports) ProtoReq ¶ added in v0.115.0
func (m StorageSendPendingAttributionReports) ProtoReq() string
ProtoReq name.
type StorageSendPendingAttributionReportsResult ¶ added in v0.115.0
type StorageSendPendingAttributionReportsResult struct { // NumSent The number of reports that were sent. NumSent int `json:"numSent"` }
StorageSendPendingAttributionReportsResult (experimental) ...
type StorageSerializedStorageKey ¶ added in v0.106.7
type StorageSerializedStorageKey string
StorageSerializedStorageKey ...
type StorageSetAttributionReportingLocalTestingMode ¶ added in v0.115.0
type StorageSetAttributionReportingLocalTestingMode struct { // Enabled If enabled, noise is suppressed and reports are sent immediately. Enabled bool `json:"enabled"` }
StorageSetAttributionReportingLocalTestingMode (experimental) https://wicg.github.io/attribution-reporting-api/
func (StorageSetAttributionReportingLocalTestingMode) Call ¶ added in v0.115.0
func (m StorageSetAttributionReportingLocalTestingMode) Call(c Client) error
Call sends the request.
func (StorageSetAttributionReportingLocalTestingMode) ProtoReq ¶ added in v0.115.0
func (m StorageSetAttributionReportingLocalTestingMode) ProtoReq() string
ProtoReq name.
type StorageSetAttributionReportingTracking ¶ added in v0.115.0
type StorageSetAttributionReportingTracking struct { // Enable ... Enable bool `json:"enable"` }
StorageSetAttributionReportingTracking (experimental) Enables/disables issuing of Attribution Reporting events.
func (StorageSetAttributionReportingTracking) Call ¶ added in v0.115.0
func (m StorageSetAttributionReportingTracking) Call(c Client) error
Call sends the request.
func (StorageSetAttributionReportingTracking) ProtoReq ¶ added in v0.115.0
func (m StorageSetAttributionReportingTracking) ProtoReq() string
ProtoReq name.
type StorageSetCookies ¶
type StorageSetCookies struct { // Cookies to be set. Cookies []*NetworkCookieParam `json:"cookies"` // BrowserContextID (optional) Browser context to use when called on the browser endpoint. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` }
StorageSetCookies Sets given cookies.
func (StorageSetCookies) Call ¶
func (m StorageSetCookies) Call(c Client) error
Call sends the request.
func (StorageSetCookies) ProtoReq ¶ added in v0.74.0
func (m StorageSetCookies) ProtoReq() string
ProtoReq name.
type StorageSetInterestGroupAuctionTracking ¶ added in v0.115.0
type StorageSetInterestGroupAuctionTracking struct { // Enable ... Enable bool `json:"enable"` }
StorageSetInterestGroupAuctionTracking (experimental) Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
func (StorageSetInterestGroupAuctionTracking) Call ¶ added in v0.115.0
func (m StorageSetInterestGroupAuctionTracking) Call(c Client) error
Call sends the request.
func (StorageSetInterestGroupAuctionTracking) ProtoReq ¶ added in v0.115.0
func (m StorageSetInterestGroupAuctionTracking) ProtoReq() string
ProtoReq name.
type StorageSetInterestGroupTracking ¶ added in v0.102.0
type StorageSetInterestGroupTracking struct { // Enable ... Enable bool `json:"enable"` }
StorageSetInterestGroupTracking (experimental) Enables/Disables issuing of interestGroupAccessed events.
func (StorageSetInterestGroupTracking) Call ¶ added in v0.102.0
func (m StorageSetInterestGroupTracking) Call(c Client) error
Call sends the request.
func (StorageSetInterestGroupTracking) ProtoReq ¶ added in v0.102.0
func (m StorageSetInterestGroupTracking) ProtoReq() string
ProtoReq name.
type StorageSetSharedStorageEntry ¶ added in v0.112.3
type StorageSetSharedStorageEntry struct { string `json:"ownerOrigin"` Key string `json:"key"` Value string `json:"value"` // `key` doesn't already exist. IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"` }OwnerOrigin
StorageSetSharedStorageEntry (experimental) Sets entry with `key` and `value` for a given origin's shared storage.
func (StorageSetSharedStorageEntry) Call ¶ added in v0.112.3
func (m StorageSetSharedStorageEntry) Call(c Client) error
Call sends the request.
func (StorageSetSharedStorageEntry) ProtoReq ¶ added in v0.112.3
func (m StorageSetSharedStorageEntry) ProtoReq() string
ProtoReq name.
type StorageSetSharedStorageTracking ¶ added in v0.112.1
type StorageSetSharedStorageTracking struct { bool `json:"enable"` }Enable
StorageSetSharedStorageTracking (experimental) Enables/disables issuing of sharedStorageAccessed events.
func (StorageSetSharedStorageTracking) Call ¶ added in v0.112.1
func (m StorageSetSharedStorageTracking) Call(c Client) error
Call sends the request.
func (StorageSetSharedStorageTracking) ProtoReq ¶ added in v0.112.1
func (m StorageSetSharedStorageTracking) ProtoReq() string
ProtoReq name.
type StorageSetStorageBucketTracking ¶ added in v0.112.9
type StorageSetStorageBucketTracking struct { // StorageKey ... StorageKey string `json:"storageKey"` // Enable ... Enable bool `json:"enable"` }
StorageSetStorageBucketTracking (experimental) Set tracking for a storage key's buckets.
func (StorageSetStorageBucketTracking) Call ¶ added in v0.112.9
func (m StorageSetStorageBucketTracking) Call(c Client) error
Call sends the request.
func (StorageSetStorageBucketTracking) ProtoReq ¶ added in v0.112.9
func (m StorageSetStorageBucketTracking) ProtoReq() string
ProtoReq name.
type StorageSharedStorageAccessParams ¶ added in v0.112.1
type StorageSharedStorageAccessParams struct { // Present only for SharedStorageAccessType.documentAddModule. ScriptSourceURL string `json:"scriptSourceUrl,omitempty"` // Present only for SharedStorageAccessType.documentRun and // SharedStorageAccessType.documentSelectURL. OperationName string `json:"operationName,omitempty"` // Present only for SharedStorageAccessType.documentRun and // SharedStorageAccessType.documentSelectURL. SerializedData string `json:"serializedData,omitempty"` // Present only for SharedStorageAccessType.documentSelectURL. UrlsWithMetadata []*StorageSharedStorageURLWithMetadata `json:"urlsWithMetadata,omitempty"` // Present only for SharedStorageAccessType.documentSet, // SharedStorageAccessType.documentAppend, // SharedStorageAccessType.documentDelete, // SharedStorageAccessType.workletSet, // SharedStorageAccessType.workletAppend, // SharedStorageAccessType.workletDelete, // SharedStorageAccessType.workletGet, // SharedStorageAccessType.headerSet, // SharedStorageAccessType.headerAppend, and // SharedStorageAccessType.headerDelete. Key string `json:"key,omitempty"` // Present only for SharedStorageAccessType.documentSet, // SharedStorageAccessType.documentAppend, // SharedStorageAccessType.workletSet, // SharedStorageAccessType.workletAppend, // SharedStorageAccessType.headerSet, and // SharedStorageAccessType.headerAppend. Value string `json:"value,omitempty"` // Present only for SharedStorageAccessType.documentSet, // SharedStorageAccessType.workletSet, and // SharedStorageAccessType.headerSet. IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"` }
StorageSharedStorageAccessParams Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.
type StorageSharedStorageAccessType ¶ added in v0.112.1
type StorageSharedStorageAccessType string
StorageSharedStorageAccessType Enum of shared storage access types.
const ( StorageSharedStorageAccessType = "documentAddModule" StorageSharedStorageAccessTypeDocumentSelectURL StorageSharedStorageAccessType = "documentSelectURL" StorageSharedStorageAccessTypeDocumentRun StorageSharedStorageAccessType = "documentRun" StorageSharedStorageAccessTypeDocumentSet StorageSharedStorageAccessType = "documentSet" StorageSharedStorageAccessTypeDocumentAppend StorageSharedStorageAccessType = "documentAppend" StorageSharedStorageAccessTypeDocumentDelete StorageSharedStorageAccessType = "documentDelete" StorageSharedStorageAccessTypeDocumentClear StorageSharedStorageAccessType = "documentClear" StorageSharedStorageAccessTypeDocumentGet StorageSharedStorageAccessType = "documentGet" StorageSharedStorageAccessTypeWorkletSet StorageSharedStorageAccessType = "workletSet" StorageSharedStorageAccessTypeWorkletAppend StorageSharedStorageAccessType = "workletAppend" StorageSharedStorageAccessTypeWorkletDelete StorageSharedStorageAccessType = "workletDelete" StorageSharedStorageAccessTypeWorkletClear StorageSharedStorageAccessType = "workletClear" StorageSharedStorageAccessTypeWorkletGet StorageSharedStorageAccessType = "workletGet" StorageSharedStorageAccessTypeWorkletKeys StorageSharedStorageAccessType = "workletKeys" StorageSharedStorageAccessTypeWorkletEntries StorageSharedStorageAccessType = "workletEntries" StorageSharedStorageAccessTypeWorkletLength StorageSharedStorageAccessType = "workletLength" StorageSharedStorageAccessTypeWorkletRemainingBudget StorageSharedStorageAccessType = "workletRemainingBudget" StorageSharedStorageAccessTypeHeaderSet StorageSharedStorageAccessType = "headerSet" StorageSharedStorageAccessTypeHeaderAppend StorageSharedStorageAccessType = "headerAppend" StorageSharedStorageAccessTypeHeaderDelete StorageSharedStorageAccessType = "headerDelete" StorageSharedStorageAccessTypeHeaderClear StorageSharedStorageAccessType = "headerClear" )StorageSharedStorageAccessTypeDocumentAddModule
type StorageSharedStorageAccessed ¶ added in v0.112.1
type StorageSharedStorageAccessed struct { TimeSinceEpoch `json:"accessTime"` Type StorageSharedStorageAccessType `json:"type"` MainFrameID PageFrameID `json:"mainFrameId"` OwnerOrigin string `json:"ownerOrigin"` // presence/absence depends on `type`. Params *StorageSharedStorageAccessParams `json:"params"` }AccessTime
StorageSharedStorageAccessed Shared storage was accessed by the associated page. The following parameters are included in all events.
func (StorageSharedStorageAccessed) ProtoEvent ¶ added in v0.112.1
func (evt StorageSharedStorageAccessed) ProtoEvent() string
ProtoEvent name.
type StorageSharedStorageEntry ¶ added in v0.112.1
StorageSharedStorageEntry Struct for a single key-value pair in an origin's shared storage.
type StorageSharedStorageMetadata ¶ added in v0.112.1
type StorageSharedStorageMetadata struct { TimeSinceEpoch `json:"creationTime"` Length int `json:"length"` RemainingBudget float64 `json:"remainingBudget"` // storage. BytesUsed int `json:"bytesUsed"` }CreationTime
StorageSharedStorageMetadata Details for an origin's shared storage.
type StorageSharedStorageReportingMetadata ¶ added in v0.112.1
type StorageSharedStorageReportingMetadata struct { string `json:"eventType"` ReportingURL string `json:"reportingUrl"` }EventType
StorageSharedStorageReportingMetadata Pair of reporting metadata details for a candidate URL for `selectURL()`.
type StorageSharedStorageURLWithMetadata ¶ added in v0.112.1
type StorageSharedStorageURLWithMetadata struct { string `json:"url"` ReportingMetadata []*StorageSharedStorageReportingMetadata `json:"reportingMetadata"` }URL
StorageSharedStorageURLWithMetadata Bundles a candidate URL with its reporting metadata.
type StorageSignedInt64AsBase10 ¶ added in v0.115.0
type StorageSignedInt64AsBase10 string
StorageSignedInt64AsBase10 (experimental) ...
type StorageStorageBucket ¶ added in v0.115.0
type StorageStorageBucket struct { // StorageKey ... StorageKey StorageSerializedStorageKey `json:"storageKey"` // Name (optional) If not specified, it is the default bucket of the storageKey. Name string `json:"name,omitempty"` }
StorageStorageBucket ...
type StorageStorageBucketCreatedOrUpdated ¶ added in v0.112.9
type StorageStorageBucketCreatedOrUpdated struct { // BucketInfo ... BucketInfo *StorageStorageBucketInfo `json:"bucketInfo"` }
StorageStorageBucketCreatedOrUpdated ...
func (StorageStorageBucketCreatedOrUpdated) ProtoEvent ¶ added in v0.112.9
func (evt StorageStorageBucketCreatedOrUpdated) ProtoEvent() string
ProtoEvent name.
type StorageStorageBucketDeleted ¶ added in v0.112.9
type StorageStorageBucketDeleted struct { // BucketID ... BucketID string `json:"bucketId"` }
StorageStorageBucketDeleted ...
func (StorageStorageBucketDeleted) ProtoEvent ¶ added in v0.112.9
func (evt StorageStorageBucketDeleted) ProtoEvent() string
ProtoEvent name.
type StorageStorageBucketInfo ¶ added in v0.112.9
type StorageStorageBucketInfo struct { // Bucket ... Bucket *StorageStorageBucket `json:"bucket"` // ID ... ID string `json:"id"` // Expiration ... Expiration TimeSinceEpoch `json:"expiration"` // Quota Storage quota (bytes). Quota float64 `json:"quota"` // Persistent ... Persistent bool `json:"persistent"` // Durability ... Durability StorageStorageBucketsDurability `json:"durability"` }
StorageStorageBucketInfo ...
type StorageStorageBucketsDurability ¶ added in v0.112.9
type StorageStorageBucketsDurability string
StorageStorageBucketsDurability ...
const ( // StorageStorageBucketsDurabilityRelaxed enum const. StorageStorageBucketsDurabilityRelaxed StorageStorageBucketsDurability = "relaxed" // StorageStorageBucketsDurabilityStrict enum const. StorageStorageBucketsDurabilityStrict StorageStorageBucketsDurability = "strict" )
type StorageStorageType ¶
type StorageStorageType string
StorageStorageType Enum of possible storage types.
const ( // StorageStorageTypeAppcache enum const. StorageStorageTypeAppcache StorageStorageType = "appcache" // StorageStorageTypeCookies enum const. StorageStorageTypeCookies StorageStorageType = "cookies" // StorageStorageTypeFileSystems enum const. StorageStorageTypeFileSystems StorageStorageType = "file_systems" // StorageStorageTypeIndexeddb enum const. StorageStorageTypeIndexeddb StorageStorageType = "indexeddb" // StorageStorageTypeLocalStorage enum const. StorageStorageTypeLocalStorage StorageStorageType = "local_storage" // StorageStorageTypeShaderCache enum const. StorageStorageTypeShaderCache StorageStorageType = "shader_cache" // StorageStorageTypeWebsql enum const. StorageStorageTypeWebsql StorageStorageType = "websql" // StorageStorageTypeServiceWorkers enum const. StorageStorageTypeServiceWorkers StorageStorageType = "service_workers" // StorageStorageTypeCacheStorage enum const. StorageStorageTypeCacheStorage StorageStorageType = "cache_storage" // StorageStorageTypeInterestGroups enum const. StorageStorageTypeInterestGroups StorageStorageType = "interest_groups" StorageStorageTypeSharedStorage StorageStorageType = "shared_storage" // StorageStorageTypeStorageBuckets enum const. StorageStorageTypeStorageBuckets StorageStorageType = "storage_buckets" // StorageStorageTypeAll enum const. StorageStorageTypeAll StorageStorageType = "all" // StorageStorageTypeOther enum const. StorageStorageTypeOther StorageStorageType = "other" )
type StorageTrackCacheStorageForOrigin ¶
type StorageTrackCacheStorageForOrigin struct { // Origin Security origin. Origin string `json:"origin"` }
StorageTrackCacheStorageForOrigin Registers origin to be notified when an update occurs to its cache storage list.
func (StorageTrackCacheStorageForOrigin) Call ¶
func (m StorageTrackCacheStorageForOrigin) Call(c Client) error
Call sends the request.
func (StorageTrackCacheStorageForOrigin) ProtoReq ¶ added in v0.74.0
func (m StorageTrackCacheStorageForOrigin) ProtoReq() string
ProtoReq name.
type StorageTrackCacheStorageForStorageKey ¶ added in v0.112.3
type StorageTrackCacheStorageForStorageKey struct { // StorageKey Storage key. StorageKey string `json:"storageKey"` }
StorageTrackCacheStorageForStorageKey Registers storage key to be notified when an update occurs to its cache storage list.
func (StorageTrackCacheStorageForStorageKey) Call ¶ added in v0.112.3
func (m StorageTrackCacheStorageForStorageKey) Call(c Client) error
Call sends the request.
func (StorageTrackCacheStorageForStorageKey) ProtoReq ¶ added in v0.112.3
func (m StorageTrackCacheStorageForStorageKey) ProtoReq() string
ProtoReq name.
type StorageTrackIndexedDBForOrigin ¶
type StorageTrackIndexedDBForOrigin struct { // Origin Security origin. Origin string `json:"origin"` }
StorageTrackIndexedDBForOrigin Registers origin to be notified when an update occurs to its IndexedDB.
func (StorageTrackIndexedDBForOrigin) Call ¶
func (m StorageTrackIndexedDBForOrigin) Call(c Client) error
Call sends the request.
func (StorageTrackIndexedDBForOrigin) ProtoReq ¶ added in v0.74.0
func (m StorageTrackIndexedDBForOrigin) ProtoReq() string
ProtoReq name.
type StorageTrackIndexedDBForStorageKey ¶ added in v0.108.2
type StorageTrackIndexedDBForStorageKey struct { // StorageKey Storage key. StorageKey string `json:"storageKey"` }
StorageTrackIndexedDBForStorageKey Registers storage key to be notified when an update occurs to its IndexedDB.
func (StorageTrackIndexedDBForStorageKey) Call ¶ added in v0.108.2
func (m StorageTrackIndexedDBForStorageKey) Call(c Client) error
Call sends the request.
func (StorageTrackIndexedDBForStorageKey) ProtoReq ¶ added in v0.108.2
func (m StorageTrackIndexedDBForStorageKey) ProtoReq() string
ProtoReq name.
type StorageTrustTokens ¶ added in v0.90.0
type StorageTrustTokens struct { // IssuerOrigin ... IssuerOrigin string `json:"issuerOrigin"` // Count ... Count float64 `json:"count"` }
StorageTrustTokens (experimental) Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.
type StorageUnsignedInt128AsBase16 ¶ added in v0.115.0
type StorageUnsignedInt128AsBase16 string
StorageUnsignedInt128AsBase16 (experimental) ...
type StorageUnsignedInt64AsBase10 ¶ added in v0.115.0
type StorageUnsignedInt64AsBase10 string
StorageUnsignedInt64AsBase10 (experimental) ...
type StorageUntrackCacheStorageForOrigin ¶
type StorageUntrackCacheStorageForOrigin struct { // Origin Security origin. Origin string `json:"origin"` }
StorageUntrackCacheStorageForOrigin Unregisters origin from receiving notifications for cache storage.
func (StorageUntrackCacheStorageForOrigin) Call ¶
func (m StorageUntrackCacheStorageForOrigin) Call(c Client) error
Call sends the request.
func (StorageUntrackCacheStorageForOrigin) ProtoReq ¶ added in v0.74.0
func (m StorageUntrackCacheStorageForOrigin) ProtoReq() string
ProtoReq name.
type StorageUntrackCacheStorageForStorageKey ¶ added in v0.112.3
type StorageUntrackCacheStorageForStorageKey struct { // StorageKey Storage key. StorageKey string `json:"storageKey"` }
StorageUntrackCacheStorageForStorageKey Unregisters storage key from receiving notifications for cache storage.
func (StorageUntrackCacheStorageForStorageKey) Call ¶ added in v0.112.3
func (m StorageUntrackCacheStorageForStorageKey) Call(c Client) error
Call sends the request.
func (StorageUntrackCacheStorageForStorageKey) ProtoReq ¶ added in v0.112.3
func (m StorageUntrackCacheStorageForStorageKey) ProtoReq() string
ProtoReq name.
type StorageUntrackIndexedDBForOrigin ¶
type StorageUntrackIndexedDBForOrigin struct { // Origin Security origin. Origin string `json:"origin"` }
StorageUntrackIndexedDBForOrigin Unregisters origin from receiving notifications for IndexedDB.
func (StorageUntrackIndexedDBForOrigin) Call ¶
func (m StorageUntrackIndexedDBForOrigin) Call(c Client) error
Call sends the request.
func (StorageUntrackIndexedDBForOrigin) ProtoReq ¶ added in v0.74.0
func (m StorageUntrackIndexedDBForOrigin) ProtoReq() string
ProtoReq name.
type StorageUntrackIndexedDBForStorageKey ¶ added in v0.108.2
type StorageUntrackIndexedDBForStorageKey struct { // StorageKey Storage key. StorageKey string `json:"storageKey"` }
StorageUntrackIndexedDBForStorageKey Unregisters storage key from receiving notifications for IndexedDB.
func (StorageUntrackIndexedDBForStorageKey) Call ¶ added in v0.108.2
func (m StorageUntrackIndexedDBForStorageKey) Call(c Client) error
Call sends the request.
func (StorageUntrackIndexedDBForStorageKey) ProtoReq ¶ added in v0.108.2
func (m StorageUntrackIndexedDBForStorageKey) ProtoReq() string
ProtoReq name.
type StorageUsageForType ¶
type StorageUsageForType struct { // StorageType Name of storage type. StorageType StorageStorageType `json:"storageType"` // Usage Storage usage (bytes). Usage float64 `json:"usage"` }
StorageUsageForType Usage for a storage type.
type SystemInfoGPUDevice ¶
type SystemInfoGPUDevice struct { // VendorID PCI ID of the GPU vendor, if available; 0 otherwise. VendorID float64 `json:"vendorId"` // DeviceID PCI ID of the GPU device, if available; 0 otherwise. DeviceID float64 `json:"deviceId"` // SubSysID (optional) Sub sys ID of the GPU, only available on Windows. SubSysID *float64 `json:"subSysId,omitempty"` // Revision (optional) Revision of the GPU, only available on Windows. Revision *float64 `json:"revision,omitempty"` // VendorString String description of the GPU vendor, if the PCI ID is not available. VendorString string `json:"vendorString"` // DeviceString String description of the GPU device, if the PCI ID is not available. DeviceString string `json:"deviceString"` // DriverVendor String description of the GPU driver vendor. DriverVendor string `json:"driverVendor"` // DriverVersion String description of the GPU driver version. DriverVersion string `json:"driverVersion"` }
SystemInfoGPUDevice Describes a single graphics processor (GPU).
type SystemInfoGPUInfo ¶
type SystemInfoGPUInfo struct { // Devices The graphics devices on the system. Element 0 is the primary GPU. Devices []*SystemInfoGPUDevice `json:"devices"` // AuxAttributes (optional) An optional dictionary of additional GPU related attributes. AuxAttributes map[string]gson.JSON `json:"auxAttributes,omitempty"` // FeatureStatus (optional) An optional dictionary of graphics features and their status. FeatureStatus map[string]gson.JSON `json:"featureStatus,omitempty"` // DriverBugWorkarounds An optional array of GPU driver bug workarounds. DriverBugWorkarounds []string `json:"driverBugWorkarounds"` // VideoDecoding Supported accelerated video decoding capabilities. VideoDecoding []*SystemInfoVideoDecodeAcceleratorCapability `json:"videoDecoding"` // VideoEncoding Supported accelerated video encoding capabilities. VideoEncoding []*SystemInfoVideoEncodeAcceleratorCapability `json:"videoEncoding"` // ImageDecoding Supported accelerated image decoding capabilities. ImageDecoding []*SystemInfoImageDecodeAcceleratorCapability `json:"imageDecoding"` }
SystemInfoGPUInfo Provides information about the GPU(s) on the system.
type SystemInfoGetFeatureState ¶ added in v0.112.3
type SystemInfoGetFeatureState struct { // FeatureState ... FeatureState string `json:"featureState"` }
SystemInfoGetFeatureState Returns information about the feature state.
func (SystemInfoGetFeatureState) Call ¶ added in v0.112.3
func (m SystemInfoGetFeatureState) Call(c Client) (*SystemInfoGetFeatureStateResult, error)
Call the request.
func (SystemInfoGetFeatureState) ProtoReq ¶ added in v0.112.3
func (m SystemInfoGetFeatureState) ProtoReq() string
ProtoReq name.
type SystemInfoGetFeatureStateResult ¶ added in v0.112.3
type SystemInfoGetFeatureStateResult struct { // FeatureEnabled ... FeatureEnabled bool `json:"featureEnabled"` }
SystemInfoGetFeatureStateResult ...
type SystemInfoGetInfo ¶
type SystemInfoGetInfo struct{}
SystemInfoGetInfo Returns information about the system.
func (SystemInfoGetInfo) Call ¶
func (m SystemInfoGetInfo) Call(c Client) (*SystemInfoGetInfoResult, error)
Call the request.
func (SystemInfoGetInfo) ProtoReq ¶ added in v0.74.0
func (m SystemInfoGetInfo) ProtoReq() string
ProtoReq name.
type SystemInfoGetInfoResult ¶
type SystemInfoGetInfoResult struct { // Gpu Information about the GPUs on the system. Gpu *SystemInfoGPUInfo `json:"gpu"` // ModelName A platform-dependent description of the model of the machine. On Mac OS, this is, for // example, 'MacBookPro'. Will be the empty string if not supported. ModelName string `json:"modelName"` // ModelVersion A platform-dependent description of the version of the machine. On Mac OS, this is, for // example, '10.1'. Will be the empty string if not supported. ModelVersion string `json:"modelVersion"` // CommandLine The command line string used to launch the browser. Will be the empty string if not // supported. CommandLine string `json:"commandLine"` }
SystemInfoGetInfoResult ...
type SystemInfoGetProcessInfo ¶
type SystemInfoGetProcessInfo struct{}
SystemInfoGetProcessInfo Returns information about all running processes.
func (SystemInfoGetProcessInfo) Call ¶
func (m SystemInfoGetProcessInfo) Call(c Client) (*SystemInfoGetProcessInfoResult, error)
Call the request.
func (SystemInfoGetProcessInfo) ProtoReq ¶ added in v0.74.0
func (m SystemInfoGetProcessInfo) ProtoReq() string
ProtoReq name.
type SystemInfoGetProcessInfoResult ¶
type SystemInfoGetProcessInfoResult struct { // ProcessInfo An array of process info blocks. ProcessInfo []*SystemInfoProcessInfo `json:"processInfo"` }
SystemInfoGetProcessInfoResult ...
type SystemInfoImageDecodeAcceleratorCapability ¶
type SystemInfoImageDecodeAcceleratorCapability struct { // ImageType Image coded, e.g. Jpeg. ImageType SystemInfoImageType `json:"imageType"` // MaxDimensions Maximum supported dimensions of the image in pixels. MaxDimensions *SystemInfoSize `json:"maxDimensions"` // MinDimensions Minimum supported dimensions of the image in pixels. MinDimensions *SystemInfoSize `json:"minDimensions"` // Subsamplings Optional array of supported subsampling formats, e.g. 4:2:0, if known. Subsamplings []SystemInfoSubsamplingFormat `json:"subsamplings"` }
SystemInfoImageDecodeAcceleratorCapability Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.
type SystemInfoImageType ¶
type SystemInfoImageType string
SystemInfoImageType Image format of a given image.
const ( // SystemInfoImageTypeJpeg enum const. SystemInfoImageTypeJpeg SystemInfoImageType = "jpeg" // SystemInfoImageTypeWebp enum const. SystemInfoImageTypeWebp SystemInfoImageType = "webp" // SystemInfoImageTypeUnknown enum const. SystemInfoImageTypeUnknown SystemInfoImageType = "unknown" )
type SystemInfoProcessInfo ¶
type SystemInfoProcessInfo struct { // Type Specifies process type. Type string `json:"type"` // ID Specifies process id. ID int `json:"id"` // CPUTime Specifies cumulative CPU usage in seconds across all threads of the // process since the process start. CPUTime float64 `json:"cpuTime"` }
SystemInfoProcessInfo Represents process info.
type SystemInfoSize ¶
type SystemInfoSize struct { // Width in pixels. Width int `json:"width"` // Height in pixels. Height int `json:"height"` }
SystemInfoSize Describes the width and height dimensions of an entity.
type SystemInfoSubsamplingFormat ¶
type SystemInfoSubsamplingFormat string
SystemInfoSubsamplingFormat YUV subsampling type of the pixels of a given image.
const ( // SystemInfoSubsamplingFormatYuv420 enum const. SystemInfoSubsamplingFormatYuv420 SystemInfoSubsamplingFormat = "yuv420" // SystemInfoSubsamplingFormatYuv422 enum const. SystemInfoSubsamplingFormatYuv422 SystemInfoSubsamplingFormat = "yuv422" // SystemInfoSubsamplingFormatYuv444 enum const. SystemInfoSubsamplingFormatYuv444 SystemInfoSubsamplingFormat = "yuv444" )
type SystemInfoVideoDecodeAcceleratorCapability ¶
type SystemInfoVideoDecodeAcceleratorCapability struct { // Profile Video codec profile that is supported, e.g. VP9 Profile 2. Profile string `json:"profile"` // MaxResolution Maximum video dimensions in pixels supported for this |profile|. MaxResolution *SystemInfoSize `json:"maxResolution"` // MinResolution Minimum video dimensions in pixels supported for this |profile|. MinResolution *SystemInfoSize `json:"minResolution"` }
SystemInfoVideoDecodeAcceleratorCapability Describes a supported video decoding profile with its associated minimum and maximum resolutions.
type SystemInfoVideoEncodeAcceleratorCapability ¶
type SystemInfoVideoEncodeAcceleratorCapability struct { // Profile Video codec profile that is supported, e.g H264 Main. Profile string `json:"profile"` // MaxResolution Maximum video dimensions in pixels supported for this |profile|. MaxResolution *SystemInfoSize `json:"maxResolution"` // MaxFramerateNumerator Maximum encoding framerate in frames per second supported for this // |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, // 24000/1001 fps, etc. MaxFramerateNumerator int `json:"maxFramerateNumerator"` // MaxFramerateDenominator ... MaxFramerateDenominator int `json:"maxFramerateDenominator"` }
SystemInfoVideoEncodeAcceleratorCapability Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.
type TargetActivateTarget ¶
type TargetActivateTarget struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` }
TargetActivateTarget Activates (focuses) the target.
func (TargetActivateTarget) Call ¶
func (m TargetActivateTarget) Call(c Client) error
Call sends the request.
func (TargetActivateTarget) ProtoReq ¶ added in v0.74.0
func (m TargetActivateTarget) ProtoReq() string
ProtoReq name.
type TargetAttachToBrowserTarget ¶
type TargetAttachToBrowserTarget struct{}
TargetAttachToBrowserTarget (experimental) Attaches to the browser target, only uses flat sessionId mode.
func (TargetAttachToBrowserTarget) Call ¶
func (m TargetAttachToBrowserTarget) Call(c Client) (*TargetAttachToBrowserTargetResult, error)
Call the request.
func (TargetAttachToBrowserTarget) ProtoReq ¶ added in v0.74.0
func (m TargetAttachToBrowserTarget) ProtoReq() string
ProtoReq name.
type TargetAttachToBrowserTargetResult ¶
type TargetAttachToBrowserTargetResult struct { // SessionID Id assigned to the session. SessionID TargetSessionID `json:"sessionId"` }
TargetAttachToBrowserTargetResult (experimental) ...
type TargetAttachToTarget ¶
type TargetAttachToTarget struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` // Flatten (optional) Enables "flat" access to the session via specifying sessionId attribute in the commands. // We plan to make this the default, deprecate non-flattened mode, // and eventually retire it. See crbug.com/991325. Flatten bool `json:"flatten,omitempty"` }
TargetAttachToTarget Attaches to the target with given id.
func (TargetAttachToTarget) Call ¶
func (m TargetAttachToTarget) Call(c Client) (*TargetAttachToTargetResult, error)
Call the request.
func (TargetAttachToTarget) ProtoReq ¶ added in v0.74.0
func (m TargetAttachToTarget) ProtoReq() string
ProtoReq name.
type TargetAttachToTargetResult ¶
type TargetAttachToTargetResult struct { // SessionID Id assigned to the session. SessionID TargetSessionID `json:"sessionId"` }
TargetAttachToTargetResult ...
type TargetAttachedToTarget ¶
type TargetAttachedToTarget struct { // SessionID Identifier assigned to the session used to send/receive messages. SessionID TargetSessionID `json:"sessionId"` // TargetInfo ... TargetInfo *TargetTargetInfo `json:"targetInfo"` // WaitingForDebugger ... WaitingForDebugger bool `json:"waitingForDebugger"` }
TargetAttachedToTarget (experimental) Issued when attached to target because of auto-attach or `attachToTarget` command.
func (TargetAttachedToTarget) ProtoEvent ¶ added in v0.72.0
func (evt TargetAttachedToTarget) ProtoEvent() string
ProtoEvent name.
type TargetAutoAttachRelated ¶ added in v0.102.0
type TargetAutoAttachRelated struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` // WaitForDebuggerOnStart Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` // to run paused targets. WaitForDebuggerOnStart bool `json:"waitForDebuggerOnStart"` // Filter (experimental) (optional) Only targets matching filter will be attached. Filter TargetTargetFilter `json:"filter,omitempty"` }
TargetAutoAttachRelated (experimental) Adds the specified target to the list of targets that will be monitored for any related target creation (such as child frames, child workers and new versions of service worker) and reported through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only available at the Browser target.
func (TargetAutoAttachRelated) Call ¶ added in v0.102.0
func (m TargetAutoAttachRelated) Call(c Client) error
Call sends the request.
func (TargetAutoAttachRelated) ProtoReq ¶ added in v0.102.0
func (m TargetAutoAttachRelated) ProtoReq() string
ProtoReq name.
type TargetCloseTarget ¶
type TargetCloseTarget struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` }
TargetCloseTarget Closes the target. If the target is a page that gets closed too.
func (TargetCloseTarget) Call ¶
func (m TargetCloseTarget) Call(c Client) (*TargetCloseTargetResult, error)
Call the request.
func (TargetCloseTarget) ProtoReq ¶ added in v0.74.0
func (m TargetCloseTarget) ProtoReq() string
ProtoReq name.
type TargetCloseTargetResult ¶
type TargetCloseTargetResult struct { // Success (deprecated) Always set to true. If an error occurs, the response indicates protocol error. Success bool `json:"success"` }
TargetCloseTargetResult ...
type TargetCreateBrowserContext ¶
type TargetCreateBrowserContext struct { // DisposeOnDetach (experimental) (optional) If specified, disposes this context when debugging session disconnects. DisposeOnDetach bool `json:"disposeOnDetach,omitempty"` // ProxyServer (experimental) (optional) Proxy server, similar to the one passed to --proxy-server ProxyServer string `json:"proxyServer,omitempty"` // ProxyBypassList (experimental) (optional) Proxy bypass list, similar to the one passed to --proxy-bypass-list ProxyBypassList string `json:"proxyBypassList,omitempty"` // OriginsWithUniversalNetworkAccess (experimental) (optional) An optional list of origins to grant unlimited cross-origin access to. // Parts of the URL other than those constituting origin are ignored. OriginsWithUniversalNetworkAccess []string `json:"originsWithUniversalNetworkAccess,omitempty"` }
TargetCreateBrowserContext Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
func (TargetCreateBrowserContext) Call ¶
func (m TargetCreateBrowserContext) Call(c Client) (*TargetCreateBrowserContextResult, error)
Call the request.
func (TargetCreateBrowserContext) ProtoReq ¶ added in v0.74.0
func (m TargetCreateBrowserContext) ProtoReq() string
ProtoReq name.
type TargetCreateBrowserContextResult ¶
type TargetCreateBrowserContextResult struct { // BrowserContextID The id of the context created. BrowserContextID BrowserBrowserContextID `json:"browserContextId"` }
TargetCreateBrowserContextResult ...
type TargetCreateTarget ¶
type TargetCreateTarget struct { // URL The initial URL the page will be navigated to. An empty string indicates about:blank. URL string `json:"url"` // Width (optional) Frame width in DIP (headless chrome only). Width *int `json:"width,omitempty"` // Height (optional) Frame height in DIP (headless chrome only). Height *int `json:"height,omitempty"` // BrowserContextID (experimental) (optional) The browser context to create the page in. BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` // EnableBeginFrameControl (experimental) (optional) Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, // not supported on MacOS yet, false by default). EnableBeginFrameControl bool `json:"enableBeginFrameControl,omitempty"` // NewWindow (optional) Whether to create a new Window or Tab (chrome-only, false by default). NewWindow bool `json:"newWindow,omitempty"` // Background (optional) Whether to create the target in background or foreground (chrome-only, // false by default). Background bool `json:"background,omitempty"` // ForTab (experimental) (optional) Whether to create the target of type "tab". ForTab bool `json:"forTab,omitempty"` }
TargetCreateTarget Creates a new page.
func (TargetCreateTarget) Call ¶
func (m TargetCreateTarget) Call(c Client) (*TargetCreateTargetResult, error)
Call the request.
func (TargetCreateTarget) ProtoReq ¶ added in v0.74.0
func (m TargetCreateTarget) ProtoReq() string
ProtoReq name.
type TargetCreateTargetResult ¶
type TargetCreateTargetResult struct { // TargetID The id of the page opened. TargetID TargetTargetID `json:"targetId"` }
TargetCreateTargetResult ...
type TargetDetachFromTarget ¶
type TargetDetachFromTarget struct { // SessionID (optional) Session to detach. SessionID TargetSessionID `json:"sessionId,omitempty"` // TargetID (deprecated) (optional) Deprecated. TargetID TargetTargetID `json:"targetId,omitempty"` }
TargetDetachFromTarget Detaches session with given id.
func (TargetDetachFromTarget) Call ¶
func (m TargetDetachFromTarget) Call(c Client) error
Call sends the request.
func (TargetDetachFromTarget) ProtoReq ¶ added in v0.74.0
func (m TargetDetachFromTarget) ProtoReq() string
ProtoReq name.
type TargetDetachedFromTarget ¶
type TargetDetachedFromTarget struct { // SessionID Detached session identifier. SessionID TargetSessionID `json:"sessionId"` // TargetID (deprecated) (optional) Deprecated. TargetID TargetTargetID `json:"targetId,omitempty"` }
TargetDetachedFromTarget (experimental) Issued when detached from target for any reason (including `detachFromTarget` command). Can be issued multiple times per target if multiple sessions have been attached to it.
func (TargetDetachedFromTarget) ProtoEvent ¶ added in v0.72.0
func (evt TargetDetachedFromTarget) ProtoEvent() string
ProtoEvent name.
type TargetDisposeBrowserContext ¶
type TargetDisposeBrowserContext struct { // BrowserContextID ... BrowserContextID BrowserBrowserContextID `json:"browserContextId"` }
TargetDisposeBrowserContext Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
func (TargetDisposeBrowserContext) Call ¶
func (m TargetDisposeBrowserContext) Call(c Client) error
Call sends the request.
func (TargetDisposeBrowserContext) ProtoReq ¶ added in v0.74.0
func (m TargetDisposeBrowserContext) ProtoReq() string
ProtoReq name.
type TargetExposeDevToolsProtocol ¶
type TargetExposeDevToolsProtocol struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` // BindingName (optional) Binding name, 'cdp' if not specified. BindingName string `json:"bindingName,omitempty"` }
TargetExposeDevToolsProtocol (experimental) 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 following 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 (TargetExposeDevToolsProtocol) Call ¶
func (m TargetExposeDevToolsProtocol) Call(c Client) error
Call sends the request.
func (TargetExposeDevToolsProtocol) ProtoReq ¶ added in v0.74.0
func (m TargetExposeDevToolsProtocol) ProtoReq() string
ProtoReq name.
type TargetFilterEntry ¶ added in v0.108.2
type TargetFilterEntry struct { // Exclude (optional) If set, causes exclusion of matching targets from the list. Exclude bool `json:"exclude,omitempty"` // Type (optional) If not present, matches any type. Type string `json:"type,omitempty"` }
TargetFilterEntry (experimental) A filter used by target query/discovery/auto-attach operations.
type TargetGetBrowserContexts ¶
type TargetGetBrowserContexts struct{}
TargetGetBrowserContexts Returns all browser contexts created with `Target.createBrowserContext` method.
func (TargetGetBrowserContexts) Call ¶
func (m TargetGetBrowserContexts) Call(c Client) (*TargetGetBrowserContextsResult, error)
Call the request.
func (TargetGetBrowserContexts) ProtoReq ¶ added in v0.74.0
func (m TargetGetBrowserContexts) ProtoReq() string
ProtoReq name.
type TargetGetBrowserContextsResult ¶
type TargetGetBrowserContextsResult struct { // BrowserContextIDs An array of browser context ids. BrowserContextIDs []BrowserBrowserContextID `json:"browserContextIds"` }
TargetGetBrowserContextsResult ...
type TargetGetTargetInfo ¶
type TargetGetTargetInfo struct { // TargetID (optional) ... TargetID TargetTargetID `json:"targetId,omitempty"` }
TargetGetTargetInfo (experimental) Returns information about a target.
func (TargetGetTargetInfo) Call ¶
func (m TargetGetTargetInfo) Call(c Client) (*TargetGetTargetInfoResult, error)
Call the request.
func (TargetGetTargetInfo) ProtoReq ¶ added in v0.74.0
func (m TargetGetTargetInfo) ProtoReq() string
ProtoReq name.
type TargetGetTargetInfoResult ¶
type TargetGetTargetInfoResult struct { // TargetInfo ... TargetInfo *TargetTargetInfo `json:"targetInfo"` }
TargetGetTargetInfoResult (experimental) ...
type TargetGetTargets ¶
type TargetGetTargets struct { // Filter (experimental) (optional) Only targets matching filter will be reported. If filter is not specified // and target discovery is currently enabled, a filter used for target discovery // is used for consistency. Filter TargetTargetFilter `json:"filter,omitempty"` }
TargetGetTargets Retrieves a list of available targets.
func (TargetGetTargets) Call ¶
func (m TargetGetTargets) Call(c Client) (*TargetGetTargetsResult, error)
Call the request.
func (TargetGetTargets) ProtoReq ¶ added in v0.74.0
func (m TargetGetTargets) ProtoReq() string
ProtoReq name.
type TargetGetTargetsResult ¶
type TargetGetTargetsResult struct { // TargetInfos The list of targets. TargetInfos []*TargetTargetInfo `json:"targetInfos"` }
TargetGetTargetsResult ...
type TargetReceivedMessageFromTarget ¶
type TargetReceivedMessageFromTarget struct { // SessionID Identifier of a session which sends a message. SessionID TargetSessionID `json:"sessionId"` // Message ... Message string `json:"message"` // TargetID (deprecated) (optional) Deprecated. TargetID TargetTargetID `json:"targetId,omitempty"` }
TargetReceivedMessageFromTarget Notifies about a new protocol message received from the session (as reported in `attachedToTarget` event).
func (TargetReceivedMessageFromTarget) ProtoEvent ¶ added in v0.72.0
func (evt TargetReceivedMessageFromTarget) ProtoEvent() string
ProtoEvent name.
type TargetRemoteLocation ¶
type TargetRemoteLocation struct { // Host ... Host string `json:"host"` // Port ... Port int `json:"port"` }
TargetRemoteLocation (experimental) ...
type TargetSendMessageToTarget ¶
type TargetSendMessageToTarget struct { // Message ... Message string `json:"message"` // SessionID (optional) Identifier of the session. SessionID TargetSessionID `json:"sessionId,omitempty"` // TargetID (deprecated) (optional) Deprecated. TargetID TargetTargetID `json:"targetId,omitempty"` }
TargetSendMessageToTarget (deprecated) Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.
func (TargetSendMessageToTarget) Call ¶
func (m TargetSendMessageToTarget) Call(c Client) error
Call sends the request.
func (TargetSendMessageToTarget) ProtoReq ¶ added in v0.74.0
func (m TargetSendMessageToTarget) ProtoReq() string
ProtoReq name.
type TargetSessionID ¶
type TargetSessionID string
TargetSessionID Unique identifier of attached debugging session.
type TargetSetAutoAttach ¶
type TargetSetAutoAttach struct { // AutoAttach Whether to auto-attach to related targets. AutoAttach bool `json:"autoAttach"` // WaitForDebuggerOnStart Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` // to run paused targets. WaitForDebuggerOnStart bool `json:"waitForDebuggerOnStart"` // Flatten (experimental) (optional) Enables "flat" access to the session via specifying sessionId attribute in the commands. // We plan to make this the default, deprecate non-flattened mode, // and eventually retire it. See crbug.com/991325. Flatten bool `json:"flatten,omitempty"` // Filter (experimental) (optional) Only targets matching filter will be attached. Filter TargetTargetFilter `json:"filter,omitempty"` }
TargetSetAutoAttach 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. This also clears all targets added by `autoAttachRelated` from the list of targets to watch for creation of related targets.
func (TargetSetAutoAttach) Call ¶
func (m TargetSetAutoAttach) Call(c Client) error
Call sends the request.
func (TargetSetAutoAttach) ProtoReq ¶ added in v0.74.0
func (m TargetSetAutoAttach) ProtoReq() string
ProtoReq name.
type TargetSetDiscoverTargets ¶
type TargetSetDiscoverTargets struct { // Discover Whether to discover available targets. Discover bool `json:"discover"` // Filter (experimental) (optional) Only targets matching filter will be attached. If `discover` is false, // `filter` must be omitted or empty. Filter TargetTargetFilter `json:"filter,omitempty"` }
TargetSetDiscoverTargets Controls whether to discover available targets and notify via `targetCreated/targetInfoChanged/targetDestroyed` events.
func (TargetSetDiscoverTargets) Call ¶
func (m TargetSetDiscoverTargets) Call(c Client) error
Call sends the request.
func (TargetSetDiscoverTargets) ProtoReq ¶ added in v0.74.0
func (m TargetSetDiscoverTargets) ProtoReq() string
ProtoReq name.
type TargetSetRemoteLocations ¶
type TargetSetRemoteLocations struct { // Locations List of remote locations. Locations []*TargetRemoteLocation `json:"locations"` }
TargetSetRemoteLocations (experimental) Enables target discovery for the specified locations, when `setDiscoverTargets` was set to `true`.
func (TargetSetRemoteLocations) Call ¶
func (m TargetSetRemoteLocations) Call(c Client) error
Call sends the request.
func (TargetSetRemoteLocations) ProtoReq ¶ added in v0.74.0
func (m TargetSetRemoteLocations) ProtoReq() string
ProtoReq name.
type TargetTargetCrashed ¶
type TargetTargetCrashed struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` // Status Termination status type. Status string `json:"status"` // ErrorCode Termination error code. ErrorCode int `json:"errorCode"` }
TargetTargetCrashed Issued when a target has crashed.
func (TargetTargetCrashed) ProtoEvent ¶ added in v0.72.0
func (evt TargetTargetCrashed) ProtoEvent() string
ProtoEvent name.
type TargetTargetCreated ¶
type TargetTargetCreated struct { // TargetInfo ... TargetInfo *TargetTargetInfo `json:"targetInfo"` }
TargetTargetCreated Issued when a possible inspection target is created.
func (TargetTargetCreated) ProtoEvent ¶ added in v0.72.0
func (evt TargetTargetCreated) ProtoEvent() string
ProtoEvent name.
type TargetTargetDestroyed ¶
type TargetTargetDestroyed struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` }
TargetTargetDestroyed Issued when a target is destroyed.
func (TargetTargetDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt TargetTargetDestroyed) ProtoEvent() string
ProtoEvent name.
type TargetTargetFilter ¶ added in v0.108.2
type TargetTargetFilter []*TargetFilterEntry
TargetTargetFilter (experimental) The entries in TargetFilter are matched sequentially against targets and the first entry that matches determines if the target is included or not, depending on the value of `exclude` field in the entry. If filter is not specified, the one assumed is [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}] (i.e. include everything but `browser` and `tab`).
type TargetTargetInfo ¶
type TargetTargetInfo struct { // TargetID ... TargetID TargetTargetID `json:"targetId"` // Type List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22 Type TargetTargetInfoType `json:"type"` // Title ... Title string `json:"title"` // URL ... URL string `json:"url"` // Attached Whether the target has an attached client. Attached bool `json:"attached"` // OpenerID (optional) Opener target Id OpenerID TargetTargetID `json:"openerId,omitempty"` // CanAccessOpener (experimental) Whether the target has access to the originating window. CanAccessOpener bool `json:"canAccessOpener"` // OpenerFrameID (experimental) (optional) Frame id of originating window (is only set if target has an opener). OpenerFrameID PageFrameID `json:"openerFrameId,omitempty"` // BrowserContextID (experimental) (optional) ... BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"` // Subtype (experimental) (optional) Provides additional details for specific target types. For example, for // the type of "page", this may be set to "portal" or "prerender". Subtype string `json:"subtype,omitempty"` }
TargetTargetInfo ...
type TargetTargetInfoChanged ¶
type TargetTargetInfoChanged struct { // TargetInfo ... TargetInfo *TargetTargetInfo `json:"targetInfo"` }
TargetTargetInfoChanged Issued when some information about a target has changed. This only happens between `targetCreated` and `targetDestroyed`.
func (TargetTargetInfoChanged) ProtoEvent ¶ added in v0.72.0
func (evt TargetTargetInfoChanged) ProtoEvent() string
ProtoEvent name.
type TargetTargetInfoType ¶
type TargetTargetInfoType string
TargetTargetInfoType enum.
const ( // TargetTargetInfoTypePage enum const. TargetTargetInfoTypePage TargetTargetInfoType = "page" // TargetTargetInfoTypeBackgroundPage enum const. TargetTargetInfoTypeBackgroundPage TargetTargetInfoType = "background_page" // TargetTargetInfoTypeServiceWorker enum const. TargetTargetInfoTypeServiceWorker TargetTargetInfoType = "service_worker" TargetTargetInfoTypeSharedWorker TargetTargetInfoType = "shared_worker" // TargetTargetInfoTypeBrowser enum const. TargetTargetInfoTypeBrowser TargetTargetInfoType = "browser" // TargetTargetInfoTypeOther enum const. TargetTargetInfoTypeOther TargetTargetInfoType = "other" )
type TetheringAccepted ¶
type TetheringAccepted struct { // Port number that was successfully bound. Port int `json:"port"` // ConnectionID Connection id to be used. ConnectionID string `json:"connectionId"` }
TetheringAccepted Informs that port was successfully bound and got a specified connection id.
func (TetheringAccepted) ProtoEvent ¶ added in v0.72.0
func (evt TetheringAccepted) ProtoEvent() string
ProtoEvent name.
type TetheringBind ¶
type TetheringBind struct { // Port number to bind. Port int `json:"port"` }
TetheringBind Request browser port binding.
func (TetheringBind) ProtoReq ¶ added in v0.74.0
func (m TetheringBind) ProtoReq() string
ProtoReq name.
type TetheringUnbind ¶
type TetheringUnbind struct { // Port number to unbind. Port int `json:"port"` }
TetheringUnbind Request browser port unbinding.
func (TetheringUnbind) ProtoReq ¶ added in v0.74.0
func (m TetheringUnbind) ProtoReq() string
ProtoReq name.
type TimeSinceEpoch ¶
type TimeSinceEpoch float64
TimeSinceEpoch UTC time in seconds, counted from January 1, 1970. To convert a time.Time to TimeSinceEpoch, for example:
proto.TimeSinceEpoch(time.Now().Unix())
For session cookie, the value should be -1.
func (TimeSinceEpoch) String ¶ added in v0.93.0
func (t TimeSinceEpoch) String() string
String interface.
func (TimeSinceEpoch) Time ¶ added in v0.93.0
func (t TimeSinceEpoch) Time() time.Time
Time interface.
type TracingBufferUsage ¶
type TracingBufferUsage struct { // PercentFull (optional) A number in range [0..1] that indicates the used size of event buffer as a fraction of its // total size. PercentFull *float64 `json:"percentFull,omitempty"` // EventCount (optional) An approximate number of events in the trace log. EventCount *float64 `json:"eventCount,omitempty"` // Value (optional) A number in range [0..1] that indicates the used size of event buffer as a fraction of its // total size. Value *float64 `json:"value,omitempty"` }
TracingBufferUsage (experimental) ...
func (TracingBufferUsage) ProtoEvent ¶ added in v0.72.0
func (evt TracingBufferUsage) ProtoEvent() string
ProtoEvent name.
type TracingDataCollected ¶
TracingDataCollected (experimental) Contains a bucket of collected trace events. When tracing is stopped collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.
func (TracingDataCollected) ProtoEvent ¶ added in v0.72.0
func (evt TracingDataCollected) ProtoEvent() string
ProtoEvent name.
type TracingGetCategories ¶
type TracingGetCategories struct{}
TracingGetCategories (experimental) Gets supported tracing categories.
func (TracingGetCategories) Call ¶
func (m TracingGetCategories) Call(c Client) (*TracingGetCategoriesResult, error)
Call the request.
func (TracingGetCategories) ProtoReq ¶ added in v0.74.0
func (m TracingGetCategories) ProtoReq() string
ProtoReq name.
type TracingGetCategoriesResult ¶
type TracingGetCategoriesResult struct { // Categories A list of supported tracing categories. Categories []string `json:"categories"` }
TracingGetCategoriesResult (experimental) ...
type TracingMemoryDumpConfig ¶
TracingMemoryDumpConfig (experimental) Configuration for memory dump. Used only when "memory-infra" category is enabled.
type TracingMemoryDumpLevelOfDetail ¶ added in v0.90.0
type TracingMemoryDumpLevelOfDetail string
TracingMemoryDumpLevelOfDetail (experimental) Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom.
const ( // TracingMemoryDumpLevelOfDetailBackground enum const. TracingMemoryDumpLevelOfDetailBackground TracingMemoryDumpLevelOfDetail = "background" // TracingMemoryDumpLevelOfDetailLight enum const. TracingMemoryDumpLevelOfDetailLight TracingMemoryDumpLevelOfDetail = "light" // TracingMemoryDumpLevelOfDetailDetailed enum const. TracingMemoryDumpLevelOfDetailDetailed TracingMemoryDumpLevelOfDetail = "detailed" )
type TracingRecordClockSyncMarker ¶
type TracingRecordClockSyncMarker struct { // SyncID The ID of this clock sync marker SyncID string `json:"syncId"` }
TracingRecordClockSyncMarker (experimental) Record a clock sync marker in the trace.
func (TracingRecordClockSyncMarker) Call ¶
func (m TracingRecordClockSyncMarker) Call(c Client) error
Call sends the request.
func (TracingRecordClockSyncMarker) ProtoReq ¶ added in v0.74.0
func (m TracingRecordClockSyncMarker) ProtoReq() string
ProtoReq name.
type TracingRequestMemoryDump ¶
type TracingRequestMemoryDump struct { // Deterministic (optional) Enables more deterministic results by forcing garbage collection Deterministic bool `json:"deterministic,omitempty"` // LevelOfDetail (optional) Specifies level of details in memory dump. Defaults to "detailed". LevelOfDetail TracingMemoryDumpLevelOfDetail `json:"levelOfDetail,omitempty"` }
TracingRequestMemoryDump (experimental) Request a global memory dump.
func (TracingRequestMemoryDump) Call ¶
func (m TracingRequestMemoryDump) Call(c Client) (*TracingRequestMemoryDumpResult, error)
Call the request.
func (TracingRequestMemoryDump) ProtoReq ¶ added in v0.74.0
func (m TracingRequestMemoryDump) ProtoReq() string
ProtoReq name.
type TracingRequestMemoryDumpResult ¶
type TracingRequestMemoryDumpResult struct { // DumpGUID GUID of the resulting global memory dump. DumpGUID string `json:"dumpGuid"` // Success True iff the global memory dump succeeded. Success bool `json:"success"` }
TracingRequestMemoryDumpResult (experimental) ...
type TracingStart ¶
type TracingStart struct { // Categories (deprecated) (experimental) (optional) Category/tag filter Categories string `json:"categories,omitempty"` // Options (deprecated) (experimental) (optional) Tracing options Options string `json:"options,omitempty"` // BufferUsageReportingInterval (experimental) (optional) If set, the agent will issue bufferUsage events at this interval, specified in milliseconds BufferUsageReportingInterval *float64 `json:"bufferUsageReportingInterval,omitempty"` // TransferMode (optional) Whether to report trace events as series of dataCollected events or to save trace to a // stream (defaults to `ReportEvents`). TransferMode TracingStartTransferMode `json:"transferMode,omitempty"` // StreamFormat (optional) Trace data format to use. This only applies when using `ReturnAsStream` // transfer mode (defaults to `json`). StreamFormat TracingStreamFormat `json:"streamFormat,omitempty"` // StreamCompression (experimental) (optional) Compression format to use. This only applies when using `ReturnAsStream` // transfer mode (defaults to `none`) StreamCompression TracingStreamCompression `json:"streamCompression,omitempty"` // TraceConfig (optional) ... TraceConfig *TracingTraceConfig `json:"traceConfig,omitempty"` // PerfettoConfig (experimental) (optional) Base64-encoded serialized perfetto.protos.TraceConfig protobuf message // When specified, the parameters `categories`, `options`, `traceConfig` // are ignored. PerfettoConfig []byte `json:"perfettoConfig,omitempty"` // TracingBackend (experimental) (optional) Backend type (defaults to `auto`) TracingBackend TracingTracingBackend `json:"tracingBackend,omitempty"` }
TracingStart Start trace events collection.
func (TracingStart) ProtoReq ¶ added in v0.74.0
func (m TracingStart) ProtoReq() string
ProtoReq name.
type TracingStartTransferMode ¶
type TracingStartTransferMode string
TracingStartTransferMode enum.
const ( // TracingStartTransferModeReportEvents enum const. TracingStartTransferModeReportEvents TracingStartTransferMode = "ReportEvents" // TracingStartTransferModeReturnAsStream enum const. TracingStartTransferModeReturnAsStream TracingStartTransferMode = "ReturnAsStream" )
type TracingStreamCompression ¶
type TracingStreamCompression string
TracingStreamCompression (experimental) Compression type to use for traces returned via streams.
const ( // TracingStreamCompressionNone enum const. TracingStreamCompressionNone TracingStreamCompression = "none" // TracingStreamCompressionGzip enum const. TracingStreamCompressionGzip TracingStreamCompression = "gzip" )
type TracingStreamFormat ¶
type TracingStreamFormat string
TracingStreamFormat (experimental) Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.
const ( // TracingStreamFormatJSON enum const. TracingStreamFormatJSON TracingStreamFormat = "json" // TracingStreamFormatProto enum const. TracingStreamFormatProto TracingStreamFormat = "proto" )
type TracingTraceConfig ¶
type TracingTraceConfig struct { // RecordMode (experimental) (optional) Controls how the trace buffer stores data. RecordMode TracingTraceConfigRecordMode `json:"recordMode,omitempty"` // TraceBufferSizeInKb (experimental) (optional) Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value // of 200 MB would be used. TraceBufferSizeInKb *float64 `json:"traceBufferSizeInKb,omitempty"` // EnableSampling (experimental) (optional) Turns on JavaScript stack sampling. EnableSampling bool `json:"enableSampling,omitempty"` // EnableSystrace (experimental) (optional) Turns on system tracing. EnableSystrace bool `json:"enableSystrace,omitempty"` // EnableArgumentFilter (experimental) (optional) Turns on argument filter. EnableArgumentFilter bool `json:"enableArgumentFilter,omitempty"` // IncludedCategories (optional) Included category filters. IncludedCategories []string `json:"includedCategories,omitempty"` // ExcludedCategories (optional) Excluded category filters. ExcludedCategories []string `json:"excludedCategories,omitempty"` // SyntheticDelays (experimental) (optional) Configuration to synthesize the delays in tracing. SyntheticDelays []string `json:"syntheticDelays,omitempty"` // MemoryDumpConfig (experimental) (optional) Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. MemoryDumpConfig TracingMemoryDumpConfig `json:"memoryDumpConfig,omitempty"` }
TracingTraceConfig ...
type TracingTraceConfigRecordMode ¶
type TracingTraceConfigRecordMode string
TracingTraceConfigRecordMode enum.
const ( // TracingTraceConfigRecordModeRecordUntilFull enum const. TracingTraceConfigRecordModeRecordUntilFull TracingTraceConfigRecordMode = "recordUntilFull" // TracingTraceConfigRecordModeRecordContinuously enum const. TracingTraceConfigRecordModeRecordContinuously TracingTraceConfigRecordMode = "recordContinuously" // TracingTraceConfigRecordModeRecordAsMuchAsPossible enum const. TracingTraceConfigRecordModeRecordAsMuchAsPossible TracingTraceConfigRecordMode = "recordAsMuchAsPossible" // TracingTraceConfigRecordModeEchoToConsole enum const. TracingTraceConfigRecordModeEchoToConsole TracingTraceConfigRecordMode = "echoToConsole" )
type TracingTracingBackend ¶ added in v0.97.5
type TracingTracingBackend string
TracingTracingBackend (experimental) Backend type to use for tracing. `chrome` uses the Chrome-integrated tracing service and is supported on all platforms. `system` is only supported on Chrome OS and uses the Perfetto system tracing service. `auto` chooses `system` when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses `chrome`.
const ( // TracingTracingBackendAuto enum const. TracingTracingBackendAuto TracingTracingBackend = "auto" // TracingTracingBackendChrome enum const. TracingTracingBackendChrome TracingTracingBackend = "chrome" // TracingTracingBackendSystem enum const. TracingTracingBackendSystem TracingTracingBackend = "system" )
type TracingTracingComplete ¶
type TracingTracingComplete struct { // DataLossOccurred Indicates whether some trace data is known to have been lost, e.g. because the trace ring // buffer wrapped around. DataLossOccurred bool `json:"dataLossOccurred"` // Stream (optional) A handle of the stream that holds resulting trace data. Stream IOStreamHandle `json:"stream,omitempty"` // TraceFormat (optional) Trace data format of returned stream. TraceFormat TracingStreamFormat `json:"traceFormat,omitempty"` // StreamCompression (optional) Compression format of returned stream. StreamCompression TracingStreamCompression `json:"streamCompression,omitempty"` }
TracingTracingComplete Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
func (TracingTracingComplete) ProtoEvent ¶ added in v0.72.0
func (evt TracingTracingComplete) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioListener ¶
type WebAudioAudioListener struct { // ListenerID ... ListenerID WebAudioGraphObjectID `json:"listenerId"` // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` }
WebAudioAudioListener Protocol object for AudioListener.
type WebAudioAudioListenerCreated ¶
type WebAudioAudioListenerCreated struct { // Listener ... Listener *WebAudioAudioListener `json:"listener"` }
WebAudioAudioListenerCreated Notifies that the construction of an AudioListener has finished.
func (WebAudioAudioListenerCreated) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioListenerCreated) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioListenerWillBeDestroyed ¶
type WebAudioAudioListenerWillBeDestroyed struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // ListenerID ... ListenerID WebAudioGraphObjectID `json:"listenerId"` }
WebAudioAudioListenerWillBeDestroyed Notifies that a new AudioListener has been created.
func (WebAudioAudioListenerWillBeDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioListenerWillBeDestroyed) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioNode ¶
type WebAudioAudioNode struct { // NodeID ... NodeID WebAudioGraphObjectID `json:"nodeId"` // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // NodeType ... NodeType WebAudioNodeType `json:"nodeType"` // NumberOfInputs ... NumberOfInputs float64 `json:"numberOfInputs"` // NumberOfOutputs ... NumberOfOutputs float64 `json:"numberOfOutputs"` // ChannelCount ... ChannelCount float64 `json:"channelCount"` // ChannelCountMode ... ChannelCountMode WebAudioChannelCountMode `json:"channelCountMode"` // ChannelInterpretation ... ChannelInterpretation WebAudioChannelInterpretation `json:"channelInterpretation"` }
WebAudioAudioNode Protocol object for AudioNode.
type WebAudioAudioNodeCreated ¶
type WebAudioAudioNodeCreated struct { // Node ... Node *WebAudioAudioNode `json:"node"` }
WebAudioAudioNodeCreated Notifies that a new AudioNode has been created.
func (WebAudioAudioNodeCreated) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioNodeCreated) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioNodeWillBeDestroyed ¶
type WebAudioAudioNodeWillBeDestroyed struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // NodeID ... NodeID WebAudioGraphObjectID `json:"nodeId"` }
WebAudioAudioNodeWillBeDestroyed Notifies that an existing AudioNode has been destroyed.
func (WebAudioAudioNodeWillBeDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioNodeWillBeDestroyed) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioParam ¶
type WebAudioAudioParam struct { // ParamID ... ParamID WebAudioGraphObjectID `json:"paramId"` // NodeID ... NodeID WebAudioGraphObjectID `json:"nodeId"` // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // ParamType ... ParamType WebAudioParamType `json:"paramType"` // Rate ... Rate WebAudioAutomationRate `json:"rate"` // DefaultValue ... DefaultValue float64 `json:"defaultValue"` // MinValue ... MinValue float64 `json:"minValue"` // MaxValue ... MaxValue float64 `json:"maxValue"` }
WebAudioAudioParam Protocol object for AudioParam.
type WebAudioAudioParamCreated ¶
type WebAudioAudioParamCreated struct { // Param ... Param *WebAudioAudioParam `json:"param"` }
WebAudioAudioParamCreated Notifies that a new AudioParam has been created.
func (WebAudioAudioParamCreated) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioParamCreated) ProtoEvent() string
ProtoEvent name.
type WebAudioAudioParamWillBeDestroyed ¶
type WebAudioAudioParamWillBeDestroyed struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // NodeID ... NodeID WebAudioGraphObjectID `json:"nodeId"` // ParamID ... ParamID WebAudioGraphObjectID `json:"paramId"` }
WebAudioAudioParamWillBeDestroyed Notifies that an existing AudioParam has been destroyed.
func (WebAudioAudioParamWillBeDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioAudioParamWillBeDestroyed) ProtoEvent() string
ProtoEvent name.
type WebAudioAutomationRate ¶
type WebAudioAutomationRate string
WebAudioAutomationRate Enum of AudioParam::AutomationRate from the spec.
const ( // WebAudioAutomationRateARate enum const. WebAudioAutomationRateARate WebAudioAutomationRate = "a-rate" // WebAudioAutomationRateKRate enum const. WebAudioAutomationRateKRate WebAudioAutomationRate = "k-rate" )
type WebAudioBaseAudioContext ¶
type WebAudioBaseAudioContext struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // ContextType ... ContextType WebAudioContextType `json:"contextType"` // ContextState ... ContextState WebAudioContextState `json:"contextState"` // RealtimeData (optional) ... RealtimeData *WebAudioContextRealtimeData `json:"realtimeData,omitempty"` // CallbackBufferSize Platform-dependent callback buffer size. CallbackBufferSize float64 `json:"callbackBufferSize"` // MaxOutputChannelCount Number of output channels supported by audio hardware in use. MaxOutputChannelCount float64 `json:"maxOutputChannelCount"` // SampleRate Context sample rate. SampleRate float64 `json:"sampleRate"` }
WebAudioBaseAudioContext Protocol object for BaseAudioContext.
type WebAudioChannelCountMode ¶
type WebAudioChannelCountMode string
WebAudioChannelCountMode Enum of AudioNode::ChannelCountMode from the spec.
const ( // WebAudioChannelCountModeClampedMax enum const. WebAudioChannelCountModeClampedMax WebAudioChannelCountMode = "clamped-max" // WebAudioChannelCountModeExplicit enum const. WebAudioChannelCountModeExplicit WebAudioChannelCountMode = "explicit" // WebAudioChannelCountModeMax enum const. WebAudioChannelCountModeMax WebAudioChannelCountMode = "max" )
type WebAudioChannelInterpretation ¶
type WebAudioChannelInterpretation string
WebAudioChannelInterpretation Enum of AudioNode::ChannelInterpretation from the spec.
const ( // WebAudioChannelInterpretationDiscrete enum const. WebAudioChannelInterpretationDiscrete WebAudioChannelInterpretation = "discrete" // WebAudioChannelInterpretationSpeakers enum const. WebAudioChannelInterpretationSpeakers WebAudioChannelInterpretation = "speakers" )
type WebAudioContextChanged ¶
type WebAudioContextChanged struct { // Context ... Context *WebAudioBaseAudioContext `json:"context"` }
WebAudioContextChanged Notifies that existing BaseAudioContext has changed some properties (id stays the same)..
func (WebAudioContextChanged) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioContextChanged) ProtoEvent() string
ProtoEvent name.
type WebAudioContextCreated ¶
type WebAudioContextCreated struct { // Context ... Context *WebAudioBaseAudioContext `json:"context"` }
WebAudioContextCreated Notifies that a new BaseAudioContext has been created.
func (WebAudioContextCreated) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioContextCreated) ProtoEvent() string
ProtoEvent name.
type WebAudioContextRealtimeData ¶
type WebAudioContextRealtimeData struct { // CurrentTime The current context time in second in BaseAudioContext. CurrentTime float64 `json:"currentTime"` // RenderCapacity The time spent on rendering graph divided by render quantum duration, // and multiplied by 100. 100 means the audio renderer reached the full // capacity and glitch may occur. RenderCapacity float64 `json:"renderCapacity"` // CallbackIntervalMean A running mean of callback interval. CallbackIntervalMean float64 `json:"callbackIntervalMean"` // CallbackIntervalVariance A running variance of callback interval. CallbackIntervalVariance float64 `json:"callbackIntervalVariance"` }
WebAudioContextRealtimeData Fields in AudioContext that change in real-time.
type WebAudioContextState ¶
type WebAudioContextState string
WebAudioContextState Enum of AudioContextState from the spec.
const ( // WebAudioContextStateSuspended enum const. WebAudioContextStateSuspended WebAudioContextState = "suspended" // WebAudioContextStateRunning enum const. WebAudioContextStateRunning WebAudioContextState = "running" // WebAudioContextStateClosed enum const. WebAudioContextStateClosed WebAudioContextState = "closed" )
type WebAudioContextType ¶
type WebAudioContextType string
WebAudioContextType Enum of BaseAudioContext types.
const ( // WebAudioContextTypeRealtime enum const. WebAudioContextTypeRealtime WebAudioContextType = "realtime" // WebAudioContextTypeOffline enum const. WebAudioContextTypeOffline WebAudioContextType = "offline" )
type WebAudioContextWillBeDestroyed ¶
type WebAudioContextWillBeDestroyed struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` }
WebAudioContextWillBeDestroyed Notifies that an existing BaseAudioContext will be destroyed.
func (WebAudioContextWillBeDestroyed) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioContextWillBeDestroyed) ProtoEvent() string
ProtoEvent name.
type WebAudioDisable ¶
type WebAudioDisable struct{}
WebAudioDisable Disables the WebAudio domain.
func (WebAudioDisable) ProtoReq ¶ added in v0.74.0
func (m WebAudioDisable) ProtoReq() string
ProtoReq name.
type WebAudioEnable ¶
type WebAudioEnable struct{}
WebAudioEnable Enables the WebAudio domain and starts sending context lifetime events.
func (WebAudioEnable) ProtoReq ¶ added in v0.74.0
func (m WebAudioEnable) ProtoReq() string
ProtoReq name.
type WebAudioGetRealtimeData ¶
type WebAudioGetRealtimeData struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` }
WebAudioGetRealtimeData Fetch the realtime data from the registered contexts.
func (WebAudioGetRealtimeData) Call ¶
func (m WebAudioGetRealtimeData) Call(c Client) (*WebAudioGetRealtimeDataResult, error)
Call the request.
func (WebAudioGetRealtimeData) ProtoReq ¶ added in v0.74.0
func (m WebAudioGetRealtimeData) ProtoReq() string
ProtoReq name.
type WebAudioGetRealtimeDataResult ¶
type WebAudioGetRealtimeDataResult struct { // RealtimeData ... RealtimeData *WebAudioContextRealtimeData `json:"realtimeData"` }
WebAudioGetRealtimeDataResult ...
type WebAudioGraphObjectID ¶
type WebAudioGraphObjectID string
WebAudioGraphObjectID An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API.
type WebAudioNodeParamConnected ¶
type WebAudioNodeParamConnected struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // SourceID ... SourceID WebAudioGraphObjectID `json:"sourceId"` // DestinationID ... DestinationID WebAudioGraphObjectID `json:"destinationId"` // SourceOutputIndex (optional) ... SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"` }
WebAudioNodeParamConnected Notifies that an AudioNode is connected to an AudioParam.
func (WebAudioNodeParamConnected) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioNodeParamConnected) ProtoEvent() string
ProtoEvent name.
type WebAudioNodeParamDisconnected ¶
type WebAudioNodeParamDisconnected struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // SourceID ... SourceID WebAudioGraphObjectID `json:"sourceId"` // DestinationID ... DestinationID WebAudioGraphObjectID `json:"destinationId"` // SourceOutputIndex (optional) ... SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"` }
WebAudioNodeParamDisconnected Notifies that an AudioNode is disconnected to an AudioParam.
func (WebAudioNodeParamDisconnected) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioNodeParamDisconnected) ProtoEvent() string
ProtoEvent name.
type WebAudioNodesConnected ¶
type WebAudioNodesConnected struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // SourceID ... SourceID WebAudioGraphObjectID `json:"sourceId"` // DestinationID ... DestinationID WebAudioGraphObjectID `json:"destinationId"` // SourceOutputIndex (optional) ... SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"` // DestinationInputIndex (optional) ... DestinationInputIndex *float64 `json:"destinationInputIndex,omitempty"` }
WebAudioNodesConnected Notifies that two AudioNodes are connected.
func (WebAudioNodesConnected) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioNodesConnected) ProtoEvent() string
ProtoEvent name.
type WebAudioNodesDisconnected ¶
type WebAudioNodesDisconnected struct { // ContextID ... ContextID WebAudioGraphObjectID `json:"contextId"` // SourceID ... SourceID WebAudioGraphObjectID `json:"sourceId"` // DestinationID ... DestinationID WebAudioGraphObjectID `json:"destinationId"` // SourceOutputIndex (optional) ... SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"` // DestinationInputIndex (optional) ... DestinationInputIndex *float64 `json:"destinationInputIndex,omitempty"` }
WebAudioNodesDisconnected Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
func (WebAudioNodesDisconnected) ProtoEvent ¶ added in v0.72.0
func (evt WebAudioNodesDisconnected) ProtoEvent() string
ProtoEvent name.
type WebAuthnAddCredential ¶
type WebAuthnAddCredential struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // Credential ... Credential *WebAuthnCredential `json:"credential"` }
WebAuthnAddCredential Adds the credential to the specified authenticator.
func (WebAuthnAddCredential) Call ¶
func (m WebAuthnAddCredential) Call(c Client) error
Call sends the request.
func (WebAuthnAddCredential) ProtoReq ¶ added in v0.74.0
func (m WebAuthnAddCredential) ProtoReq() string
ProtoReq name.
type WebAuthnAddVirtualAuthenticator ¶
type WebAuthnAddVirtualAuthenticator struct { // Options ... Options *WebAuthnVirtualAuthenticatorOptions `json:"options"` }
WebAuthnAddVirtualAuthenticator Creates and adds a virtual authenticator.
func (WebAuthnAddVirtualAuthenticator) Call ¶
func (m WebAuthnAddVirtualAuthenticator) Call(c Client) (*WebAuthnAddVirtualAuthenticatorResult, error)
Call the request.
func (WebAuthnAddVirtualAuthenticator) ProtoReq ¶ added in v0.74.0
func (m WebAuthnAddVirtualAuthenticator) ProtoReq() string
ProtoReq name.
type WebAuthnAddVirtualAuthenticatorResult ¶
type WebAuthnAddVirtualAuthenticatorResult struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` }
WebAuthnAddVirtualAuthenticatorResult ...
type WebAuthnAuthenticatorProtocol ¶
type WebAuthnAuthenticatorProtocol string
WebAuthnAuthenticatorProtocol ...
const ( // WebAuthnAuthenticatorProtocolU2f enum const. WebAuthnAuthenticatorProtocolU2f WebAuthnAuthenticatorProtocol = "u2f" // WebAuthnAuthenticatorProtocolCtap2 enum const. WebAuthnAuthenticatorProtocolCtap2 WebAuthnAuthenticatorProtocol = "ctap2" )
type WebAuthnAuthenticatorTransport ¶
type WebAuthnAuthenticatorTransport string
WebAuthnAuthenticatorTransport ...
const ( // WebAuthnAuthenticatorTransportUsb enum const. WebAuthnAuthenticatorTransportUsb WebAuthnAuthenticatorTransport = "usb" // WebAuthnAuthenticatorTransportNfc enum const. WebAuthnAuthenticatorTransportNfc WebAuthnAuthenticatorTransport = "nfc" // WebAuthnAuthenticatorTransportBle enum const. WebAuthnAuthenticatorTransportBle WebAuthnAuthenticatorTransport = "ble" // WebAuthnAuthenticatorTransportCable enum const. WebAuthnAuthenticatorTransportCable WebAuthnAuthenticatorTransport = "cable" // WebAuthnAuthenticatorTransportInternal enum const. WebAuthnAuthenticatorTransportInternal WebAuthnAuthenticatorTransport = "internal" )
type WebAuthnClearCredentials ¶
type WebAuthnClearCredentials struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` }
WebAuthnClearCredentials Clears all the credentials from the specified device.
func (WebAuthnClearCredentials) Call ¶
func (m WebAuthnClearCredentials) Call(c Client) error
Call sends the request.
func (WebAuthnClearCredentials) ProtoReq ¶ added in v0.74.0
func (m WebAuthnClearCredentials) ProtoReq() string
ProtoReq name.
type WebAuthnCredential ¶
type WebAuthnCredential struct { // CredentialID ... CredentialID []byte `json:"credentialId"` // IsResidentCredential ... IsResidentCredential bool `json:"isResidentCredential"` // RpID (optional) Relying Party ID the credential is scoped to. Must be set when adding a // credential. RpID string `json:"rpId,omitempty"` // PrivateKey The ECDSA P-256 private key in PKCS#8 format. PrivateKey []byte `json:"privateKey"` // UserHandle (optional) An opaque byte sequence with a maximum size of 64 bytes mapping the // credential to a specific user. UserHandle []byte `json:"userHandle,omitempty"` // SignCount Signature counter. This is incremented by one for each successful // assertion. // See https://w3c.github.io/webauthn/#signature-counter SignCount int `json:"signCount"` // LargeBlob (optional) The large blob associated with the credential. // See https://w3c.github.io/webauthn/#sctn-large-blob-extension LargeBlob []byte `json:"largeBlob,omitempty"` // BackupEligibility (optional) Assertions returned by this credential will have the backup eligibility // (BE) flag set to this value. Defaults to the authenticator's // defaultBackupEligibility value. BackupEligibility bool `json:"backupEligibility,omitempty"` // BackupState (optional) Assertions returned by this credential will have the backup state (BS) // flag set to this value. Defaults to the authenticator's // defaultBackupState value. BackupState bool `json:"backupState,omitempty"` }
WebAuthnCredential ...
type WebAuthnCredentialAdded ¶ added in v0.112.3
type WebAuthnCredentialAdded struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // Credential ... Credential *WebAuthnCredential `json:"credential"` }
WebAuthnCredentialAdded Triggered when a credential is added to an authenticator.
func (WebAuthnCredentialAdded) ProtoEvent ¶ added in v0.112.3
func (evt WebAuthnCredentialAdded) ProtoEvent() string
ProtoEvent name.
type WebAuthnCredentialAsserted ¶ added in v0.112.3
type WebAuthnCredentialAsserted struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // Credential ... Credential *WebAuthnCredential `json:"credential"` }
WebAuthnCredentialAsserted Triggered when a credential is used in a webauthn assertion.
func (WebAuthnCredentialAsserted) ProtoEvent ¶ added in v0.112.3
func (evt WebAuthnCredentialAsserted) ProtoEvent() string
ProtoEvent name.
type WebAuthnCtap2Version ¶ added in v0.90.0
type WebAuthnCtap2Version string
WebAuthnCtap2Version ...
const ( // WebAuthnCtap2VersionCtap20 enum const. WebAuthnCtap2VersionCtap20 WebAuthnCtap2Version = "ctap2_0" // WebAuthnCtap2VersionCtap21 enum const. WebAuthnCtap2VersionCtap21 WebAuthnCtap2Version = "ctap2_1" )
type WebAuthnDisable ¶
type WebAuthnDisable struct{}
WebAuthnDisable Disable the WebAuthn domain.
func (WebAuthnDisable) ProtoReq ¶ added in v0.74.0
func (m WebAuthnDisable) ProtoReq() string
ProtoReq name.
type WebAuthnEnable ¶
type WebAuthnEnable struct { // EnableUI (optional) Whether to enable the WebAuthn user interface. Enabling the UI is // recommended for debugging and demo purposes, as it is closer to the real // experience. Disabling the UI is recommended for automated testing. // Supported at the embedder's discretion if UI is available. // Defaults to false. EnableUI bool `json:"enableUI,omitempty"` }
WebAuthnEnable Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
func (WebAuthnEnable) ProtoReq ¶ added in v0.74.0
func (m WebAuthnEnable) ProtoReq() string
ProtoReq name.
type WebAuthnGetCredential ¶
type WebAuthnGetCredential struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // CredentialID ... CredentialID []byte `json:"credentialId"` }
WebAuthnGetCredential Returns a single credential stored in the given virtual authenticator that matches the credential ID.
func (WebAuthnGetCredential) Call ¶
func (m WebAuthnGetCredential) Call(c Client) (*WebAuthnGetCredentialResult, error)
Call the request.
func (WebAuthnGetCredential) ProtoReq ¶ added in v0.74.0
func (m WebAuthnGetCredential) ProtoReq() string
ProtoReq name.
type WebAuthnGetCredentialResult ¶
type WebAuthnGetCredentialResult struct { // Credential ... Credential *WebAuthnCredential `json:"credential"` }
WebAuthnGetCredentialResult ...
type WebAuthnGetCredentials ¶
type WebAuthnGetCredentials struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` }
WebAuthnGetCredentials Returns all the credentials stored in the given virtual authenticator.
func (WebAuthnGetCredentials) Call ¶
func (m WebAuthnGetCredentials) Call(c Client) (*WebAuthnGetCredentialsResult, error)
Call the request.
func (WebAuthnGetCredentials) ProtoReq ¶ added in v0.74.0
func (m WebAuthnGetCredentials) ProtoReq() string
ProtoReq name.
type WebAuthnGetCredentialsResult ¶
type WebAuthnGetCredentialsResult struct { // Credentials ... Credentials []*WebAuthnCredential `json:"credentials"` }
WebAuthnGetCredentialsResult ...
type WebAuthnRemoveCredential ¶
type WebAuthnRemoveCredential struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // CredentialID ... CredentialID []byte `json:"credentialId"` }
WebAuthnRemoveCredential Removes a credential from the authenticator.
func (WebAuthnRemoveCredential) Call ¶
func (m WebAuthnRemoveCredential) Call(c Client) error
Call sends the request.
func (WebAuthnRemoveCredential) ProtoReq ¶ added in v0.74.0
func (m WebAuthnRemoveCredential) ProtoReq() string
ProtoReq name.
type WebAuthnRemoveVirtualAuthenticator ¶
type WebAuthnRemoveVirtualAuthenticator struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` }
WebAuthnRemoveVirtualAuthenticator Removes the given authenticator.
func (WebAuthnRemoveVirtualAuthenticator) Call ¶
func (m WebAuthnRemoveVirtualAuthenticator) Call(c Client) error
Call sends the request.
func (WebAuthnRemoveVirtualAuthenticator) ProtoReq ¶ added in v0.74.0
func (m WebAuthnRemoveVirtualAuthenticator) ProtoReq() string
ProtoReq name.
type WebAuthnSetAutomaticPresenceSimulation ¶ added in v0.72.0
type WebAuthnSetAutomaticPresenceSimulation struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // Enabled ... Enabled bool `json:"enabled"` }
WebAuthnSetAutomaticPresenceSimulation 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 (WebAuthnSetAutomaticPresenceSimulation) Call ¶ added in v0.72.0
func (m WebAuthnSetAutomaticPresenceSimulation) Call(c Client) error
Call sends the request.
func (WebAuthnSetAutomaticPresenceSimulation) ProtoReq ¶ added in v0.74.0
func (m WebAuthnSetAutomaticPresenceSimulation) ProtoReq() string
ProtoReq name.
type WebAuthnSetCredentialProperties ¶ added in v0.115.0
type WebAuthnSetCredentialProperties struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // CredentialID ... CredentialID []byte `json:"credentialId"` // BackupEligibility (optional) ... BackupEligibility bool `json:"backupEligibility,omitempty"` // BackupState (optional) ... BackupState bool `json:"backupState,omitempty"` }
WebAuthnSetCredentialProperties Allows setting credential properties. https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties
func (WebAuthnSetCredentialProperties) Call ¶ added in v0.115.0
func (m WebAuthnSetCredentialProperties) Call(c Client) error
Call sends the request.
func (WebAuthnSetCredentialProperties) ProtoReq ¶ added in v0.115.0
func (m WebAuthnSetCredentialProperties) ProtoReq() string
ProtoReq name.
type WebAuthnSetResponseOverrideBits ¶ added in v0.112.3
type WebAuthnSetResponseOverrideBits struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // IsBogusSignature (optional) If isBogusSignature is set, overrides the signature in the authenticator response to be zero. // Defaults to false. IsBogusSignature bool `json:"isBogusSignature,omitempty"` // IsBadUV (optional) If isBadUV is set, overrides the UV bit in the flags in the authenticator response to // be zero. Defaults to false. IsBadUV bool `json:"isBadUV,omitempty"` // IsBadUP (optional) If isBadUP is set, overrides the UP bit in the flags in the authenticator response to // be zero. Defaults to false. IsBadUP bool `json:"isBadUP,omitempty"` }
WebAuthnSetResponseOverrideBits Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
func (WebAuthnSetResponseOverrideBits) Call ¶ added in v0.112.3
func (m WebAuthnSetResponseOverrideBits) Call(c Client) error
Call sends the request.
func (WebAuthnSetResponseOverrideBits) ProtoReq ¶ added in v0.112.3
func (m WebAuthnSetResponseOverrideBits) ProtoReq() string
ProtoReq name.
type WebAuthnSetUserVerified ¶
type WebAuthnSetUserVerified struct { // AuthenticatorID ... AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"` // IsUserVerified ... IsUserVerified bool `json:"isUserVerified"` }
WebAuthnSetUserVerified Sets whether User Verification succeeds or fails for an authenticator. The default is true.
func (WebAuthnSetUserVerified) Call ¶
func (m WebAuthnSetUserVerified) Call(c Client) error
Call sends the request.
func (WebAuthnSetUserVerified) ProtoReq ¶ added in v0.74.0
func (m WebAuthnSetUserVerified) ProtoReq() string
ProtoReq name.
type WebAuthnVirtualAuthenticatorOptions ¶
type WebAuthnVirtualAuthenticatorOptions struct { // Protocol ... Protocol WebAuthnAuthenticatorProtocol `json:"protocol"` // Ctap2Version (optional) Defaults to ctap2_0. Ignored if |protocol| == u2f. Ctap2Version WebAuthnCtap2Version `json:"ctap2Version,omitempty"` // Transport ... Transport WebAuthnAuthenticatorTransport `json:"transport"` // HasResidentKey (optional) Defaults to false. HasResidentKey bool `json:"hasResidentKey,omitempty"` // HasUserVerification (optional) Defaults to false. HasUserVerification bool `json:"hasUserVerification,omitempty"` // HasLargeBlob (optional) If set to true, the authenticator will support the largeBlob extension. // https://w3c.github.io/webauthn#largeBlob // Defaults to false. HasLargeBlob bool `json:"hasLargeBlob,omitempty"` // HasCredBlob (optional) If set to true, the authenticator will support the credBlob extension. // https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension // Defaults to false. HasCredBlob bool `json:"hasCredBlob,omitempty"` // HasMinPinLength (optional) If set to true, the authenticator will support the minPinLength extension. // https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension // Defaults to false. HasMinPinLength bool `json:"hasMinPinLength,omitempty"` // HasPrf (optional) If set to true, the authenticator will support the prf extension. // https://w3c.github.io/webauthn/#prf-extension // Defaults to false. HasPrf bool `json:"hasPrf,omitempty"` // AutomaticPresenceSimulation (optional) If set to true, tests of user presence will succeed immediately. // Otherwise, they will not be resolved. Defaults to true. AutomaticPresenceSimulation bool `json:"automaticPresenceSimulation,omitempty"` // IsUserVerified (optional) Sets whether User Verification succeeds or fails for an authenticator. // Defaults to false. IsUserVerified bool `json:"isUserVerified,omitempty"` // DefaultBackupEligibility (optional) Credentials created by this authenticator will have the backup // eligibility (BE) flag set to this value. Defaults to false. // https://w3c.github.io/webauthn/#sctn-credential-backup DefaultBackupEligibility bool `json:"defaultBackupEligibility,omitempty"` // DefaultBackupState (optional) Credentials created by this authenticator will have the backup state // (BS) flag set to this value. Defaults to false. // https://w3c.github.io/webauthn/#sctn-credential-backup DefaultBackupState bool `json:"defaultBackupState,omitempty"` }
WebAuthnVirtualAuthenticatorOptions ...
Source Files ¶
- a_interface.go
- a_patch.go
- a_utils.go
- accessibility.go
- animation.go
- audits.go
- autofill.go
- background_service.go
- browser.go
- cache_storage.go
- cast.go
- console.go
- css.go
- database.go
- debugger.go
- definitions.go
- device_access.go
- device_orientation.go
- dom.go
- dom_debugger.go
- dom_snapshot.go
- dom_storage.go
- emulation.go
- event_breakpoints.go
- extensions.go
- fed_cm.go
- fetch.go
- headless_experimental.go
- heap_profiler.go
- indexed_db.go
- input.go
- inspector.go
- io.go
- layer_tree.go
- log.go
- media.go
- memory.go
- network.go
- overlay.go
- page.go
- performance.go
- performance_timeline.go
- preload.go
- profiler.go
- pwa.go
- runtime.go
- schema.go
- security.go
- service_worker.go
- storage.go
- system_info.go
- target.go
- tethering.go
- tracing.go
- web_audio.go
- web_authn.go