LDTP  3.5.0
 All Pages
doesmenuitemexist

Syntax

doesmenuitemexist('<window name>', '<menu hierarchy>')

Description

checks if the specified menuitem specified in the menu hierarchy is present or not

ImplementationDetails

Return values
1if the menuitem is present, else 0

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

Example

With respect to gedit menu structure

doesselectmenuitem('gedit', 'mnuFile;mnuNew')

this function is required mainly to check those menuitems which will not be present always. An example of this kind of a menuitem is the close tab menu item under menu file in firefox web browser.

Author
J Premkumar prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project