Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

verifytoggled

Syntax

verifytoggled ('<window name>', '<toggle button name>')

Description

Checks the toggle button state, if checked returns 1, elase 0

Implementation

Todo:
Return values:
1 on success, 0 on failure
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/toggle-button.c

Example

With respect to GTK File Selector in gedit

from ldtp import *

click ('*-gedit', 'btnOpen')

verifytoggled ('dlgOpenFile...', 'tbtnTypeafilename')

Author:
Poornima Nayak <pnayak@novell.com>

Syntax

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

Description

Verify whether the toggle button is toggled or not

Implementation

Todo:
Return values:
1 on success, else 0
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/toggle-button.c

Example

With respect to GTK File Selector - Open dialog in gedit application

from ldtp import *

verifytoggled ('Open File*', 'Type a file name') # If 'Type a file name' button is toggled then location text box will be in editable state in GTK file selector

Author:
Premkumar J <prem.jothimani@gmail.com>

Generated by  Doxygen 1.6.0   Back to index