LDTP  2.3.1
check

Syntax

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

Description

Check(tick) the check box state.

ImplementationDetails

Return values:
1if state is checked, else 0.

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/check-box.c

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 <nagappan@gmail.com>
Khasim Shaheed <khasim.shaheed@gmail.com>