pl.wendigo.chrome.api.input / InputOperations

InputOperations

class InputOperations (source)

InputOperations represents Input protocol domain request/response operations and events that can be captured.

Link
Protocol Input domain documentation.

Functions

dispatchKeyEvent

fun dispatchKeyEvent(input: DispatchKeyEventRequest): Single<ResponseFrame>

Dispatches a key event to the page.

dispatchMouseEvent

fun dispatchMouseEvent(input: DispatchMouseEventRequest): Single<ResponseFrame>

Dispatches a mouse event to the page.

dispatchTouchEvent

fun dispatchTouchEvent(input: DispatchTouchEventRequest): Single<ResponseFrame>

Dispatches a touch event to the page.

emulateTouchFromMouseEvent

fun emulateTouchFromMouseEvent(input: EmulateTouchFromMouseEventRequest): Single<ResponseFrame>

Emulates touch event from the mouse event parameters.

events

fun events(): Flowable<Event>

Returns flowable capturing all Input domains events.

insertText

fun insertText(input: InsertTextRequest): Single<ResponseFrame>

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

setIgnoreInputEvents

fun setIgnoreInputEvents(input: SetIgnoreInputEventsRequest): Single<ResponseFrame>

Ignores input events (useful while auditing page).

synthesizePinchGesture

fun synthesizePinchGesture(input: SynthesizePinchGestureRequest): Single<ResponseFrame>

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

synthesizeScrollGesture

fun synthesizeScrollGesture(input: SynthesizeScrollGestureRequest): Single<ResponseFrame>

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

synthesizeTapGesture

fun synthesizeTapGesture(input: SynthesizeTapGestureRequest): Single<ResponseFrame>

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