输入协议
Chrome DevTools 协议的输入域命令、事件和类型。
方法
pydoll.protocol.input.methods
DispatchDragEventCommand
module-attribute
DispatchDragEventCommand = Command[DispatchDragEventParams, EmptyResponse]
DispatchKeyEventCommand
module-attribute
DispatchKeyEventCommand = Command[DispatchKeyEventParams, EmptyResponse]
DispatchMouseEventCommand
module-attribute
DispatchMouseEventCommand = Command[DispatchMouseEventParams, EmptyResponse]
DispatchTouchEventCommand
module-attribute
DispatchTouchEventCommand = Command[DispatchTouchEventParams, EmptyResponse]
EmulateTouchFromMouseEventCommand
module-attribute
EmulateTouchFromMouseEventCommand = Command[EmulateTouchFromMouseEventParams, EmptyResponse]
ImeSetCompositionCommand
module-attribute
ImeSetCompositionCommand = Command[ImeSetCompositionParams, EmptyResponse]
SetIgnoreInputEventsCommand
module-attribute
SetIgnoreInputEventsCommand = Command[SetIgnoreInputEventsParams, EmptyResponse]
SetInterceptDragsCommand
module-attribute
SetInterceptDragsCommand = Command[SetInterceptDragsParams, EmptyResponse]
SynthesizePinchGestureCommand
module-attribute
SynthesizePinchGestureCommand = Command[SynthesizePinchGestureParams, EmptyResponse]
SynthesizeScrollGestureCommand
module-attribute
SynthesizeScrollGestureCommand = Command[SynthesizeScrollGestureParams, EmptyResponse]
SynthesizeTapGestureCommand
module-attribute
SynthesizeTapGestureCommand = Command[SynthesizeTapGestureParams, EmptyResponse]
InputMethod
Bases: str
, Enum
DISPATCH_MOUSE_EVENT
class-attribute
instance-attribute
DISPATCH_TOUCH_EVENT
class-attribute
instance-attribute
SET_IGNORE_INPUT_EVENTS
class-attribute
instance-attribute
DISPATCH_DRAG_EVENT
class-attribute
instance-attribute
EMULATE_TOUCH_FROM_MOUSE_EVENT
class-attribute
instance-attribute
IME_SET_COMPOSITION
class-attribute
instance-attribute
SET_INTERCEPT_DRAGS
class-attribute
instance-attribute
SYNTHESIZE_PINCH_GESTURE
class-attribute
instance-attribute
SYNTHESIZE_SCROLL_GESTURE
class-attribute
instance-attribute
CancelDraggingParams
Bases: TypedDict
Parameters for cancelDragging command.
DispatchDragEventParams
DispatchKeyEventParams
Bases: TypedDict
Parameters for dispatchKeyEvent command.
DispatchMouseEventParams
Bases: TypedDict
Parameters for dispatchMouseEvent command.
DispatchTouchEventParams
EmulateTouchFromMouseEventParams
Bases: TypedDict
Parameters for emulateTouchFromMouseEvent command.
ImeSetCompositionParams
SetIgnoreInputEventsParams
SetInterceptDragsParams
SynthesizePinchGestureParams
SynthesizeScrollGestureParams
Bases: TypedDict
Parameters for synthesizeScrollGesture command.
事件
pydoll.protocol.input.events
InputEvent
Bases: str
, Enum
Events from the Input domain of the Chrome DevTools Protocol.
This enumeration contains the names of Input-related events that can be received from the Chrome DevTools Protocol. These events provide information about user input interactions that can be intercepted or simulated.
DRAG_INTERCEPTED
class-attribute
instance-attribute
Emitted only when Input.setInterceptDrags is enabled. Use this data with Input.dispatchDragEvent to restore normal drag and drop behavior.
PARAMETER | DESCRIPTION |
---|---|
data
|
Contains information about the dragged data.
TYPE:
|
类型
pydoll.protocol.input.types
GestureSourceType
MouseButton
Bases: str
, Enum
Mouse button types.
DragEventType
Bases: str
, Enum
Drag event types.
KeyEventType
MouseEventType
Bases: str
, Enum
Mouse event types.
TouchEventType
Bases: str
, Enum
Touch event types.
KeyModifier
KeyLocation
PointerType
TouchPoint
Bases: TypedDict
Touch point data.