Forum Discussion
baxatob
Community Hero
You can implement some checkObjectExists() method:
function checkObjectExists(object, timeout) { Options.Run.Timeout = timeout; if object.Exists { do_something(); } else { do_something_else(); } Options.Run.Timeout = 10000; }
cunderw
7 years agoCommunity Hero
IMO it would be much safer to use a WaitProperty so you're not adjusting the global wait.
function checkObjectExists(object, timeout) { if (!object.WaitProperty("Exists",true,timeout)) { do_something(); } else { do_something_else(); } }
Related Content
- 6 years ago
- 3 years ago
Recent Discussions
- 14 hours ago
- 23 hours ago
- 2 days ago