Hello,
I want to count the number of items present in combo viewer. How can i get that value in SWT Windows tester
Snippets:
******************
IWidgetLocator widgetCombo = ui.find(new NamedWidgetLocator("datatypecombo.widget"));
CComboItemLocator comboItemLocator = new CComboItemLocator("Integer", widgetCombo);
int itemCount = comboItemLocator.getIndex();
assertEquals(2, itemCount);
*****************
here if i use this code it is returning the index value of the combo's particulr selection. But there i couldn find any API to get count. pls help me out !!!