stateenabled

Syntax

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

Description

Checks the radio button object state enabled or not

ImplementationDetails

Return values:
1 if state is enabled, else 0.
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/push-button.c http://webcvs.freedesktop.org/ldtp/ldtp/src/radio-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: With respect to gedit Print dialog, this function cheks the 'All' radio button state is enabled or not

stateenabled ('Print', 'All')

Check box: With respect to gedit Print dialog, this function cheks the 'Reverse' check box state is enabled or not

stateenabled ('Print', 'Reverse')

Author:
Nagappan A <nagappan@gmail.com>


Linux Desktop Testing Project