LDTP
3.5.0
|
selectmenuitem('<window name>', '<menu hierarchy>')
Selects the menu item specified.
Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/menu.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/menu.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Menu.cs
With respect to gedit menu structure
selectmenuitem('*-gedit', 'mnuFile;mnuNew')