To operate on a menuitem object and based on your requirement, you can use any of these functions
doesmenuitemexist - Check whether a menu item exist
invokemenu - Invoke a menu in embedded component
listsubmenus - Get list of menu items under a menu
selectmenuitem - Select the given menu item
Linux Desktop Testing Project