- Code: Select all
Ranorex.ComboBox comboBox = "/dom[@domain='10.0.0.114:8443']/body/flexobject/element[@id='swfLoader']/element/element/container/container[@id='modulesCanvas']/element[@type='EmployeeDetails']/container[@type='VBox']/container[@type='Canvas']/container/container[@id='identificationForm']/container/form/container[2]/container[2]/container[@id='_EmployeeDetailsIdentification_FormItem3']/combobox[@id='title']";
// Open combobox using property
comboBox.DropDownVisible = true;
comboBox.EnsureVisible();
// Open combobox by clicking the
// drop down button
Ranorex.Button open = comboBox.FindChild<Ranorex.Button>();
open.Focus();
open.Click();
IList<ListItem> items = comboBox.Items;
The list that is created in items is empty. I have tried other methods to access this to now avail. I need to access this list and interate through it to determine if an entry is present. Entries can be added or delete and I need to verify the effect of those actions on the list.