LDTP  3.5.0
 All Pages
check

Syntax

check('<window name>', '<component name>')

Description

Check(tick) the check box state.

ImplementationDetails

Return values
1if state is checked, else 0.

Refer:

Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/core.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Utils.cs

Example

from ldtp import *

For check menu item with respect to gedit menu

check('gedit', 'mnuOutputWindow')

For check menu item with respect to gedit menu

check('gedit', 'mnuToolbar')

For check box with respect to gedit preferences

check('dlgPreferences', 'cboxEnableAutoIndentation')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com
Khasim Shaheed khasi.nosp@m.m.sh.nosp@m.aheed.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project