Skip to main content



      Home
Home » Eclipse Projects » SWTBot » SWTBot unable to access to "Table"
SWTBot unable to access to "Table" [message #1807911] Wed, 12 June 2019 04:14 Go to next message
Eclipse UserFriend
Hello community,

I'm a SWTBot user, and testing my UI application made in RCP/eclipse, Java project.

I'm trying to get items of this widget "Table" to check their values during a testcase. See it in followed attachment.
index.php/fa/35745/0/

Tried to use SWTFinder (Table/TabItem/CTabItem) :

ArrayList alltable = (ArrayList) bot.getFinder().findControls(WidgetMatcherFactory.widgetOfType(Table.class));
But there is no way to find it.
I was thinking that it can be a nebula grid but it doesn't look too.


I'm wondering what different kind of table existing or if you can give me some clues to access to this widget?

Thank you,
Thibaut
Re: SWTBot unable to access to "Table" [message #1807938 is a reply to message #1807911] Wed, 12 June 2019 17:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Thibaut,

Could it be a Tree? When a tree only has roots, it looks like a table.

Otherwise you might want to try the SWT Spy plug-in, it might help to identify the widget. Or look at the source code ;)

Are you in a view, an editor or a dialog shell? You might want to get your bot from SWTWorkbenchPart.bot() or SWTBotShell.bot(). Then from that SWTBot you should be calling the finder methods directly like table(...) or tree(...).

By the way, C/TabItem is something else, it's a tab in a C/TabFolder.

Hope this helps, let us know if you figure it out to help others.

Patrick
Re: SWTBot unable to access to "Table" [message #1809104 is a reply to message #1807938] Tue, 09 July 2019 03:25 Go to previous message
Eclipse UserFriend
Hi Patrick,

Thanks for your feed-back

Here is an editor view where I can detect with finder methods the labels and buttons, but nothing about this widget.

I'm investigating with EclipseSpy to get more information about it for the moment.

Best regards,
Thibaut
Previous Topic:Unable to create run configuration with SWTBot
Next Topic:SWTBot tests not running the correct application
Goto Forum:
  


Current Time: Mon May 19 18:20:18 EDT 2025

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

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

Back to the top