LDTP
3.5.0
|
menuuncheck('<window name>', '<menu item>')
Unchecks a menu item, if its already unchecked it will be silently ignored
1 | on success, LdtpExecutionError exception 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 uncheck the menuitem. If its already unchecked, it will be silently ignored.
menuuncheck('*-gedit', 'mnuView;mnuToolbar')