LDTP  3.5.0
 All Pages
verifytoggled

Syntax

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

Description

Verify whether the toggle button is toggled or not

Return values
1on success, else 0

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py

Note
supported only on Linux platform

Example

  1. 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

  1. With respect to GTK File Selector in gedit

from ldtp import *

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

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

Author
Poornima Nayak pnaya.nosp@m.k@no.nosp@m.vell..nosp@m.com
Premkumar J prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project