pywinauto_recorder.player.menu_click(element_path, menu_path, duration=None, mode=<MoveMode.linear: 0>, menu_type='QT', timeout=None)

Clicks on menu item.

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

  • menu_path (str) – menu 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

  • menu_type (str) – menu type (‘QT’, ‘NPP’)

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

Return type

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


Pywinauto wrapper of the clicked item