Versions in this module Expand all Collapse all v0 v0.158.2 Oct 17, 2026 v0.158.1 Oct 16, 2026 v0.158.0 Oct 14, 2026 v0.157.11 Oct 13, 2026 v0.157.10 Oct 12, 2026 v0.157.9 Oct 5, 2026 v0.157.8 Oct 5, 2026 v0.157.7 Oct 5, 2026 v0.157.6 Oct 4, 2026 v0.157.5 Oct 4, 2026 v0.157.4 Oct 3, 2026 v0.157.3 Oct 3, 2026 Changes in this version + var DragIntercepted = cdp.Event[EventDragIntercepted] v0.157.2 Oct 3, 2026 v0.157.1 Oct 3, 2026 Changes in this version + type DispatchDragEventType string + const DispatchDragEventTypeDragCancel + const DispatchDragEventTypeDragEnter + const DispatchDragEventTypeDragOver + const DispatchDragEventTypeDrop + func (t DispatchDragEventType) String() string + type DispatchKeyEventType string + const DispatchKeyEventTypeChar + const DispatchKeyEventTypeKeyDown + const DispatchKeyEventTypeKeyUp + const DispatchKeyEventTypeRawKeyDown + func (t DispatchKeyEventType) String() string + type DispatchMouseEventPointerType string + const DispatchMouseEventPointerTypeMouse + const DispatchMouseEventPointerTypePen + func (t DispatchMouseEventPointerType) String() string + type DispatchMouseEventType string + const DispatchMouseEventTypeMouseMoved + const DispatchMouseEventTypeMousePressed + const DispatchMouseEventTypeMouseReleased + const DispatchMouseEventTypeMouseWheel + func (t DispatchMouseEventType) String() string + type DispatchTouchEventType string + const DispatchTouchEventTypeTouchCancel + const DispatchTouchEventTypeTouchEnd + const DispatchTouchEventTypeTouchMove + const DispatchTouchEventTypeTouchStart + func (t DispatchTouchEventType) String() string + type EmulateTouchFromMouseEventType string + const EmulateTouchFromMouseEventTypeMouseMoved + const EmulateTouchFromMouseEventTypeMousePressed + const EmulateTouchFromMouseEventTypeMouseReleased + const EmulateTouchFromMouseEventTypeMouseWheel + func (t EmulateTouchFromMouseEventType) String() string v0.157.0 Oct 3, 2026 Changes in this version + const CommandCancelDragging + const CommandDispatchDragEvent + const CommandDispatchKeyEvent + const CommandDispatchMouseEvent + const CommandDispatchTouchEvent + const CommandEmulateTouchFromMouseEvent + const CommandImeSetComposition + const CommandInsertText + const CommandSetIgnoreInputEvents + const CommandSetInterceptDrags + const CommandSynthesizePinchGesture + const CommandSynthesizeScrollGesture + const CommandSynthesizeTapGesture + type CancelDraggingParams struct + func CancelDragging() *CancelDraggingParams + func (p *CancelDraggingParams) Do(ctx context.Context) (err error) + type DispatchDragEventParams struct + Data *DragData + Modifiers int64 + Type string + X float64 + Y float64 + func DispatchDragEvent(typeVal string, x float64, y float64, data *DragData) *DispatchDragEventParams + func (p *DispatchDragEventParams) Do(ctx context.Context) (err error) + func (p DispatchDragEventParams) WithModifiers(modifiers int64) *DispatchDragEventParams + type DispatchKeyEventParams struct + AutoRepeat bool + Code string + Commands []string + IsKeypad bool + IsSystemKey bool + Key string + KeyIdentifier string + Location int64 + Modifiers int64 + NativeVirtualKeyCode int64 + Text string + Timestamp TimeSinceEpoch + Type string + UnmodifiedText string + WindowsVirtualKeyCode int64 + func DispatchKeyEvent(typeVal string) *DispatchKeyEventParams + func (p *DispatchKeyEventParams) Do(ctx context.Context) (err error) + func (p DispatchKeyEventParams) WithAutoRepeat(autoRepeat bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCode(code string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCommands(commands []string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsKeypad(isKeypad bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsSystemKey(isSystemKey bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKey(key string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKeyIdentifier(keyIdentifier string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithLocation(location int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithModifiers(modifiers int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithNativeVirtualKeyCode(nativeVirtualKeyCode int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithText(text string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithTimestamp(timestamp TimeSinceEpoch) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithUnmodifiedText(unmodifiedText string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithWindowsVirtualKeyCode(windowsVirtualKeyCode int64) *DispatchKeyEventParams + type DispatchMouseEventParams struct + Button MouseButton + Buttons int64 + ClickCount int64 + DeltaX float64 + DeltaY float64 + Force float64 + Modifiers int64 + PointerType string + TangentialPressure float64 + TiltX float64 + TiltY float64 + Timestamp TimeSinceEpoch + Twist int64 + Type string + X float64 + Y float64 + func DispatchMouseEvent(typeVal string, x float64, y float64) *DispatchMouseEventParams + func (p *DispatchMouseEventParams) Do(ctx context.Context) (err error) + func (p DispatchMouseEventParams) WithButton(button MouseButton) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithClickCount(clickCount int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaX(deltaX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaY(deltaY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithForce(force float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithModifiers(modifiers int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithPointerType(pointerType string) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTangentialPressure(tangentialPressure float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltX(tiltX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltY(tiltY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTimestamp(timestamp TimeSinceEpoch) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTwist(twist int64) *DispatchMouseEventParams + type DispatchTouchEventParams struct + Modifiers int64 + Timestamp TimeSinceEpoch + TouchPoints []*TouchPoint + Type string + func DispatchTouchEvent(typeVal string, touchPoints []*TouchPoint) *DispatchTouchEventParams + func (p *DispatchTouchEventParams) Do(ctx context.Context) (err error) + func (p DispatchTouchEventParams) WithModifiers(modifiers int64) *DispatchTouchEventParams + func (p DispatchTouchEventParams) WithTimestamp(timestamp TimeSinceEpoch) *DispatchTouchEventParams + type DragData struct + DragOperationsMask int64 + Files []string + Items []*DragDataItem + type DragDataItem struct + BaseURL string + Data string + MimeType string + Title string + type EmulateTouchFromMouseEventParams struct + Button MouseButton + ClickCount int64 + DeltaX float64 + DeltaY float64 + Modifiers int64 + Timestamp TimeSinceEpoch + Type string + X int64 + Y int64 + func EmulateTouchFromMouseEvent(typeVal string, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams + func (p *EmulateTouchFromMouseEventParams) Do(ctx context.Context) (err error) + func (p EmulateTouchFromMouseEventParams) WithClickCount(clickCount int64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaX(deltaX float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaY(deltaY float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithModifiers(modifiers int64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithTimestamp(timestamp TimeSinceEpoch) *EmulateTouchFromMouseEventParams + type EventDragIntercepted struct + Data *DragData + type GestureSourceType string + const GestureSourceTypeDefault + const GestureSourceTypeMouse + const GestureSourceTypeTouch + func (t *GestureSourceType) UnmarshalJSON(buf []byte) error + func (t GestureSourceType) String() string + type ImeSetCompositionParams struct + ReplacementEnd int64 + ReplacementStart int64 + SelectionEnd int64 + SelectionStart int64 + Text string + func ImeSetComposition(text string, selectionStart int64, selectionEnd int64) *ImeSetCompositionParams + func (p *ImeSetCompositionParams) Do(ctx context.Context) (err error) + func (p ImeSetCompositionParams) WithReplacementEnd(replacementEnd int64) *ImeSetCompositionParams + func (p ImeSetCompositionParams) WithReplacementStart(replacementStart int64) *ImeSetCompositionParams + type InsertTextParams struct + Text string + func InsertText(text string) *InsertTextParams + func (p *InsertTextParams) Do(ctx context.Context) (err error) + type MouseButton string + const MouseButtonBack + const MouseButtonForward + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonNone + const MouseButtonRight + func (t *MouseButton) UnmarshalJSON(buf []byte) error + func (t MouseButton) String() string + type SetIgnoreInputEventsParams struct + Ignore bool + func SetIgnoreInputEvents(ignore bool) *SetIgnoreInputEventsParams + func (p *SetIgnoreInputEventsParams) Do(ctx context.Context) (err error) + type SetInterceptDragsParams struct + Enabled bool + func SetInterceptDrags(enabled bool) *SetInterceptDragsParams + func (p *SetInterceptDragsParams) Do(ctx context.Context) (err error) + type SynthesizePinchGestureParams struct + GestureSourceType GestureSourceType + RelativeSpeed int64 + ScaleFactor float64 + X float64 + Y float64 + func SynthesizePinchGesture(x float64, y float64, scaleFactor float64) *SynthesizePinchGestureParams + func (p *SynthesizePinchGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizePinchGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams + func (p SynthesizePinchGestureParams) WithRelativeSpeed(relativeSpeed int64) *SynthesizePinchGestureParams + type SynthesizeScrollGestureParams struct + GestureSourceType GestureSourceType + InteractionMarkerName string + PreventFling bool + RepeatCount int64 + RepeatDelayMs int64 + Speed int64 + X float64 + XDistance float64 + XOverscroll float64 + Y float64 + YDistance float64 + YOverscroll float64 + func SynthesizeScrollGesture(x float64, y float64) *SynthesizeScrollGestureParams + func (p *SynthesizeScrollGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeScrollGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithInteractionMarkerName(interactionMarkerName string) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithPreventFling(preventFling bool) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatCount(repeatCount int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatDelayMs(repeatDelayMs int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithSpeed(speed int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXDistance(xDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYDistance(yDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams + type SynthesizeTapGestureParams struct + Duration int64 + GestureSourceType GestureSourceType + TapCount int64 + X float64 + Y float64 + func SynthesizeTapGesture(x float64, y float64) *SynthesizeTapGestureParams + func (p *SynthesizeTapGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeTapGestureParams) WithDuration(duration int64) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithTapCount(tapCount int64) *SynthesizeTapGestureParams + type TimeSinceEpoch float64 + func (t TimeSinceEpoch) Float64() float64 + type TouchPoint struct + Force float64 + ID float64 + RadiusX float64 + RadiusY float64 + RotationAngle float64 + TangentialPressure float64 + TiltX float64 + TiltY float64 + Twist int64 + X float64 + Y float64