summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--waittillguinotexist.moin19
1 files changed, 19 insertions, 0 deletions
diff --git a/waittillguinotexist.moin b/waittillguinotexist.moin
new file mode 100644
index 0000000..56b6c9d
--- /dev/null
+++ b/waittillguinotexist.moin
@@ -0,0 +1,19 @@
+== Syntax ==
+
+waittillguinotexist ('<window name>')
+
+== 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.
+
+Ref: [[http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/ldtp.c|ldtp.c]]
+
+== Implementation ==
+
+returns 1 on success and 0 on no existing window
+
+== 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.