hasstate ('<window name>', '<object name>', <object SPI state-1>[, ..., <object SPI state-n>])
- Todo:
- Todo:
- Return values:
-
| 1 | on success, 0 on failure |
Refer:
http://webcvs.freedesktop.org/ldtp/ldtp/src/client-handler.c, http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtp.py
With respect to gedit window, first tab
from ldtp import *
hasstate ('*-gedit', 'txt0', state.FOCUSABLE)
hasstate ('*-gedit', 'txt0', state.FOCUSABLE + state.VISIBLE)
- Author:
- Nagappan <nagappan@gmail.com>