Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » View Menu of part and SWTBot(How can I access to button in the View Menu of a part with SWTBot)
View Menu of part and SWTBot [message #1701790] Wed, 15 July 2015 15:32
Loic Faure is currently offline Loic FaureFriend
Messages: 24
Registered: December 2014
Junior Member
Hi,

I'm facing a problem with SWTBot, I don't know if I need to post it on the SWTBot forum or here.

When I get a SWTBotView for a part and this part have a View Menu, I cannot access the content of this menu.

I tried the following (which I found in a bug) :
viewBot.bot().toolbarDropDownButtonWithTooltip("View Menu").menuItem(...)
That does'nt work. More precisely, there isn't toolbar in my part.

So I tried to get the menu via application model but then, the menu is not yet rendered so the call :
viewBot.getPart().getMenus().get(0).getWidget return null.

So is there a method for getting this type of elements ?
Previous Topic:Using Popup Menu and MDirectMenuItem
Next Topic:Any active/modern web-renderers for E4 ?
Goto Forum:
  


Current Time: Sun Oct 22 15:54:17 GMT 2017

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

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