LDTP  2.3.1
stateenabled

Syntax

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

Description

Checks the radio button object state enabled or not

ImplementationDetails

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

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/push-button.c http://cgit.freedesktop.org/ldtp/ldtp/tree/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 Alagappan <nagappan@gmail.com>