SWTBot support for Nebula TableCombo? [message #1758935] |
Tue, 04 April 2017 13:20  |
Eclipse User |
|
|
|
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 15:41  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02735 seconds