LDTP
3.0.0
|
menucheck('<window name>', '<menu item>')
Checks a menu item, if its already checked it will be silently ignored
1 | on success, LdtpExecutionError exception on failure |
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/check-menu-item.c
With respect to gedit, View menu and Toolbar check menuitem, we can check the menuitem. If its already checked, it will be silently ignored.
menucheck('*-gedit', 'mnuView;mnuToolbar')