Hi Shrinivasan,<div><br></div><div>You need to find the window name, when I checked the quit / question dialog it doesn't have a title.</div><div><br></div><div>This is how we do at work:</div><div><br></div><div>Enhance image</div>
<div>getwindowlist()</div><div>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 <a href="https://bugzilla.gnome.org/show_bug.cgi?id=668514#c2">https://bugzilla.gnome.org/show_bug.cgi?id=668514#c2</a></div>
<div>if waitillguiexist('gthumb#1', guiTimeOut = 3): # Assuming progress bar will be the second window other than gthumb main window</div><div> # Change timeout as required</div><div> waittillguinotexist('gthumb#1') # Please check getapplist() to get the application name, its not based on executable name. You have to use application name here</div>
<div><br></div><div>Hope this helps.</div><div><br></div><div>Thanks</div><div>Nagappan<br><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 12:57 PM, Shrinivasan T <span dir="ltr"><<a href="mailto:tshrinivasan@gmail.com">tshrinivasan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>when the button - enhance photo - is clicked, some times another small window pop ups and shows a progress bar of enhancing the photo.</p>
<p>then only the save button is enabled.<br>
but our script does not wait for the pop up window to close.<br>
it goes on clicking the save button when it is still in progress.</p>
<p>it goes on opening next file.<br>
then the confusion starts of which window to work.</p>
<p>how to tell the script for waiting till the pop up window is closed?</p>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>
</div>