Thanks for the responses,
I get it, i must use a Wait function to check if the object exists without waiting the full 10 seconds.
Is there a way to extract the alias name from a given object?
I want to do something like this
def wait(obj)
parent = obj.parent
aliasName = obj.?????
if parent.WaitChildAlias(aliasName, 0).Exists:
return True
return False
and call it in the script like this:
exist = wait(Aliases.MyApp.Dialog1)
Is it possible to do such a function which returns if the object exists without waitiing and passing only the object?