Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to select an Item in ComboBox of a Tree..
How to select an Item in ComboBox of a Tree.. [message #1052756] Tue, 30 April 2013 13:45 Go to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
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.

Thanks.
Pawan
Re: How to select an Item in ComboBox of a Tree.. [message #1053052 is a reply to message #1052756] Thu, 02 May 2013 08:58 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 769
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(...)

HTH
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: How to select an Item in ComboBox of a Tree.. [message #1075965 is a reply to message #1052756] Tue, 30 July 2013 12:13 Go to previous messageGo to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
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

Thanks
Pawan
Re: How to select an Item in ComboBox of a Tree.. [message #1075986 is a reply to message #1075965] Tue, 30 July 2013 13:08 Go to previous message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
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

Thanks
Pawan Garia
Previous Topic:NPE while recording
Next Topic:Setting the Locale for SWTBot headless tests
Goto Forum:
  


Current Time: Thu Nov 27 20:55:23 GMT 2014

Powered by FUDForum. Page generated in 0.01685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software