Forum Discussion
AlexKaras
Champion Level 2
13 years agoHi,
You must look for the properties that are different for those two message boxes and use this difference to make it possible for TestComplete to distinguish them.
For example, you may require existance of two children (those Yes and No buttons) for the object A. This should make TestComplete to fail to match the second message box to object A (as it contains only one button) and successfully match it to object B that you create for it.
More information about conditional namemapping: http://support.smartbear.com/viewarticle/28807/
More information about specifying required child objects: http://support.smartbear.com/viewarticle/30311/
You must look for the properties that are different for those two message boxes and use this difference to make it possible for TestComplete to distinguish them.
For example, you may require existance of two children (those Yes and No buttons) for the object A. This should make TestComplete to fail to match the second message box to object A (as it contains only one button) and successfully match it to object B that you create for it.
More information about conditional namemapping: http://support.smartbear.com/viewarticle/28807/
More information about specifying required child objects: http://support.smartbear.com/viewarticle/30311/