Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to open a menu?
How to open a menu? [message #1786317] Mon, 30 April 2018 17:33 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 161
Registered: July 2009
Senior Member
I am investigating to what degree I can use swtbot to automatically create screen shots that can be put in documentation. One thing I'd like to do is show a screenshot with an opened menu from the menu bar or an open context menu. I tried"File").click(), but that doesn't seem to do anything. I can use to execute the command associated with a menu item, but that works without displaying the open menu.
This is on Oxygen.3a, Kubuntu 17.10.
Is there a way to open a menu using swtbot?

Re: How to open a menu? [message #1786340 is a reply to message #1786317] Tue, 01 May 2018 16:55 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 75
Registered: July 2009
Hi Lutz,

I remember experimenting a bit with this when I was reworking the SWTBotMenu implementation. I think I was able to have them visible, but they didn't appear where the menu bar was, or where the context menu was invoked (by SWTBot), they appeared where the mouse cursor was located, so it was interfering with the user (but then again, everything the user does with the mouse can interfere with the running SWTBot test...). So I didn't pursue it further.

Maybe it could be something that can be added to SWTBotPreferences as an optional setting (and have it 'off' by default). I'll see if I have some time to try it out.

Previous Topic:How to make the Logger snippet work
Next Topic:SWTBot Command line Framework installation
Goto Forum:

Current Time: Sun Jul 05 21:27:37 GMT 2020

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

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

Back to the top