LDTP  3.0.0
menuitemenabled

Syntax

menuitemenabled('<window name>', '<menu item>')

Description

Verify whether a menu is enabled or not

Return values
1on success, 0 on failure

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/menu-item.c

Example

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')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project