Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Validation of SWTBotTreeItem tooltip text
Validation of SWTBotTreeItem tooltip text [message #1814789] Wed, 18 September 2019 09:19 Go to next message
Tural Malikli is currently offline Tural MalikliFriend
Messages: 2
Registered: August 2019
Junior Member

I want to verify tooltip text on SWTBotTreeItem , but getToolTipText() returns empty string (as expected, since I have a tooltip provider( mousehover listener) for the tree).

What is the right way to validate tooltip text in this case?

Re: Validation of SWTBotTreeItem tooltip text [message #1814961 is a reply to message #1814789] Mon, 23 September 2019 13:28 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 82
Registered: July 2009
Hi Tural,

I assume your application opens a shell itself and fills it with some information widgets (Text, Label, etc.).

You could get this shell with SWTBot and examine its contents (you have to know which widgets the application is creating).

The problem, however, is to trigger the MouseHover listener. I don't see any API in SWTBot to do this. So in the meantime, you might have to send the SWT.MouseHover event yourself, by accessing the SWTBotTreeItem's widget and its Tree, in a Display.syncExec() runnable so that it is done in the UI thread.

Hope this helps,
Previous Topic:Test application with existing project data
Next Topic:SWTBot with Cucumber
Goto Forum:

Current Time: Thu Mar 30 18:54:18 GMT 2023

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

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

Back to the top