Sync Usage
SyncInput
cdp_patches.input.SyncInput()
SyncInput Properties
SyncInput Methods
# Type Abbreviations
Pos = Union[int, float]
Button = Literal["left", "right", "middle"]
EmulateBehaviour: Optional[bool] = True
Timeout: Optional[float] = Non
# Click at the given coordinates with the given button
sync_input.click(button: Button, x: Pos, y: Pos, emulate_behaviour: EmulateBehaviour, timeout: Timeout)
# Double-Click at the given coordinates with the given button
sync_input.double_click(button: Button, x: Pos, y: Pos, emulate_behaviour: EmulateBehaviour, timeout: Timeout)
# Mouse-Down at the given coordinates with the given button
sync_input.down(button: Button, x: Pos, y: Pos, emulate_behaviour: EmulateBehaviour, timeout: Timeout)
# Mouse-Up at the given coordinates with the given button
sync_input.up(button: Button, x: Pos, y: Pos)
# Mouse-Move to the given coordinates
sync_input.move(x: Pos, y: Pos, emulate_behaviour: EmulateBehaviour, timeout: Timeout)
# Scroll the page in the given direction by the given amount
sync_input.scroll(direction: Literal["up", "down", "left", "right"], amount: int)
# Type the given text and optionally fill the input field (Like pasting)
sync_input.type(text: str, fill: Optional[bool] = False, timeout: Timeout)
Last updated