LDTP  3.5.0
 All Pages
uncheck

Syntax

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

Description

Uncheck(un-tick) the check state.

ImplementationDetails

Return values
1if state is unchecked, 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/Utils.cs

Example

from ldtp import *

To uncheck menu item with respect to gedit menu

uncheck('gedit', 'mnuOutputWindow')

For check menu item with respect to gedit menu

uncheck('gedit', 'mnuToolbar')

To uncheck box with respect to gedit preferences

uncheck('dlgPreferences', 'cboxEnableAutoIndentation')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project