class InputOperations
(source)
InputOperations represents Input protocol domain request/response operations and events that can be captured.
Link
Protocol Input domain documentation.
fun dispatchKeyEvent(input: DispatchKeyEventRequest): Single<ResponseFrame>
Dispatches a key event to the page. |
|
fun dispatchMouseEvent(input: DispatchMouseEventRequest): Single<ResponseFrame>
Dispatches a mouse event to the page. |
|
fun dispatchTouchEvent(input: DispatchTouchEventRequest): Single<ResponseFrame>
Dispatches a touch event to the page. |
|
fun emulateTouchFromMouseEvent(input: EmulateTouchFromMouseEventRequest): Single<ResponseFrame>
Emulates touch event from the mouse event parameters. |
|
fun events(): Flowable<Event>
Returns flowable capturing all Input domains events. |
|
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. |
|
fun setIgnoreInputEvents(input: SetIgnoreInputEventsRequest): Single<ResponseFrame>
Ignores input events (useful while auditing page). |
|
fun synthesizePinchGesture(input: SynthesizePinchGestureRequest): Single<ResponseFrame>
Synthesizes a pinch gesture over a time period by issuing appropriate touch events. |
|
fun synthesizeScrollGesture(input: SynthesizeScrollGestureRequest): Single<ResponseFrame>
Synthesizes a scroll gesture over a time period by issuing appropriate touch events. |
|
fun synthesizeTapGesture(input: SynthesizeTapGestureRequest): Single<ResponseFrame>
Synthesizes a tap gesture over a time period by issuing appropriate touch events. |