LDTP  3.0.0
guiexist

Syntax

guiexist('<window name>'[, <object name>])

Description

If the given window name exist, this function returns 1. If window doesnot exist, then this function returns 0.

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

ImplementationDetails

Return values
1on success and 0 on no existing window

Example

With respect to gedit Open dialog

from ldtp import *

if GTK File selector is opened the following function will return 1, else 0

guiexist('dlgOpenFile...')

guiexist('dlgOpenFile...', 'btnOpen') # Returns 1, If window exist and also the object exist

guiexist('dlgOpenFile...', 'btnabc') # Returns 0

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


Linux Desktop Testing Project