verifytoggled ('<window name>', '<toggle button name>')
Checks the toggle button state, if checked returns 1, elase 0
| 1 | on success, 0 on failure |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/toggle-button.c
With respect to GTK File Selector in gedit
from ldtp import *
click ('*-gedit', 'btnOpen')
verifytoggled ('dlgOpenFile...', 'tbtnTypeafilename')
verifytoggled ('<window name>', 'component name>')
Verify whether the toggle button is toggled or not
| 1 | on success, else 0 |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/toggle-button.c
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