I am trying to get the values from the Combo box manually meaning specifying everything through the code. The code that I have at the moment reads only the first value in the combo box and I need all the values that exist within Combo box. Any help is appreciated
//combo box values
IList<ComboBox> comboBox = Host.Local.Find<ComboBox>(xpathCombo); int lengthCombo = comboBox.Count; for(int i=0; i<lengthCombo; i++) { ComboBox combo = comboBox; string comboType = combo.Element.GetAttributeValueText("FullType").ToString(); if( comboType.Equals("Ranorex.Plugin.Wpf.DepoGroup<System.Windows.Controls.ComboBox>") && !buttonClicked) { combo.Click(); Ranorex.Report.Info(combo.ToString()); Ranorex.Report.Screenshot(combo); GetAndStoreTextPictureAndOCRFromElement(combo, path); XMLFileConverter.GetXMLFromObject(xmlstorage,currentResultFolder+@"RanorexResult_.xml"); } } }
Edit by Support Team: Use code tag for better readability