Forum Discussion
Hi,
Did you try something like : Sys.WaitWindow("MyApp").Exists
Or Sys.WaitProcess("myproc").Exists
yes, of course we did.
we even checked that object Exists, VisibleOnScreen,Visible and Enabled but it didn't help
- Montikore9 years agoOccasional Contributor
the thing is you can't do this on the object if the object does not exist. That's why you have to use the method Exists not on the object itself, but using the waiting metods waitwindow, waitproc...
- baxatob9 years agoCommunity Hero
Did you try the WaitProperty method?
- tristaanogre9 years agoEsteemed Contributor
Break up your statement... you are combining "obj.Exists" in the same boolean expression as a number of other properties. However, if the object does not exist, none of those other properties are valid.
Start with checking if the obj.Exists... be sure to use a "WaitNNN" method of some sort to return your obj value. Then test for Exists. If the Exists test passes, THEN proceed with the other tests you're looking for.