, duration=None, mode=<MoveMode.linear: 0>, button='left', timeout=None, wait_ready=True)

Clicks on element

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

  • duration (Optional[float]) – duration in seconds of the mouse move (if duration is -1 the mouse cursor doesn’t move, it just sends WM_CLICK window message, useful for minimized or non-active window).

  • mode (Enum) – move mouse mode

  • button (str) – mouse button: ‘left’,’double_left’, ‘triple_left’, ‘right’

  • 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’>))]


Pywinauto wrapper of clicked element