Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot support for Nebula TableCombo?(Support by SWTBot for the Nebula TableCombo Widget)
SWTBot support for Nebula TableCombo? [message #1758935] Tue, 04 April 2017 17:20 Go to next message
Matthias Paul Scholz is currently offline Matthias Paul ScholzFriend
Messages: 38
Registered: May 2012
Member
Hi,

We started to use the Nebula TableCombo widget recently for our RCP client and are trying to write SWTBot tests for our composed widgets using it.

However, we have not been very successful in finding or accessing the TableCombo using a SWTBot (see the according thread in the Nebula forum).

Is there any support for the Nebula TableCombo in SWTBot?
If not, wouldn't it be desirable to provide some?
Re: SWTBot support for Nebula TableCombo? [message #1758965 is a reply to message #1758935] Tue, 04 April 2017 19:41 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 56
Registered: July 2009
Member
Hi Matthias,

Nebula widgets are not supported by SWTBot by default. Some Nebula widgets are supported (Gallery and NatTable), but separate features had to be created for this purpose.

As mentioned in the other thread, the table drop-down is a Button in a Composite, normally it would have been possible to access it with SWTBot using the following code:

SWTBotArrowButton button = bot.arrowButton();

However, the reason that this doesn't work is that TableCombo overrides the method getChildren() to return an empty Control array.

So when drilling down the Widget hierarchy, the ControlFinder stops at the TableCombo composite and doesn't find the Label, Text and Button that it contains.

So it would require special handling in a new SWTBot plug-in feature.

Patrick
Previous Topic:How to click on toolbar dropdown menu item using SWTBOT
Next Topic:Finding item in swtbottable fails if item not present in first column.
Goto Forum:
  


Current Time: Sun Nov 18 02:38:20 GMT 2018

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

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

Back to the top