LDTP
2.3.1
|
menuitemenabled('<window name>', '<menu item>')
Verify whether a menu is enabled or not
1 | on success, 0 on failure |
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/menu-item.c
With respect to gedit, View menu and Toolbar check menuitem, we can verify whether the menu is enabled or not. If enabled 1 will be returned, else 0 will be returned.
menuitemenabled('*-gedit', 'mnuView;mnuToolbar')