package input

Import Path
	github.com/chromedp/cdproto/input (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 3 packages

Involved Source Files easyjson.go events.go Package input provides the Chrome DevTools Protocol commands, types, and events for the Input domain. Generated by the cdproto-gen command. types.go
Package-Level Type Names (total 26)
/* sort by: | */
CancelDraggingParams cancels any active dragging in the page. Do executes Input.cancelDragging against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *CancelDraggingParams : github.com/chromedp/chromedp.Action *CancelDraggingParams : github.com/chromedp/chromedp.CallAction *CancelDraggingParams : github.com/chromedp/chromedp.EmulateAction *CancelDraggingParams : github.com/chromedp/chromedp.EvaluateAction *CancelDraggingParams : github.com/chromedp/chromedp.KeyAction *CancelDraggingParams : github.com/chromedp/chromedp.MouseAction *CancelDraggingParams : github.com/chromedp/chromedp.NavigateAction *CancelDraggingParams : github.com/chromedp/chromedp.PollAction *CancelDraggingParams : github.com/chromedp/chromedp.QueryAction CancelDraggingParams : github.com/goccy/go-json.Marshaler *CancelDraggingParams : github.com/goccy/go-json.Unmarshaler CancelDraggingParams : github.com/mailru/easyjson.Marshaler *CancelDraggingParams : github.com/mailru/easyjson.MarshalerUnmarshaler *CancelDraggingParams : github.com/mailru/easyjson.Unmarshaler CancelDraggingParams : encoding/json.Marshaler *CancelDraggingParams : encoding/json.Unmarshaler func CancelDragging() *CancelDraggingParams
DispatchDragEventParams dispatches a drag event into the page. Data *DragData // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). // Type of the drag event. // X coordinate of the event relative to the main frame's viewport in CSS pixels. // 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. Do executes Input.dispatchDragEvent against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). *DispatchDragEventParams : github.com/chromedp/chromedp.Action *DispatchDragEventParams : github.com/chromedp/chromedp.CallAction *DispatchDragEventParams : github.com/chromedp/chromedp.EmulateAction *DispatchDragEventParams : github.com/chromedp/chromedp.EvaluateAction *DispatchDragEventParams : github.com/chromedp/chromedp.KeyAction *DispatchDragEventParams : github.com/chromedp/chromedp.MouseAction *DispatchDragEventParams : github.com/chromedp/chromedp.NavigateAction *DispatchDragEventParams : github.com/chromedp/chromedp.PollAction *DispatchDragEventParams : github.com/chromedp/chromedp.QueryAction DispatchDragEventParams : github.com/goccy/go-json.Marshaler *DispatchDragEventParams : github.com/goccy/go-json.Unmarshaler DispatchDragEventParams : github.com/mailru/easyjson.Marshaler *DispatchDragEventParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchDragEventParams : github.com/mailru/easyjson.Unmarshaler DispatchDragEventParams : encoding/json.Marshaler *DispatchDragEventParams : encoding/json.Unmarshaler func DispatchDragEvent(typeVal DispatchDragEventType, x float64, y float64, data *DragData) *DispatchDragEventParams func DispatchDragEventParams.WithModifiers(modifiers Modifier) *DispatchDragEventParams
DispatchDragEventType type of the drag event. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchDragEvent MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the DispatchDragEventType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. DispatchDragEventType : github.com/goccy/go-json.Marshaler *DispatchDragEventType : github.com/goccy/go-json.Unmarshaler DispatchDragEventType : github.com/mailru/easyjson.Marshaler *DispatchDragEventType : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchDragEventType : github.com/mailru/easyjson.Unmarshaler DispatchDragEventType : encoding/json.Marshaler *DispatchDragEventType : encoding/json.Unmarshaler DispatchDragEventType : expvar.Var DispatchDragEventType : fmt.Stringer func DispatchDragEvent(typeVal DispatchDragEventType, x float64, y float64, data *DragData) *DispatchDragEventParams const DragCancel const DragEnter const DragOver const Drop
DispatchKeyEventParams dispatches a key event to the page. // Whether the event was generated from auto repeat (default: false). // Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). // 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. // Whether the event was generated from the keypad (default: false). // Whether the event was a system key event (default: false). // Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). // Unique key identifier (e.g., 'U+0041') (default: ""). // Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). // Native virtual key code (default: 0). // Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "") // Time at which the event occurred. // Type of the key event. // Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: ""). // Windows virtual key code (default: 0). Do executes Input.dispatchKeyEvent against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithAutoRepeat whether the event was generated from auto repeat (default: false). WithCode unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). WithCommands 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. WithIsKeypad whether the event was generated from the keypad (default: false). WithIsSystemKey whether the event was a system key event (default: false). WithKey unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). WithKeyIdentifier unique key identifier (e.g., 'U+0041') (default: ""). WithLocation whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). WithNativeVirtualKeyCode native virtual key code (default: 0). WithText text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: ""). WithTimestamp time at which the event occurred. WithUnmodifiedText text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: ""). WithWindowsVirtualKeyCode windows virtual key code (default: 0). *DispatchKeyEventParams : github.com/chromedp/chromedp.Action *DispatchKeyEventParams : github.com/chromedp/chromedp.CallAction *DispatchKeyEventParams : github.com/chromedp/chromedp.EmulateAction *DispatchKeyEventParams : github.com/chromedp/chromedp.EvaluateAction *DispatchKeyEventParams : github.com/chromedp/chromedp.KeyAction *DispatchKeyEventParams : github.com/chromedp/chromedp.MouseAction *DispatchKeyEventParams : github.com/chromedp/chromedp.NavigateAction *DispatchKeyEventParams : github.com/chromedp/chromedp.PollAction *DispatchKeyEventParams : github.com/chromedp/chromedp.QueryAction DispatchKeyEventParams : github.com/goccy/go-json.Marshaler *DispatchKeyEventParams : github.com/goccy/go-json.Unmarshaler DispatchKeyEventParams : github.com/mailru/easyjson.Marshaler *DispatchKeyEventParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchKeyEventParams : github.com/mailru/easyjson.Unmarshaler DispatchKeyEventParams : encoding/json.Marshaler *DispatchKeyEventParams : encoding/json.Unmarshaler func DispatchKeyEvent(typeVal KeyType) *DispatchKeyEventParams func DispatchKeyEventParams.WithAutoRepeat(autoRepeat bool) *DispatchKeyEventParams func DispatchKeyEventParams.WithCode(code string) *DispatchKeyEventParams func DispatchKeyEventParams.WithCommands(commands []string) *DispatchKeyEventParams func DispatchKeyEventParams.WithIsKeypad(isKeypad bool) *DispatchKeyEventParams func DispatchKeyEventParams.WithIsSystemKey(isSystemKey bool) *DispatchKeyEventParams func DispatchKeyEventParams.WithKey(key string) *DispatchKeyEventParams func DispatchKeyEventParams.WithKeyIdentifier(keyIdentifier string) *DispatchKeyEventParams func DispatchKeyEventParams.WithLocation(location int64) *DispatchKeyEventParams func DispatchKeyEventParams.WithModifiers(modifiers Modifier) *DispatchKeyEventParams func DispatchKeyEventParams.WithNativeVirtualKeyCode(nativeVirtualKeyCode int64) *DispatchKeyEventParams func DispatchKeyEventParams.WithText(text string) *DispatchKeyEventParams func DispatchKeyEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchKeyEventParams func DispatchKeyEventParams.WithUnmodifiedText(unmodifiedText string) *DispatchKeyEventParams func DispatchKeyEventParams.WithWindowsVirtualKeyCode(windowsVirtualKeyCode int64) *DispatchKeyEventParams func github.com/chromedp/chromedp/kb.Encode(r rune) []*DispatchKeyEventParams func github.com/chromedp/chromedp/kb.EncodeUnidentified(r rune) []*DispatchKeyEventParams
DispatchMouseEventParams dispatches a mouse event to the page. // Mouse button (default: "none"). // 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. // Number of times the mouse button was clicked (default: 0). // X delta in CSS pixels for mouse wheel event (default: 0). // Y delta in CSS pixels for mouse wheel event (default: 0). // The normalized pressure, which has a range of [0,1] (default: 0). // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). // Pointer type (default: "mouse"). // The normalized tangential pressure, which has a range of [-1,1] (default: 0). // 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). // 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). // Time at which the event occurred. // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). // Type of the mouse event. // X coordinate of the event relative to the main frame's viewport in CSS pixels. // 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. Do executes Input.dispatchMouseEvent against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithButton mouse button (default: "none"). WithButtons 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. WithClickCount number of times the mouse button was clicked (default: 0). WithDeltaX X delta in CSS pixels for mouse wheel event (default: 0). WithDeltaY Y delta in CSS pixels for mouse wheel event (default: 0). WithForce the normalized pressure, which has a range of [0,1] (default: 0). WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). WithPointerType pointer type (default: "mouse"). WithTangentialPressure the normalized tangential pressure, which has a range of [-1,1] (default: 0). WithTiltX 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). WithTiltY 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). WithTimestamp time at which the event occurred. WithTwist the clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). *DispatchMouseEventParams : github.com/chromedp/chromedp.Action *DispatchMouseEventParams : github.com/chromedp/chromedp.CallAction *DispatchMouseEventParams : github.com/chromedp/chromedp.EmulateAction *DispatchMouseEventParams : github.com/chromedp/chromedp.EvaluateAction *DispatchMouseEventParams : github.com/chromedp/chromedp.KeyAction *DispatchMouseEventParams : github.com/chromedp/chromedp.MouseAction *DispatchMouseEventParams : github.com/chromedp/chromedp.NavigateAction *DispatchMouseEventParams : github.com/chromedp/chromedp.PollAction *DispatchMouseEventParams : github.com/chromedp/chromedp.QueryAction DispatchMouseEventParams : github.com/goccy/go-json.Marshaler *DispatchMouseEventParams : github.com/goccy/go-json.Unmarshaler DispatchMouseEventParams : github.com/mailru/easyjson.Marshaler *DispatchMouseEventParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchMouseEventParams : github.com/mailru/easyjson.Unmarshaler DispatchMouseEventParams : encoding/json.Marshaler *DispatchMouseEventParams : encoding/json.Unmarshaler func DispatchMouseEvent(typeVal MouseType, x float64, y float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithButton(button MouseButton) *DispatchMouseEventParams func DispatchMouseEventParams.WithButtons(buttons int64) *DispatchMouseEventParams func DispatchMouseEventParams.WithClickCount(clickCount int64) *DispatchMouseEventParams func DispatchMouseEventParams.WithDeltaX(deltaX float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithDeltaY(deltaY float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithForce(force float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithModifiers(modifiers Modifier) *DispatchMouseEventParams func DispatchMouseEventParams.WithPointerType(pointerType DispatchMouseEventPointerType) *DispatchMouseEventParams func DispatchMouseEventParams.WithTangentialPressure(tangentialPressure float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithTiltX(tiltX float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithTiltY(tiltY float64) *DispatchMouseEventParams func DispatchMouseEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchMouseEventParams func DispatchMouseEventParams.WithTwist(twist int64) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonLeft(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonMiddle(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonNone(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonRight(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonLeft(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonMiddle(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonNone(p *DispatchMouseEventParams) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonRight(p *DispatchMouseEventParams) *DispatchMouseEventParams
DispatchMouseEventPointerType pointer type (default: "mouse"). See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the DispatchMouseEventPointerType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. DispatchMouseEventPointerType : github.com/goccy/go-json.Marshaler *DispatchMouseEventPointerType : github.com/goccy/go-json.Unmarshaler DispatchMouseEventPointerType : github.com/mailru/easyjson.Marshaler *DispatchMouseEventPointerType : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchMouseEventPointerType : github.com/mailru/easyjson.Unmarshaler DispatchMouseEventPointerType : encoding/json.Marshaler *DispatchMouseEventPointerType : encoding/json.Unmarshaler DispatchMouseEventPointerType : expvar.Var DispatchMouseEventPointerType : fmt.Stringer func DispatchMouseEventParams.WithPointerType(pointerType DispatchMouseEventPointerType) *DispatchMouseEventParams const Mouse const Pen
DispatchTouchEventParams dispatches a touch event to the page. // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). // Time at which the event occurred. // 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. // Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. Do executes Input.dispatchTouchEvent against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). WithTimestamp time at which the event occurred. *DispatchTouchEventParams : github.com/chromedp/chromedp.Action *DispatchTouchEventParams : github.com/chromedp/chromedp.CallAction *DispatchTouchEventParams : github.com/chromedp/chromedp.EmulateAction *DispatchTouchEventParams : github.com/chromedp/chromedp.EvaluateAction *DispatchTouchEventParams : github.com/chromedp/chromedp.KeyAction *DispatchTouchEventParams : github.com/chromedp/chromedp.MouseAction *DispatchTouchEventParams : github.com/chromedp/chromedp.NavigateAction *DispatchTouchEventParams : github.com/chromedp/chromedp.PollAction *DispatchTouchEventParams : github.com/chromedp/chromedp.QueryAction DispatchTouchEventParams : github.com/goccy/go-json.Marshaler *DispatchTouchEventParams : github.com/goccy/go-json.Unmarshaler DispatchTouchEventParams : github.com/mailru/easyjson.Marshaler *DispatchTouchEventParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DispatchTouchEventParams : github.com/mailru/easyjson.Unmarshaler DispatchTouchEventParams : encoding/json.Marshaler *DispatchTouchEventParams : encoding/json.Unmarshaler func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams func DispatchTouchEventParams.WithModifiers(modifiers Modifier) *DispatchTouchEventParams func DispatchTouchEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchTouchEventParams
DragData [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-DragData // Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 // List of filenames that should be included when dropping Items []*DragDataItem MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface DragData : github.com/goccy/go-json.Marshaler *DragData : github.com/goccy/go-json.Unmarshaler DragData : github.com/mailru/easyjson.Marshaler *DragData : github.com/mailru/easyjson.MarshalerUnmarshaler *DragData : github.com/mailru/easyjson.Unmarshaler DragData : encoding/json.Marshaler *DragData : encoding/json.Unmarshaler func DispatchDragEvent(typeVal DispatchDragEventType, x float64, y float64, data *DragData) *DispatchDragEventParams
DragDataItem [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-DragDataItem // Stores the base URL for the contained markup. Only valid when mimeType == "text/html". // Depending of the value of mimeType, it contains the dragged link, text, HTML markup or any other data. // Mime type of the dragged data. // Title associated with a link. Only valid when mimeType == "text/uri-list". MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface DragDataItem : github.com/goccy/go-json.Marshaler *DragDataItem : github.com/goccy/go-json.Unmarshaler DragDataItem : github.com/mailru/easyjson.Marshaler *DragDataItem : github.com/mailru/easyjson.MarshalerUnmarshaler *DragDataItem : github.com/mailru/easyjson.Unmarshaler DragDataItem : encoding/json.Marshaler *DragDataItem : encoding/json.Unmarshaler
EmulateTouchFromMouseEventParams emulates touch event from the mouse event parameters. // Mouse button. Only "none", "left", "right" are supported. // Number of times the mouse button was clicked (default: 0). // X delta in DIP for mouse wheel event (default: 0). // Y delta in DIP for mouse wheel event (default: 0). // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). // Time at which the event occurred (default: current time). // Type of the mouse event. // X coordinate of the mouse pointer in DIP. // Y coordinate of the mouse pointer in DIP. Do executes Input.emulateTouchFromMouseEvent against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithClickCount number of times the mouse button was clicked (default: 0). WithDeltaX X delta in DIP for mouse wheel event (default: 0). WithDeltaY Y delta in DIP for mouse wheel event (default: 0). WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). WithTimestamp time at which the event occurred (default: current time). *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.Action *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.CallAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.EmulateAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.EvaluateAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.KeyAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.MouseAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.NavigateAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.PollAction *EmulateTouchFromMouseEventParams : github.com/chromedp/chromedp.QueryAction EmulateTouchFromMouseEventParams : github.com/goccy/go-json.Marshaler *EmulateTouchFromMouseEventParams : github.com/goccy/go-json.Unmarshaler EmulateTouchFromMouseEventParams : github.com/mailru/easyjson.Marshaler *EmulateTouchFromMouseEventParams : github.com/mailru/easyjson.MarshalerUnmarshaler *EmulateTouchFromMouseEventParams : github.com/mailru/easyjson.Unmarshaler EmulateTouchFromMouseEventParams : encoding/json.Marshaler *EmulateTouchFromMouseEventParams : encoding/json.Unmarshaler func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams func EmulateTouchFromMouseEventParams.WithClickCount(clickCount int64) *EmulateTouchFromMouseEventParams func EmulateTouchFromMouseEventParams.WithDeltaX(deltaX float64) *EmulateTouchFromMouseEventParams func EmulateTouchFromMouseEventParams.WithDeltaY(deltaY float64) *EmulateTouchFromMouseEventParams func EmulateTouchFromMouseEventParams.WithModifiers(modifiers Modifier) *EmulateTouchFromMouseEventParams func EmulateTouchFromMouseEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *EmulateTouchFromMouseEventParams
EventDragIntercepted emitted only when Input.setInterceptDrags is enabled. Use this data with Input.dispatchDragEvent to restore normal drag and drop behavior. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#event-dragIntercepted Data *DragData MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventDragIntercepted : github.com/goccy/go-json.Marshaler *EventDragIntercepted : github.com/goccy/go-json.Unmarshaler EventDragIntercepted : github.com/mailru/easyjson.Marshaler *EventDragIntercepted : github.com/mailru/easyjson.MarshalerUnmarshaler *EventDragIntercepted : github.com/mailru/easyjson.Unmarshaler EventDragIntercepted : encoding/json.Marshaler *EventDragIntercepted : encoding/json.Unmarshaler
GestureSourceType [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-GestureSourceType MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the GestureSourceType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. GestureSourceType : github.com/goccy/go-json.Marshaler *GestureSourceType : github.com/goccy/go-json.Unmarshaler GestureSourceType : github.com/mailru/easyjson.Marshaler *GestureSourceType : github.com/mailru/easyjson.MarshalerUnmarshaler *GestureSourceType : github.com/mailru/easyjson.Unmarshaler GestureSourceType : encoding/json.Marshaler *GestureSourceType : encoding/json.Unmarshaler GestureSourceType : expvar.Var GestureSourceType : fmt.Stringer func SynthesizePinchGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams func SynthesizeScrollGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams func SynthesizeTapGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams const GestureDefault const GestureMouse const GestureTouch
ImeSetCompositionParams 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. // replacement end // replacement start // selection end // selection start // The text to insert Do executes Input.imeSetComposition against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithReplacementEnd replacement end. WithReplacementStart replacement start. *ImeSetCompositionParams : github.com/chromedp/chromedp.Action *ImeSetCompositionParams : github.com/chromedp/chromedp.CallAction *ImeSetCompositionParams : github.com/chromedp/chromedp.EmulateAction *ImeSetCompositionParams : github.com/chromedp/chromedp.EvaluateAction *ImeSetCompositionParams : github.com/chromedp/chromedp.KeyAction *ImeSetCompositionParams : github.com/chromedp/chromedp.MouseAction *ImeSetCompositionParams : github.com/chromedp/chromedp.NavigateAction *ImeSetCompositionParams : github.com/chromedp/chromedp.PollAction *ImeSetCompositionParams : github.com/chromedp/chromedp.QueryAction ImeSetCompositionParams : github.com/goccy/go-json.Marshaler *ImeSetCompositionParams : github.com/goccy/go-json.Unmarshaler ImeSetCompositionParams : github.com/mailru/easyjson.Marshaler *ImeSetCompositionParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ImeSetCompositionParams : github.com/mailru/easyjson.Unmarshaler ImeSetCompositionParams : encoding/json.Marshaler *ImeSetCompositionParams : encoding/json.Unmarshaler func ImeSetComposition(text string, selectionStart int64, selectionEnd int64) *ImeSetCompositionParams func ImeSetCompositionParams.WithReplacementEnd(replacementEnd int64) *ImeSetCompositionParams func ImeSetCompositionParams.WithReplacementStart(replacementStart int64) *ImeSetCompositionParams
InsertTextParams this method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME. // The text to insert. Do executes Input.insertText against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *InsertTextParams : github.com/chromedp/chromedp.Action *InsertTextParams : github.com/chromedp/chromedp.CallAction *InsertTextParams : github.com/chromedp/chromedp.EmulateAction *InsertTextParams : github.com/chromedp/chromedp.EvaluateAction *InsertTextParams : github.com/chromedp/chromedp.KeyAction *InsertTextParams : github.com/chromedp/chromedp.MouseAction *InsertTextParams : github.com/chromedp/chromedp.NavigateAction *InsertTextParams : github.com/chromedp/chromedp.PollAction *InsertTextParams : github.com/chromedp/chromedp.QueryAction InsertTextParams : github.com/goccy/go-json.Marshaler *InsertTextParams : github.com/goccy/go-json.Unmarshaler InsertTextParams : github.com/mailru/easyjson.Marshaler *InsertTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler *InsertTextParams : github.com/mailru/easyjson.Unmarshaler InsertTextParams : encoding/json.Marshaler *InsertTextParams : encoding/json.Unmarshaler func InsertText(text string) *InsertTextParams
KeyType type of the key event. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the KeyType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. KeyType : github.com/goccy/go-json.Marshaler *KeyType : github.com/goccy/go-json.Unmarshaler KeyType : github.com/mailru/easyjson.Marshaler *KeyType : github.com/mailru/easyjson.MarshalerUnmarshaler *KeyType : github.com/mailru/easyjson.Unmarshaler KeyType : encoding/json.Marshaler *KeyType : encoding/json.Unmarshaler KeyType : expvar.Var KeyType : fmt.Stringer func DispatchKeyEvent(typeVal KeyType) *DispatchKeyEventParams const KeyChar const KeyDown const KeyRawDown const KeyUp
Modifier input key modifier type. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent Int64 returns the Modifier as int64 value. MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the Modifier as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. Modifier : github.com/goccy/go-json.Marshaler *Modifier : github.com/goccy/go-json.Unmarshaler Modifier : github.com/mailru/easyjson.Marshaler *Modifier : github.com/mailru/easyjson.MarshalerUnmarshaler *Modifier : github.com/mailru/easyjson.Unmarshaler Modifier : encoding/json.Marshaler *Modifier : encoding/json.Unmarshaler Modifier : expvar.Var Modifier : fmt.Stringer func DispatchDragEventParams.WithModifiers(modifiers Modifier) *DispatchDragEventParams func DispatchKeyEventParams.WithModifiers(modifiers Modifier) *DispatchKeyEventParams func DispatchMouseEventParams.WithModifiers(modifiers Modifier) *DispatchMouseEventParams func DispatchTouchEventParams.WithModifiers(modifiers Modifier) *DispatchTouchEventParams func EmulateTouchFromMouseEventParams.WithModifiers(modifiers Modifier) *EmulateTouchFromMouseEventParams func github.com/chromedp/chromedp.ButtonModifiers(modifiers ...Modifier) chromedp.MouseOption func github.com/chromedp/chromedp.KeyModifiers(modifiers ...Modifier) chromedp.KeyOption const ModifierAlt const ModifierCommand const ModifierCtrl const ModifierMeta const ModifierNone const ModifierShift
MouseButton [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-MouseButton MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the MouseButton as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. MouseButton : github.com/goccy/go-json.Marshaler *MouseButton : github.com/goccy/go-json.Unmarshaler MouseButton : github.com/mailru/easyjson.Marshaler *MouseButton : github.com/mailru/easyjson.MarshalerUnmarshaler *MouseButton : github.com/mailru/easyjson.Unmarshaler MouseButton : encoding/json.Marshaler *MouseButton : encoding/json.Unmarshaler MouseButton : expvar.Var MouseButton : fmt.Stringer func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams func DispatchMouseEventParams.WithButton(button MouseButton) *DispatchMouseEventParams func github.com/chromedp/chromedp.ButtonType(button MouseButton) chromedp.MouseOption const Back const Forward const Left const Middle const None const Right
MouseType type of the mouse event. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the MouseType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. MouseType : github.com/goccy/go-json.Marshaler *MouseType : github.com/goccy/go-json.Unmarshaler MouseType : github.com/mailru/easyjson.Marshaler *MouseType : github.com/mailru/easyjson.MarshalerUnmarshaler *MouseType : github.com/mailru/easyjson.Unmarshaler MouseType : encoding/json.Marshaler *MouseType : encoding/json.Unmarshaler MouseType : expvar.Var MouseType : fmt.Stringer func DispatchMouseEvent(typeVal MouseType, x float64, y float64) *DispatchMouseEventParams func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams func github.com/chromedp/chromedp.MouseEvent(typ MouseType, x, y float64, opts ...chromedp.MouseOption) chromedp.MouseAction const MouseMoved const MousePressed const MouseReleased const MouseWheel
SetIgnoreInputEventsParams ignores input events (useful while auditing page). // Ignores input events processing when set to true. Do executes Input.setIgnoreInputEvents against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.Action *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.CallAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.EmulateAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.EvaluateAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.KeyAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.MouseAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.NavigateAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.PollAction *SetIgnoreInputEventsParams : github.com/chromedp/chromedp.QueryAction SetIgnoreInputEventsParams : github.com/goccy/go-json.Marshaler *SetIgnoreInputEventsParams : github.com/goccy/go-json.Unmarshaler SetIgnoreInputEventsParams : github.com/mailru/easyjson.Marshaler *SetIgnoreInputEventsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetIgnoreInputEventsParams : github.com/mailru/easyjson.Unmarshaler SetIgnoreInputEventsParams : encoding/json.Marshaler *SetIgnoreInputEventsParams : encoding/json.Unmarshaler func SetIgnoreInputEvents(ignore bool) *SetIgnoreInputEventsParams
SetInterceptDragsParams prevents default drag and drop behavior and instead emits Input.dragIntercepted events. Drag and drop behavior can be directly controlled via Input.dispatchDragEvent. Enabled bool Do executes Input.setInterceptDrags against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetInterceptDragsParams : github.com/chromedp/chromedp.Action *SetInterceptDragsParams : github.com/chromedp/chromedp.CallAction *SetInterceptDragsParams : github.com/chromedp/chromedp.EmulateAction *SetInterceptDragsParams : github.com/chromedp/chromedp.EvaluateAction *SetInterceptDragsParams : github.com/chromedp/chromedp.KeyAction *SetInterceptDragsParams : github.com/chromedp/chromedp.MouseAction *SetInterceptDragsParams : github.com/chromedp/chromedp.NavigateAction *SetInterceptDragsParams : github.com/chromedp/chromedp.PollAction *SetInterceptDragsParams : github.com/chromedp/chromedp.QueryAction SetInterceptDragsParams : github.com/goccy/go-json.Marshaler *SetInterceptDragsParams : github.com/goccy/go-json.Unmarshaler SetInterceptDragsParams : github.com/mailru/easyjson.Marshaler *SetInterceptDragsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetInterceptDragsParams : github.com/mailru/easyjson.Unmarshaler SetInterceptDragsParams : encoding/json.Marshaler *SetInterceptDragsParams : encoding/json.Unmarshaler func SetInterceptDrags(enabled bool) *SetInterceptDragsParams
SynthesizePinchGestureParams synthesizes a pinch gesture over a time period by issuing appropriate touch events. // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). // Relative pointer speed in pixels per second (default: 800). // Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out). // X coordinate of the start of the gesture in CSS pixels. // Y coordinate of the start of the gesture in CSS pixels. Do executes Input.synthesizePinchGesture against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). WithRelativeSpeed relative pointer speed in pixels per second (default: 800). *SynthesizePinchGestureParams : github.com/chromedp/chromedp.Action *SynthesizePinchGestureParams : github.com/chromedp/chromedp.CallAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.EmulateAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.EvaluateAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.KeyAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.MouseAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.NavigateAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.PollAction *SynthesizePinchGestureParams : github.com/chromedp/chromedp.QueryAction SynthesizePinchGestureParams : github.com/goccy/go-json.Marshaler *SynthesizePinchGestureParams : github.com/goccy/go-json.Unmarshaler SynthesizePinchGestureParams : github.com/mailru/easyjson.Marshaler *SynthesizePinchGestureParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SynthesizePinchGestureParams : github.com/mailru/easyjson.Unmarshaler SynthesizePinchGestureParams : encoding/json.Marshaler *SynthesizePinchGestureParams : encoding/json.Unmarshaler func SynthesizePinchGesture(x float64, y float64, scaleFactor float64) *SynthesizePinchGestureParams func SynthesizePinchGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams func SynthesizePinchGestureParams.WithRelativeSpeed(relativeSpeed int64) *SynthesizePinchGestureParams
SynthesizeScrollGestureParams synthesizes a scroll gesture over a time period by issuing appropriate touch events. // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). // The name of the interaction markers to generate, if not empty (default: ""). // Prevent fling (default: true). // The number of times to repeat the gesture (default: 0). // The number of milliseconds delay between each repeat. (default: 250). // Swipe speed in pixels per second (default: 800). // X coordinate of the start of the gesture in CSS pixels. // The distance to scroll along the X axis (positive to scroll left). // The number of additional pixels to scroll back along the X axis, in addition to the given distance. // Y coordinate of the start of the gesture in CSS pixels. // The distance to scroll along the Y axis (positive to scroll up). // The number of additional pixels to scroll back along the Y axis, in addition to the given distance. Do executes Input.synthesizeScrollGesture against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). WithInteractionMarkerName the name of the interaction markers to generate, if not empty (default: ""). WithPreventFling prevent fling (default: true). WithRepeatCount the number of times to repeat the gesture (default: 0). WithRepeatDelayMs the number of milliseconds delay between each repeat. (default: 250). WithSpeed swipe speed in pixels per second (default: 800). WithXDistance the distance to scroll along the X axis (positive to scroll left). WithXOverscroll the number of additional pixels to scroll back along the X axis, in addition to the given distance. WithYDistance the distance to scroll along the Y axis (positive to scroll up). WithYOverscroll the number of additional pixels to scroll back along the Y axis, in addition to the given distance. *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.Action *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.CallAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.EmulateAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.EvaluateAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.KeyAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.MouseAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.NavigateAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.PollAction *SynthesizeScrollGestureParams : github.com/chromedp/chromedp.QueryAction SynthesizeScrollGestureParams : github.com/goccy/go-json.Marshaler *SynthesizeScrollGestureParams : github.com/goccy/go-json.Unmarshaler SynthesizeScrollGestureParams : github.com/mailru/easyjson.Marshaler *SynthesizeScrollGestureParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SynthesizeScrollGestureParams : github.com/mailru/easyjson.Unmarshaler SynthesizeScrollGestureParams : encoding/json.Marshaler *SynthesizeScrollGestureParams : encoding/json.Unmarshaler func SynthesizeScrollGesture(x float64, y float64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithInteractionMarkerName(interactionMarkerName string) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithPreventFling(preventFling bool) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithRepeatCount(repeatCount int64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithRepeatDelayMs(repeatDelayMs int64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithSpeed(speed int64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithXDistance(xDistance float64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithYDistance(yDistance float64) *SynthesizeScrollGestureParams func SynthesizeScrollGestureParams.WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams
SynthesizeTapGestureParams synthesizes a tap gesture over a time period by issuing appropriate touch events. // Duration between touchdown and touchup events in ms (default: 50). // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). // Number of times to perform the tap (e.g. 2 for double tap, default: 1). // X coordinate of the start of the gesture in CSS pixels. // Y coordinate of the start of the gesture in CSS pixels. Do executes Input.synthesizeTapGesture against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithDuration duration between touchdown and touchup events in ms (default: 50). WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). WithTapCount number of times to perform the tap (e.g. 2 for double tap, default: 1). *SynthesizeTapGestureParams : github.com/chromedp/chromedp.Action *SynthesizeTapGestureParams : github.com/chromedp/chromedp.CallAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.EmulateAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.EvaluateAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.KeyAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.MouseAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.NavigateAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.PollAction *SynthesizeTapGestureParams : github.com/chromedp/chromedp.QueryAction SynthesizeTapGestureParams : github.com/goccy/go-json.Marshaler *SynthesizeTapGestureParams : github.com/goccy/go-json.Unmarshaler SynthesizeTapGestureParams : github.com/mailru/easyjson.Marshaler *SynthesizeTapGestureParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SynthesizeTapGestureParams : github.com/mailru/easyjson.Unmarshaler SynthesizeTapGestureParams : encoding/json.Marshaler *SynthesizeTapGestureParams : encoding/json.Unmarshaler func SynthesizeTapGesture(x float64, y float64) *SynthesizeTapGestureParams func SynthesizeTapGestureParams.WithDuration(duration int64) *SynthesizeTapGestureParams func SynthesizeTapGestureParams.WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams func SynthesizeTapGestureParams.WithTapCount(tapCount int64) *SynthesizeTapGestureParams
TimeSinceEpoch UTC time in seconds, counted from January 1, 1970. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-TimeSinceEpoch MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. Time returns the TimeSinceEpoch as time.Time value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. TimeSinceEpoch : github.com/goccy/go-json.Marshaler *TimeSinceEpoch : github.com/goccy/go-json.Unmarshaler TimeSinceEpoch : github.com/mailru/easyjson.Marshaler *TimeSinceEpoch : github.com/mailru/easyjson.MarshalerUnmarshaler *TimeSinceEpoch : github.com/mailru/easyjson.Unmarshaler TimeSinceEpoch : encoding/json.Marshaler *TimeSinceEpoch : encoding/json.Unmarshaler TimeSinceEpoch : golang.org/x/net/internal/timeseries.Clock func DispatchKeyEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchKeyEventParams func DispatchMouseEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchMouseEventParams func DispatchTouchEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *DispatchTouchEventParams func EmulateTouchFromMouseEventParams.WithTimestamp(timestamp *TimeSinceEpoch) *EmulateTouchFromMouseEventParams
TouchPoint [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-TouchPoint // Force (default: 1.0). // Identifier used to track touch sources between events, must be unique within an event. // X radius of the touch area (default: 1.0). // Y radius of the touch area (default: 1.0). // Rotation angle (default: 0.0). // The normalized tangential pressure, which has a range of [-1,1] (default: 0). // 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) // 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). // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). // X coordinate of the event relative to the main frame's viewport in CSS pixels. // 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. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface TouchPoint : github.com/goccy/go-json.Marshaler *TouchPoint : github.com/goccy/go-json.Unmarshaler TouchPoint : github.com/mailru/easyjson.Marshaler *TouchPoint : github.com/mailru/easyjson.MarshalerUnmarshaler *TouchPoint : github.com/mailru/easyjson.Unmarshaler TouchPoint : encoding/json.Marshaler *TouchPoint : encoding/json.Unmarshaler func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams
TouchType type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchTouchEvent MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the TouchType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. TouchType : github.com/goccy/go-json.Marshaler *TouchType : github.com/goccy/go-json.Unmarshaler TouchType : github.com/mailru/easyjson.Marshaler *TouchType : github.com/mailru/easyjson.MarshalerUnmarshaler *TouchType : github.com/mailru/easyjson.Unmarshaler TouchType : encoding/json.Marshaler *TouchType : encoding/json.Unmarshaler TouchType : expvar.Var TouchType : fmt.Stringer func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams const TouchCancel const TouchEnd const TouchMove const TouchStart
Package-Level Functions (total 13)
DispatchDragEvent dispatches a drag event into the page. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchDragEvent parameters: type - Type of the drag event. x - X coordinate of the event relative to the main frame's viewport in CSS pixels. y - 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. data
DispatchKeyEvent dispatches a key event to the page. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent parameters: type - Type of the key event.
DispatchMouseEvent dispatches a mouse event to the page. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent parameters: type - Type of the mouse event. x - X coordinate of the event relative to the main frame's viewport in CSS pixels. y - 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.
DispatchTouchEvent dispatches a touch event to the page. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchTouchEvent parameters: type - Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. 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.
EmulateTouchFromMouseEvent emulates touch event from the mouse event parameters. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-emulateTouchFromMouseEvent parameters: type - Type of the mouse event. x - X coordinate of the mouse pointer in DIP. y - Y coordinate of the mouse pointer in DIP. button - Mouse button. Only "none", "left", "right" are supported.
ImeSetComposition 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. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-imeSetComposition parameters: text - The text to insert selectionStart - selection start selectionEnd - selection end
InsertText this method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-insertText parameters: text - The text to insert.
SetIgnoreInputEvents ignores input events (useful while auditing page). See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-setIgnoreInputEvents parameters: ignore - Ignores input events processing when set to true.
SetInterceptDrags prevents default drag and drop behavior and instead emits Input.dragIntercepted events. Drag and drop behavior can be directly controlled via Input.dispatchDragEvent. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-setInterceptDrags parameters: enabled
SynthesizePinchGesture synthesizes a pinch gesture over a time period by issuing appropriate touch events. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizePinchGesture parameters: x - X coordinate of the start of the gesture in CSS pixels. y - Y coordinate of the start of the gesture in CSS pixels. scaleFactor - Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
SynthesizeScrollGesture synthesizes a scroll gesture over a time period by issuing appropriate touch events. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizeScrollGesture parameters: x - X coordinate of the start of the gesture in CSS pixels. y - Y coordinate of the start of the gesture in CSS pixels.
SynthesizeTapGesture synthesizes a tap gesture over a time period by issuing appropriate touch events. See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizeTapGesture parameters: x - X coordinate of the start of the gesture in CSS pixels. y - Y coordinate of the start of the gesture in CSS pixels.
Package-Level Constants (total 46)
MouseButton values.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
DispatchDragEventType values.
DispatchDragEventType values.
DispatchDragEventType values.
DispatchDragEventType values.
MouseButton values.
GestureSourceType values.
GestureSourceType values.
GestureSourceType values.
KeyType values.
KeyType values.
KeyType values.
KeyType values.
MouseButton values.
MouseButton values.
Modifier values.
ModifierCommand is an alias for ModifierMeta.
Modifier values.
Modifier values.
Modifier values.
Modifier values.
DispatchMouseEventPointerType values.
MouseType values.
MouseType values.
MouseType values.
MouseType values.
MouseButton values.
DispatchMouseEventPointerType values.
MouseButton values.
TouchType values.
TouchType values.
TouchType values.
TouchType values.