-
public final class InputDomain
-
-
Method Summary
Modifier and Type Method Description final UnitdispatchKeyEvent(DispatchKeyEventRequest input)Dispatches a key event to the page. final UnitinsertText(InsertTextRequest input)This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME. final UnitdispatchMouseEvent(DispatchMouseEventRequest input)Dispatches a mouse event to the page. final UnitdispatchTouchEvent(DispatchTouchEventRequest input)Dispatches a touch event to the page. final UnitemulateTouchFromMouseEvent(EmulateTouchFromMouseEventRequest input)Emulates touch event from the mouse event parameters. final UnitsetIgnoreInputEvents(SetIgnoreInputEventsRequest input)Ignores input events (useful while auditing page). final UnitsynthesizePinchGesture(SynthesizePinchGestureRequest input)Synthesizes a pinch gesture over a time period by issuing appropriate touch events. final UnitsynthesizeScrollGesture(SynthesizeScrollGestureRequest input)Synthesizes a scroll gesture over a time period by issuing appropriate touch events. final UnitsynthesizeTapGesture(SynthesizeTapGestureRequest input)Synthesizes a tap gesture over a time period by issuing appropriate touch events. -
-
Method Detail
-
dispatchKeyEvent
final Unit dispatchKeyEvent(DispatchKeyEventRequest input)
Dispatches a key event to the page.
-
insertText
final Unit insertText(InsertTextRequest input)
This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.
-
dispatchMouseEvent
final Unit dispatchMouseEvent(DispatchMouseEventRequest input)
Dispatches a mouse event to the page.
-
dispatchTouchEvent
final Unit dispatchTouchEvent(DispatchTouchEventRequest input)
Dispatches a touch event to the page.
-
emulateTouchFromMouseEvent
final Unit emulateTouchFromMouseEvent(EmulateTouchFromMouseEventRequest input)
Emulates touch event from the mouse event parameters.
-
setIgnoreInputEvents
final Unit setIgnoreInputEvents(SetIgnoreInputEventsRequest input)
Ignores input events (useful while auditing page).
-
synthesizePinchGesture
final Unit synthesizePinchGesture(SynthesizePinchGestureRequest input)
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
-
synthesizeScrollGesture
final Unit synthesizeScrollGesture(SynthesizeScrollGestureRequest input)
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
-
synthesizeTapGesture
final Unit synthesizeTapGesture(SynthesizeTapGestureRequest input)
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
-
-
-
-