Forum Discussion
rraghvani
Champion Level 3
3 years agoThe login window is always the same, properties don't change? However, it has different parents because you have three applications/programs? Therefore you've defined three name mappings for the login window?
How is the application called?
Use if...statements with WaitAliasChild method. You can wait up to a number of seconds before moving on. For example,
if (AliasObj.WaitAliasChild("App1.Login", 5000).Exists)
Log.Message("Login 1")
else if (AliasObj.WaitAliasChild("App2.Login", 5000).Exists)
Log.Error("Login 2");
else if (AliasObj.WaitAliasChild("App3.Login", 5000).Exists)
Log.Error("Login 3");