Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:30 Go to next message
Vivek Veera is currently offline Vivek VeeraFriend
Messages: 18
Registered: July 2015
Junior Member
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 14:08 Go to previous messageGo to next message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 54
Registered: July 2009
Member
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 17:24 Go to previous message
Vivek Veera is currently offline Vivek VeeraFriend
Messages: 18
Registered: July 2015
Junior Member
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: Tue Sep 25 01:43:18 GMT 2018

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

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

Back to the top