Skip to main content


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: 865
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 messageGo to next 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.
Re: How to Set or type text in TextField of Table.. [message #1728506 is a reply to message #1052756] Tue, 05 April 2016 05:42 Go to previous message
Sumit Ganjale is currently offline Sumit GanjaleFriend
Messages: 7
Registered: April 2016
Junior Member
index.php/fa/25532/0/Sumit Ganjale wrote on Tue, 5 April 2016

Hi All,
I have Tree which is Table/Cell Format.
After clicking a particular Cell aTextField appears.
I want to Type or Set Text in that table cell.

Please see the attachment.
Please help its kind of Important.

Thanks.
Sumit

index.php/fa/25532/0/
  • Attachment: BOT.png
    (Size: 16.89KB, Downloaded 1764 times)
Previous Topic:Does SWTBot supports JavaFx
Next Topic:How to Set or type text in TextField of Table..?
Goto Forum:
  


Current Time: Fri Apr 26 01:40:02 GMT 2024

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

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

Back to the top