Forum Discussion
sbkeenan
12 years agoFrequent Contributor
Hi Dev
Depending on what method you are using, you will need to use one of the wait routines. For example, I use aliases in my tests, so when I want to wait until a particular object is available, I use the WaitAliasChild function. You can find detailed information in the online help, but basically, something along the lines of :
Depending on what method you are using, you will need to use one of the wait routines. For example, I use aliases in my tests, so when I want to wait until a particular object is available, I use the WaitAliasChild function. You can find detailed information in the online help, but basically, something along the lines of :
if (aliases.<myApplication>.WaitAliasChild("<myWindow>", 5000).Exists) then
'do something here
end if
you can place this in a loop or increase the timeout, depending on your needs.
Hope this helps.
Regards
Stephen.