SaloRB
14 years agoOccasional Contributor
Wait for one or another object at the same time
I have this piece of code that waits for one object or another to continue the process
If Aliases.Setup.Error.Exists OR Aliases.Setup.Success.Exists Then
Call Log.Message("Message")
End If
The problem is that if the first object doesn't exists and the second one does, it waits until the Auto-wait timeout finishes when the test realizes that the second object is the one that exists, making the test waste a lot of time if the Auto-wait timeout is set to more than 2 minutes.
Is there any way I can make the test search for both objects at the same time?
If Aliases.Setup.Error.Exists OR Aliases.Setup.Success.Exists Then
Call Log.Message("Message")
End If
The problem is that if the first object doesn't exists and the second one does, it waits until the Auto-wait timeout finishes when the test realizes that the second object is the one that exists, making the test waste a lot of time if the Auto-wait timeout is set to more than 2 minutes.
Is there any way I can make the test search for both objects at the same time?