Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Validation of SWTBotTreeItem tooltip text
Validation of SWTBotTreeItem tooltip text [message #1814789] Wed, 18 September 2019 05:19 Go to next message
Eclipse UserFriend
Hi,

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?

Thanks
Re: Validation of SWTBotTreeItem tooltip text [message #1814961 is a reply to message #1814789] Mon, 23 September 2019 09:28 Go to previous message
Eclipse UserFriend
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,
Patrick
Previous Topic:Test application with existing project data
Next Topic:SWTBot with Cucumber
Goto Forum:
  


Current Time: Mon May 12 21:37:19 EDT 2025

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

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

Back to the top