pywinauto_recorder.player.left_click

pywinauto_recorder.player.left_click(element_path, duration=None, mode=<MoveMode.linear: 0>, timeout=None, wait_ready=True)

Left clicks on element

Parameters
  • element_path (Union[str, UIAWrapper, NewType()(UI_Coordinates, (<class ‘float’>, <class ‘float’>))]) – element path

  • duration (Optional[float]) – duration in seconds of the mouse move (if duration is -1 the mouse cursor doesn’t move)

  • mode (Enum) – move mouse mode

  • timeout (Optional[float]) – period of time in seconds that will be allowed to find the element

  • wait_ready (bool) – if True waits until the element is ready

Return type

Union[str, UIAWrapper, NewType()(UI_Coordinates, (<class ‘float’>, <class ‘float’>))]

Returns

Pywinauto wrapper of clicked element