Supress Object Not Found Error Optionally
I have an Application where a "Processing please wait..." dialog appears after a required operation and goes automatically after sometime as soon as processing is done, now i need to wait till this dialog is available on screen (sometime it remains open for more then 10 secs but other time 2 to 3 secs), so i do wait till the dialog is exists.
Do while (dialog.exist )
Loop
I want to Achieve this.
1) if it exists, i keep on waiting, but as soon as dialog goes, move to the next step of varification.
2) if it exists more then 15 sec, seems there are some problem at message processing, do a dialog.close forcefully. and move to the next test case.
these above steps sound simple but not as easy to achive from TestComplete.
I am facing issues like.
1. as soon as dialog disappear say within 15 sec (I have a loop which is checking if dialog.exists breaks but test cases gets haulted for 30 secs - which is setup in the Project properties - 30 secs are crusial for testing in our case.)
2. sometime dialog remains open for more then 15 sec's but as soon as we try to close (dialog.close() ) them its already gone.
this thows exception - Object Not Found
Can someone please help me in this case.