Ofer,
In your code, the tab is addressed by the class name, header and index:
Aliases["Desktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["ContentPanel"]["PART_SelectedContentHost"]["AssemblyViewTabControl"]["Grid"]["Grid1"]["UserControl"]["UserControl"]["TabItem"]["UserControl"]["WPFObject"]("StackPanel", "", 1)
["WPFObject"]("TextBlock", "TabName", 1)["ClickR"]()
So, if you have two tabs with the same header, you need to use different indexes to address them, for example, try using ["WPFObject"]("TextBlock", "TabName",
2) to obtain the second tab.
You can find more information here:
Addressing Windows, Controls and Objects of WPF Applications.
I hope this helps.