pl.wendigo.chrome.api.input / DispatchMouseEventRequest

DispatchMouseEventRequest

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

Constructors

<init>

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.

Properties

button

val button: String?

Mouse button (default: "none").

buttons

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.

clickCount

val clickCount: Int?

Number of times the mouse button was clicked (default: 0).

deltaX

val deltaX: Double?

X delta in CSS pixels for mouse wheel event (default: 0).

deltaY

val deltaY: Double?

Y delta in CSS pixels for mouse wheel event (default: 0).

modifiers

val modifiers: Int?

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

pointerType

val pointerType: String?

Pointer type (default: "mouse").

timestamp

val timestamp: TimeSinceEpoch?

Time at which the event occurred.

type

val type: String

Type of the mouse event.

x

val x: Double

X coordinate of the event relative to the main frame's viewport in CSS pixels.

y

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.