LDTP  3.5.0
 All Pages
verifymenuuncheck

Syntax

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

Description

Verify whether a menu is unchecked or checked

Return values
1on success, 0 on failure

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/menu.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/core.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Menu.cs

Example

With respect to gedit, View menu and Toolbar check menuitem, we can verify whether the menu is unchecked or not. If unchecked 1 will be returned, else 0 will be returned.

verifymenuuncheck('*-gedit', 'mnuView;mnuToolbar')

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


Linux Desktop Testing Project