Thank you for helping me with this issue. I tried to follow your advice and coded the following using JScript:
function Test7()
{
var arrFeld = ["Mandant", "102 WB Zürich"];
var comboMandant = Aliases.WaloMIS.HwndSource_MainWindow.MainWindow.ContentControl.mainContentControl.UsrParametrizedReportViewer.UsrparameterpanelSystemWindowsControlsItem.ItemsControl.GroupItem.ItemsControl.ComboboxMandant;
var comboMandantWPFObject = Aliases.WaloMIS.HwndSource_MainWindow.MainWindow.ContentControl.mainContentControl.UsrParametrizedReportViewer.UsrparameterpanelSystemWindowsControlsItem.ItemsControl.GroupItem.ItemsControl.ComboboxMandant.WPFObject("TextBlock", " ", 1);
comboMandantWPFObject.ClickItem (arrFeld[1]);
}
But on coding variable "comboMandantWPFObject" TestComplete checks this already against my application and reports "Unable to find the object WPFObject("TextBlock", " ", 1)" since there isn't a blank text but "Alle".
Regarding the "ClickItem" TestComplete says "The object does not exist" because it doesn't see my "102 WB Zürich" on the WPFObject Textblock but "Alle". If I use the index number 2 instead of "102 WB Zürich", it works. Is my code wrong?