Skip to main content



      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 09:45 Go to next message
Eclipse UserFriend
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 04:58 Go to previous messageGo to next message
Eclipse UserFriend
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 08:13 Go to previous messageGo to next message
Eclipse UserFriend
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 09:08 Go to previous messageGo to next message
Eclipse UserFriend
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 07:28 Go to previous messageGo to next message
Eclipse UserFriend
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 01:42 Go to previous message
Eclipse UserFriend
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 1942 times)
Previous Topic:Does SWTBot supports JavaFx
Next Topic:How to Set or type text in TextField of Table..?
Goto Forum:
  


Current Time: Tue May 13 00:55:44 EDT 2025

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

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

Back to the top