Hi,
Checking the Exists property value of the object directly when the needed object has not been created can lead to the error in the test log. There is a more reliable way: use the WaitAliasChild method and check the existence of the object returned by the method. As a second parameter, you can pass the waiting time:
var DCIProcess;
DCIProcess = Aliases.WaitAliasChild("DCI", 1000);
if (DCIProcess.Exists)
DCIProcess.frm_FormDci.close();
For more information, refer to the
"WaitAliasChild Method" help topic.