summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNagappan Alagappan <nagappan@gmail.com>2013-08-16 16:58:10 -0700
committerNagappan Alagappan <nagappan@gmail.com>2013-08-16 16:58:10 -0700
commit653cdfea8075ee8f8eb15896a10b6248883e30d9 (patch)
tree715f8a0ffc526729814e09b3a9e6d49bddee2a05
parent61f2581564600d7a3aca0dfecb7bd94a4fe4f737 (diff)
parent34e8fd83edf09654688715ed768b076a508a1d5c (diff)
moin2iki: Importing Moin history for page waittillguiexist
-rw-r--r--waittillguiexist.moin19
1 files changed, 19 insertions, 0 deletions
diff --git a/waittillguiexist.moin b/waittillguiexist.moin
new file mode 100644
index 0000000..d1ea6d2
--- /dev/null
+++ b/waittillguiexist.moin
@@ -0,0 +1,19 @@
+== Syntax ==
+
+waittillguiexist ('<window name>')
+
+== Description ==
+
+If the given window name exist, this function returns 1. If window doesnot exist, then this function returns 0. Difference between [[guiexist]] and waitguiexist is, waitguiexist waits for maximum 30 seconds. Still the window doesn't appear, 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 ==
+
+waittillguiexist ('dlgOpen')
+
+This function will be useful, when some event is fired and after that if a new window is expected, we can use this function to wait for window to appear.