mokr.input.touchscreen

Module Contents

Classes

Touchscreen

Class to emulate touchscreen.

class mokr.input.touchscreen.Touchscreen(client: mokr.connection.DevtoolsConnection, keyboard: mokr.input.keyboard.Keyboard)

Class to emulate touchscreen.

Parameters:
  • client (DevtoolsConnection) – Remote DevtoolsConnection instance.

  • keyboard (Keyboard) – Active mokr.input.Keyboard from the parent mokr.input.Keyboard. Passes active modifiers such as CTRL.

async tap(x: float, y: float) None

Send touch down and up events to the center of the target coordinates.

Parameters:
  • x (float) – X coordinate to move to.

  • y (float) – Y coordinate to move to.