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: 135
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 bot.menu("File").click(), but that doesn't seem to do anything. I can use bot.menu(...).click() 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: 56
Registered: July 2009
Member
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.

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


Current Time: Thu Nov 15 12:39:33 GMT 2018

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

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

Back to the top