Solved
Forum Discussion
baxatob
7 years agoCommunity 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();
}
}