WinComboBox comboxBox = new WinComboBox();
comboxBox.SearchProperties[WinComboBox.PropertyNames.Name] = "Server:";
comboxBox.WindowTitles.Add("Server Settings");
comboxBox.SearchProperties[WinComboBox.PropertyNames.TechnologyName] = "Server";
comboxBox.SearchProperties[WinComboBox.PropertyNames.ControlName] = "comboBoxPlatforms";
comboxBox.SelectedItem = "Value3";
我使用上面的代碼使用編碼的UI測試在組合框中選擇值。無法使用編碼UI測試在組合框中選擇值測試
但我得到的錯誤
System.NotSupportedException「的SelectedItem」的的getProperty不支持控制類型:窗口
誰能告訴我什麼,我做錯了或演出我是另一種解決方案?