// DispatchKeyEventParams dispatches a key event to the page.
typeDispatchKeyEventParamsstruct{
TypeKeyType`json:"type"`// Type of the key event.
ModifiersModifier`json:"modifiers,omitempty"`// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Timestampfloat64`json:"timestamp,omitempty"`// Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time).
Textstring`json:"text,omitempty"`// Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "")
UnmodifiedTextstring`json:"unmodifiedText,omitempty"`// Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
Codestring`json:"code,omitempty"`// Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
Keystring`json:"key,omitempty"`// Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
WindowsVirtualKeyCodeint64`json:"windowsVirtualKeyCode,omitempty"`// Windows virtual key code (default: 0).
// DispatchMouseEventParams dispatches a mouse event to the page.
typeDispatchMouseEventParamsstruct{
TypeMouseType`json:"type"`// Type of the mouse event.
Xint64`json:"x"`// X coordinate of the event relative to the main frame's viewport.
Yint64`json:"y"`// Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
ModifiersModifier`json:"modifiers,omitempty"`// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Timestampfloat64`json:"timestamp,omitempty"`// Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time).
ClickCountint64`json:"clickCount,omitempty"`// Number of times the mouse button was clicked (default: 0).
}
// DispatchMouseEvent dispatches a mouse event to the page.
//
// parameters:
// type - Type of the mouse event.
// x - X coordinate of the event relative to the main frame's viewport.
// y - Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
ModifiersModifier`json:"modifiers,omitempty"`// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Timestampfloat64`json:"timestamp,omitempty"`// Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time).
}
// DispatchTouchEvent dispatches a touch event to the page.
// SynthesizePinchGestureParams synthesizes a pinch gesture over a time
// period by issuing appropriate touch events.
typeSynthesizePinchGestureParamsstruct{
Xint64`json:"x"`// X coordinate of the start of the gesture in CSS pixels.
Yint64`json:"y"`// Y coordinate of the start of the gesture in CSS pixels.
ScaleFactorfloat64`json:"scaleFactor"`// Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
RelativeSpeedint64`json:"relativeSpeed,omitempty"`// Relative pointer speed in pixels per second (default: 800).
GestureSourceTypeGestureType`json:"gestureSourceType,omitempty"`// Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
}
// SynthesizePinchGesture synthesizes a pinch gesture over a time period by
// issuing appropriate touch events.
//
// 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).
Speedint64`json:"speed,omitempty"`// Swipe speed in pixels per second (default: 800).
GestureSourceTypeGestureType`json:"gestureSourceType,omitempty"`// Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
RepeatCountint64`json:"repeatCount,omitempty"`// The number of times to repeat the gesture (default: 0).
RepeatDelayMsint64`json:"repeatDelayMs,omitempty"`// The number of milliseconds delay between each repeat. (default: 250).
InteractionMarkerNamestring`json:"interactionMarkerName,omitempty"`// The name of the interaction markers to generate, if not empty (default: "").
}
// SynthesizeScrollGesture synthesizes a scroll gesture over a time period by
// issuing appropriate touch events.
//
// 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.
// SynthesizeTapGestureParams synthesizes a tap gesture over a time period by
// issuing appropriate touch events.
typeSynthesizeTapGestureParamsstruct{
Xint64`json:"x"`// X coordinate of the start of the gesture in CSS pixels.
Yint64`json:"y"`// Y coordinate of the start of the gesture in CSS pixels.
Durationint64`json:"duration,omitempty"`// Duration between touchdown and touchup events in ms (default: 50).
TapCountint64`json:"tapCount,omitempty"`// Number of times to perform the tap (e.g. 2 for double tap, default: 1).
GestureSourceTypeGestureType`json:"gestureSourceType,omitempty"`// Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
}
// SynthesizeTapGesture synthesizes a tap gesture over a time period by
// issuing appropriate touch events.
//
// 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.