Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » 2 menu item using 1 same name in a contextmenu(contextmenu)
2 menu item using 1 same name in a contextmenu [message #502686] Wed, 09 December 2009 12:29 Go to next message
Hua Ye is currently offline Hua YeFriend
Messages: 3
Registered: December 2009
Junior Member
Hello,

I am using SWTBot to test my GUI now. I meet a problem.

I have a GEFEditor , and it has a contextMenu. There are 2 Menu Items using a same name under diferent Sub menu in this contextMenu.

Which way I could use to click the 2 Menu Item ?

my code :
editor.clickContextMenu("sample");

it always find the first one.
Re: 2 menu item using 1 same name in a contextmenu [message #502699 is a reply to message #502686] Wed, 09 December 2009 13:25 Go to previous messageGo to next message
Mariot Chauvin is currently offline Mariot ChauvinFriend
Messages: 174
Registered: July 2009
Senior Member
Hi Hua,

It seems that it misses an API like the one recently added for selecting tool.
Something like :

editor.clickContextMenu(String label, int index);

Could you please enter a new bug ?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=SWTBot&a mp;component=GEFBot

Regards,

Mariot

Hua Ye a écrit :
> Hello,
> I am using SWTBot to test my GUI now. I meet a problem.
>
> I have a GEFEditor , and it has a contextMenu. There are 2 Menu Items
> using a same name under diferent Sub menu in this contextMenu.
>
> Which way I could use to click the 2 Menu Item ?
>
> my code :
> editor.clickContextMenu("sample");
>
> it always find the first one.
Re: 2 menu item using 1 same name in a contextmenu [message #502738 is a reply to message #502699] Wed, 09 December 2009 15:18 Go to previous messageGo to next message
Hua Ye is currently offline Hua YeFriend
Messages: 3
Registered: December 2009
Junior Member
Hi,
thanks very much for your quick reply.
I just opened a Bug Report

https://bugs.eclipse.org/bugs/show_bug.cgi?id=297343
Re: 2 menu item using 1 same name in a contextmenu [message #502744 is a reply to message #502738] Wed, 09 December 2009 15:30 Go to previous message
Hua Ye is currently offline Hua YeFriend
Messages: 3
Registered: December 2009
Junior Member
oh, sorry, by the way, is there any workaround to solve this problem now?
Previous Topic:How build the RCP with SWTBot headless automatically
Next Topic:Access to a WritableList
Goto Forum:
  


Current Time: Sat Dec 20 01:44:01 GMT 2014

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

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