getallstates

Syntax

getallstates ('<window name>'[, '<component name>'])

Description

Will return all the accessibility states of given object information

Return values:
list of states will be returned on success, LdtpExecutionError exception on failure

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/client-handler.c

Example

from ldtp import *

getallstates () # Will return all the accessibility states of given object information Compare all the states based on your requirement, say for example, if interested in checking for VISIBLE state, then:

states = getallstates ('*-gedit', 'btnCopy') if state.VISIBLE in states: print 'Object is visible'

Author:
Nagappan Alagappan <nagappan@gmail.com>


Linux Desktop Testing Project