Hi Shrinivasan, You need to find the window name, when I checked the quit / question dialog it doesn't have a title.
This is how we do at work: Enhance image getwindowlist() from the window list pick the last one with dlgNumber or if you are using latest LDTP from git head and use this as reference https://bugzilla.gnome.org/show_bug.cgi?id=668514#c2 if waitillguiexist('gthumb#1', guiTimeOut = 3): # Assuming progress bar will be the second window other than gthumb main window # Change timeout as required waittillguinotexist('gthumb#1') # Please check getapplist() to get the application name, its not based on executable name. You have to use application name here Hope this helps. Thanks Nagappan On Fri, Apr 6, 2012 at 12:57 PM, Shrinivasan T <tshriniva...@gmail.com>wrote: > when the button - enhance photo - is clicked, some times another small > window pop ups and shows a progress bar of enhancing the photo. > > then only the save button is enabled. > but our script does not wait for the pop up window to close. > it goes on clicking the save button when it is still in progress. > > it goes on opening next file. > then the confusion starts of which window to work. > > how to tell the script for waiting till the pop up window is closed? > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev