chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.input / InputDomain

InputDomain

class InputDomain

Official doc

Functions

dispatchKeyEvent

Dispatches a key event to the page.

suspend fun dispatchKeyEvent(input: DispatchKeyEventRequest): Unit

dispatchMouseEvent

Dispatches a mouse event to the page.

suspend fun dispatchMouseEvent(input: DispatchMouseEventRequest): Unit

dispatchTouchEvent

Dispatches a touch event to the page.

suspend fun dispatchTouchEvent(input: DispatchTouchEventRequest): Unit

emulateTouchFromMouseEvent

Emulates touch event from the mouse event parameters.

suspend fun emulateTouchFromMouseEvent(input: EmulateTouchFromMouseEventRequest): Unit

insertText

This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.

suspend fun insertText(input: InsertTextRequest): Unit

setIgnoreInputEvents

Ignores input events (useful while auditing page).

suspend fun setIgnoreInputEvents(input: SetIgnoreInputEventsRequest): Unit

synthesizePinchGesture

Synthesizes a pinch gesture over a time period by issuing appropriate touch events.

suspend fun synthesizePinchGesture(input: SynthesizePinchGestureRequest): Unit

synthesizeScrollGesture

Synthesizes a scroll gesture over a time period by issuing appropriate touch events.

suspend fun synthesizeScrollGesture(input: SynthesizeScrollGestureRequest): Unit

synthesizeTapGesture

Synthesizes a tap gesture over a time period by issuing appropriate touch events.

suspend fun synthesizeTapGesture(input: SynthesizeTapGestureRequest): Unit