Although an bit out of date, you may want to look at the javadoc for EventContextMenuFinder.
It's used in SWTBotToolbarDropDownButton#menuItem. It's used to find context menus generated in a way similar to the one you're mentioning here. -- Ketan On Fri, Jan 2, 2009 at 3:51 PM, diyfiesta <toby.wes...@gmail.com> wrote: > > Hi, > > Am I right in thinking that the context menu is retrieved using the > ContextMenuFinder at the getMenu() method of the Control class? If so, I > wondered if/how it might support menus that weren't added via the setMenu() > method. For example, the TrayItem can have a popup associated with it by > adding a SWT.MenuDetect listener, but I can't think of a neat way to get > this back with SWTBot... > > Cheers, > Toby > > > Vincent Mahe wrote: >> >> Veneet a écrit : >>> so i can substitute it for a right click action rite???? >>> >> Yes. >> SWTBot has few direct accesses to the GUI layer so it proceeds mainly >> with methods offered by SWT widgets, like list of the context menus. >> As we want to test our applications interface with users, and not how >> GTK or WIN32 work, it is a good way to write conceptual commands to the >> interface, in my opinion :-). >> >> -- >> Cordialement >> >> Vincent MAHÉ >> >> Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org >> IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France >> Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71 >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> SWTBot-users mailing list >> SWTBot-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/swtbot-users >> http://swtbot.org/ - a functional testing tool for SWT/Eclipse >> >> >> > > -- > View this message in context: > http://www.nabble.com/can-right_click-be-performed-in-SWTbot---tp19854779p21249743.html > Sent from the SWTBot Users List mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > SWTBot-users mailing list > SWTBot-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > > -- Ketan Padegaonkar I blog... therefore I am... http://ketan.padegaonkar.name http://swtbot.org/ - a functional testing tool for SWT/Eclipse ------------------------------------------------------------------------------ _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse