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: 777
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 messageGo to next 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
Re: How to select an Item in ComboBox of a Tree.. [message #1697493 is a reply to message #1075986] Thu, 04 June 2015 11:28 Go to previous message
Peter Kazakov is currently offline Peter KazakovFriend
Messages: 2
Registered: June 2015
Junior Member
What do you do in case of setting versions in Project Facets dialog? Control there is of type
private static final CustomCCombo (private static final class org.eclipse.wst.common.project.facet.ui.internal.util.ReadOnlyComboBoxCellEditor$CustomCCombo extends org.eclipse.swt.widgets.Composite )
so it is not accessible at all.
Previous Topic:org.eclipse.swt.SWTError: No more handles
Next Topic:swtbot-how to change the facet version in Project Facets wizard
Goto Forum:
  


Current Time: Fri Jul 03 12:35:27 GMT 2015

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

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