Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Unable to access Toolbar View Menu(Unable to access Toolbar View Menu)
Unable to access Toolbar View Menu [message #1738514] Wed, 20 July 2016 09:30 Go to next message
Eclipse UserFriend
Hi,

I am using SWTBot 2.4 for testing my RCP Application. I am using Mars.2

I am not able to access Navigator View Toolbar ViewMenu Actions (the pull down menu actions) like "Link with Editor" etc.

I can access the ViewMenu and open it (pull it down) using below code but can not hit any of the listed actions there.

bot.toolbarButtonWithTooltip("View Menu").click();

I actually need to access the actions like "Link with Editor" which are in this ViewMenu.

Any help is appreciated.

Thanks.
Vivek

Re: Unable to access Toolbar View Menu [message #1738523 is a reply to message #1738514] Wed, 20 July 2016 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Vivek,

To access the a view's view menu, it's better to use the following:

SWTBotView viewBot = workbenchBot.viewByTitle("Navigator");
viewBot.viewMenu().menu("Link with Editor").click();


This was implemented in SWTBot 2.4.0 with Bug 489325.

Let us know if this solves your issue (or not).

Best regards,
Patrick
Re: Unable to access Toolbar View Menu [message #1738542 is a reply to message #1738523] Wed, 20 July 2016 13:24 Go to previous message
Eclipse UserFriend
Thank you Patrick.

This is exactly what I was trying to do. This has solved my issue.
Appreciate your help. Thanks again.

Regards,
Vivek
Previous Topic:Nebula Grid and SWTBot
Next Topic:How to launch my SWTbot tests from console?
Goto Forum:
  


Current Time: Sat Apr 19 08:11:10 EDT 2025

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

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

Back to the top