LDTP  3.5.0
 All Pages
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: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/core.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Generic.cs

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 nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project