Forum Discussion
AlexeyKolosov
Staff
16 years agoHello Hoks,
First, I recommend that you update to version 8.10. It contains a bunch of improvement of the Name Mapping feature.
As I mentioned, the WPFControlIndex property is read-only, it cannot be written. Actually, you do not need to change this property.
By default, TestComplete uses the NativeClrObject.Name property to identify objects of .Net Open applications. In your case, it seems that non-default criteria are used. Did you configure Name Mapping Templates (right-click in the Name Mapping tree and select Templates...)? If there are some templates in the list, remove them and see whether the problem with duplicated objects persists. Please read more about Name Mapping Templates in the Creating, Editing and Deleting Name Mapping Templates help topic.
If the advice above does not help, let's try to narrow down the problem. If you can determine the moment when the duplicated object for the Import button appears, try to reproduce the problem with a simple test. First, record a test with the Import button so that TestComplete maps the button. After that, find the parent window of the problematic button in the Object Browser and create a snapshot of this window. In the Save Object Snapshot Dialog, choose the "All properties" option and check the "Save recursively" check box.
Then perform the actions with the tested application that usually lead to appearing of the duplicated object. After the duplicated object appears, make another object snapshot of the button's parent object.
Finally, pack the entire project suite folder along with the snapshots and send it to Support.