data class DispatchMouseEventRequest
(source)
Represents request frame that can be used with Input#dispatchMouseEvent operation call.
Dispatches a mouse event to the page.
Link
Input#dispatchMouseEvent method documentation.
See Also
InputOperations.dispatchMouseEvent
DispatchMouseEventRequest(type: String, x: Double, y: Double, modifiers: Int? = null, timestamp: TimeSinceEpoch? = null, button: String? = null, buttons: Int? = null, clickCount: Int? = null, deltaX: Double? = null, deltaY: Double? = null, pointerType: String? = null)
Represents request frame that can be used with Input#dispatchMouseEvent operation call. |
val button: String?
Mouse button (default: "none"). |
|
val buttons: Int?
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. |
|
val clickCount: Int?
Number of times the mouse button was clicked (default: 0). |
|
val deltaX: Double?
X delta in CSS pixels for mouse wheel event (default: 0). |
|
val deltaY: Double?
Y delta in CSS pixels for mouse wheel event (default: 0). |
|
val modifiers: Int?
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). |
|
val pointerType: String?
Pointer type (default: "mouse"). |
|
val timestamp: TimeSinceEpoch?
Time at which the event occurred. |
|
val type: String
Type of the mouse event. |
|
val x: Double
X coordinate of the event relative to the main frame's viewport in CSS pixels. |
|
val y: Double
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. |