Skip to main content

Module input

Module input 

Source
Expand description

The Input domain.

Method names for the Input domain, for use with CdpClient::call.

Constants§

CANCEL_DRAGGING
Cancels any active dragging in the page.
DISPATCH_DRAG_EVENT
Dispatches a drag event into the page.
DISPATCH_KEY_EVENT
Dispatches a key event to the page.
DISPATCH_MOUSE_EVENT
Dispatches a mouse event to the page.
DISPATCH_TOUCH_EVENT
Dispatches a touch event to the page.
EMULATE_TOUCH_FROM_MOUSE_EVENT
Emulates touch event from the mouse event parameters.
IME_SET_COMPOSITION
This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.
INSERT_TEXT
This method emulates inserting text that doesn’t come from a key press, for example an emoji keyboard or an IME.
SET_IGNORE_INPUT_EVENTS
Ignores input events (useful while auditing page).
SET_INTERCEPT_DRAGS
Prevents default drag and drop behavior and instead emits Input.dragIntercepted events. Drag and drop behavior can be directly controlled via Input.dispatchDragEvent.
SYNTHESIZE_PINCH_GESTURE
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
SYNTHESIZE_SCROLL_GESTURE
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
SYNTHESIZE_TAP_GESTURE
Synthesizes a tap gesture over a time period by issuing appropriate touch events.