Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Anyone knows a way to click on submenus of a view menu?
Anyone knows a way to click on submenus of a view menu? [message #1468091] Mon, 10 November 2014 15:13 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi all,

I'm trying to write a UI test that does the following:
1. Open Project Explorer
2. Open View Menu for Project Explorer
3. Select Top-Level Elements > Working Sets

However, I'm kind of stuck at step 2. I can't find a way to start
browing the View Menu and find the item I wish (Top-Level Elements >
Working Sets). It seems to me that SWTBot API only allows to manipulate
root items of the view menu.
Does anyone know a good solution or a workaround/hack to achieve that
from a test (not necessarily using SWTBot APIs) ?

Thanks in advance.
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Anyone knows a way to click on submenus of a view menu? [message #1470256 is a reply to message #1468091] Wed, 12 November 2014 07:41 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

I found and fixed some small issues in Platform UI and SWTBot that allow
to use bot.toolbarDropDownButtonWithTooltip("View Menu") to get the view
menu:
*
http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/commit/?id=51240530ab0b09cc2822be74a022b6b812957f71
*
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=0f878fd8c9a0d8a4e07bb3c84362c2ad1cc2c70c
(currently only available on SNASPHOT builds)
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:waituntil some condition
Next Topic:SWTBotTreeItem's context menu click gives TimeoutException
Goto Forum:
  


Current Time: Sat Apr 27 04:04:00 GMT 2024

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

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

Back to the top