LDTP  3.0.0
listsubmenus

Syntax

listsubmenus('window name>', 'menu name>')

Description

Get the list of sub menu item, in a menu as a list

Return values
listof menuitems as string on success, LdtpExecutionError exception on failure

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

Example

With respect to gedit application, File menu

from ldtp import *

listsubmenus('*-gedit', 'mnuFile') # all the submenus of File menu as a list of string

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


Linux Desktop Testing Project