I am having trouble selecting an item in a custom infragistics combobox. Ranorex is able to identify the combobox as well as the listitems using RanorexSpy, but it is not able to click on the combobox item. Below is a sample of the code I am using:
Code: Select all
Ranorex.ComboBox ranocombo= repo.Form.myComboBox;
ranocombo.ButtonOpen.Click();
Thread.Sleep(2000);
ListItem listitem= ranocombo.FindSingle<ListItem>("combobox/list/listitem[@accessiblename='ALA']"
Thread.Sleep(2000);
listitem.Focus();
listitem.Click();
I also tried the following code:
Code: Select all
Ranorex.ComboBox comboBox = repo.Form.mycombobox;
comboBox.ButtonOpen.Click()
comboBox.SelectedItemText = ALA;
The combobox gets opened, but I am not able to click the listitem. Like I said before Ranorex spy is able to get the values of all the list items, but I am not able to click on it. Any help with the same is much appreciated.