LDTP
3.5.0
|
verifymenucheck('<window name>', '<menu item>')
Verify whether a menu is checked or not
1 | on 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/menu.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Menu.cs
With respect to gedit, View menu and Toolbar check menuitem, we can verify whether the menu is checked or not. If checked 1 will be returned, else 0 will be returned.
verifymenucheck('*-gedit', 'mnuView;mnuToolbar')