Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

waittillguinotexist

Syntax

waittillguinotexist ('<window name>'[, '<component name>'[, guiTimeOut]])

Description

If the given window name does not exist, this function returns 1. If window exist, then this function returns 0. Difference between guiexist and waitguinotexist is, waitguinotexist waits for maximum 30 seconds. Still the window does not disappear, then 0 is returned. We can set the environment variable 'GUI_TIMEOUT' to change the default waiting time. We can wait for component also and its an optional argument. The default value of guiTimeOut is None and it can be changed either by environment variable or by passing an integer argument > 0. This timeout will be for this specific window and it will not affect the global default time out settings. If you want to change the global default time out settings use guitimeout or objtimeout function appropriately.

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

Implementation

Todo:
Return values:
1 on success, 0 otherwise

Example

waittillguinotexist ('dlgOpen')

This function will be useful, when some event is fired and after that if an existing window should close, we can use this function to wait till the window closes.

Author:
Nagappan <nagappan@gmail.com>

Generated by  Doxygen 1.6.0   Back to index