Stateenabled

From LDTP

Table of contents

Syntax

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

Description

Checks the radio button object state enabled or not

Implementation

Returns 1 if state is enabled, else 0.

Refer: radio_button.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/radio_button.c), push_button.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/push_button.c)

Example

Push button: With respect to gedit open dialog, this function checks open button state enabled or not

stateenabled ('dlgOpenFile', 'btnOpen')

Radio button: TODO