pawan garia Messages: 20 Registered: February 2013
Junior Member
Hi All,
I have Tree which is Table/Cell Format.
After clicking a particular Cell a Combobox appears.
I want to select the Item from The list, but i am not able to select the Item.
Please see the attachment.
Please help its kind of Important.
Mickael Istria Messages: 676 Registered: July 2009 Location: Grenoble, France
Senior Member
Hi,
You can try the following:
// Should enable CellEditor
SWTBotTreeItem.select().click(column)
// The combo should be accessible
bot.combo().setText(...)
pawan garia Messages: 20 Registered: February 2013
Junior Member
Hi Mickael
i tried as you said but no luck yet.
i have clicked on the cell with the comboBox and now i am trying to select a value from the combo but it is always throwing an Exception Widget not found of Type ComboBOx.
Is there anything i am missing in here..
Please suggest
pawan garia Messages: 20 Registered: February 2013
Junior Member
Hi
I found the Solution i need to use Ccombo in place of Combo
Like this...
CCombo combo = bot.widget(widgetOfType(CCombo.class));
SWTBotCCombo combobox = new SWTBotCCombo(combo, null);
combobox.setSelection(Value); // set the text