Check

From LDTP

Table of contents

Syntax

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

Description

Check (tick) the check box state.

Implementation

Returns 1 if state is checked, else 0.

Refer: check_box.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/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')