Forum Discussion

Nformation's avatar
Nformation
Contributor
11 years ago

Objects with same name need to be mapped differently.

In WinForms, I need to test with multiple tabs open as seen below.  However, both "Work Queue" and "Watch List" have the same MappedName and FullName, so playback fails to execute anything on the "Wat...
  • TanyaYatskovska's avatar
    11 years ago

    Hi,


     


    I guess this thread is related to this one, right?


     


    Judging by these threads, I guess that you need to do the following changes in Name Mapping:


    1. To the DocumentManagementFormWList mapped object, you will need to add the Visible property or some other property (VisibleOnScreen, Active, etc.) that will indicate that the current tab is opened at the moment. You can find the needed one in TestComplete's Object Browser. 


    2. You may need to use the RefreshMappingInfo method to update the mapped objects after switching between tabs.


     


    Let us know how it works for you.