LDTP
3.5.0
|
verifytoggled('<window name>', 'component name>')
Verify whether the toggle button is toggled or not
1 | on success, else 0 |
Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py
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
from ldtp import *
click('*-gedit', 'btnOpen')
verifytoggled('dlgOpenFile...', 'tbtnTypeafilename')