Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to access nested context menus of the SWT table in SWTBot?
How to access nested context menus of the SWT table in SWTBot? [message #641556] Fri, 26 November 2010 03:54 Go to next message
JayRey  is currently offline JayRey Friend
Messages: 5
Registered: November 2010
Junior Member
I can not access a context menu of a table in SWTBot,nor can double click a table item to get the edit view.
Anyone can help me,Thanks.
Re: How to access nested context menus of the SWT table in SWTBot? [message #642004 is a reply to message #641556] Mon, 29 November 2010 14:11 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 11/26/10 9:24 AM, JayRey wrote:
> I can not access a context menu of a table in SWTBot,nor can double
> click a table item to get the edit view.
> Anyone can help me,Thanks.

Could you paste us some code as to how you're attempting to do this, and
any additional information about how the ways in which it is failing?

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr
Re: How to access nested context menus of the SWT table in SWTBot? [message #642133 is a reply to message #642004] Tue, 30 November 2010 02:36 Go to previous messageGo to next message
JayRey  is currently offline JayRey Friend
Messages: 5
Registered: November 2010
Junior Member
First,thank you very much for your reply.The snippet is like this:
Table table=tableViewer.getTable();
SWTBotTable conceptBotTree = new SWTBotTable(table);
conceptBotTree.select(1, 1);
conceptBotTree.contextMenu("New Record").click();


Thanks again and hope for your further replies.
Re: How to access nested context menus of the SWT table in SWTBot? [message #642870 is a reply to message #642133] Fri, 03 December 2010 06:46 Go to previous messageGo to next message
benhu Missing name is currently offline benhu Missing nameFriend
Messages: 14
Registered: October 2010
Junior Member


With the follow code:

SWTBotTable table = bot.table(...);
table.select(0, 0);
table.contextMenu("aa").click();

I can select the first row an get the contextMenu named aa.


So, maybe the problem occurd in
"Table table=tableViewer.getTable();"
Hope this can help you.
Re: How to access nested context menus of the SWT table in SWTBot? [message #643211 is a reply to message #642870] Mon, 06 December 2010 03:33 Go to previous message
JayRey  is currently offline JayRey Friend
Messages: 5
Registered: November 2010
Junior Member
Thanks a lot to benhu.
Yes, actually I have the same suspicion that it's the problem of the TableViewer,and I tried the original Table,it's ok,but if I use the table of a TableViewer,it doesm't work.
So what I'm tring to figure out is whether it's due to the disababitily of SWTBot or my wrong code to handle the TableViewer.
Previous Topic:SWTBot tab title * mark
Next Topic:"Hacking" an exported SWT product so it finds SWTBot
Goto Forum:
  


Current Time: Wed Sep 25 10:53:38 GMT 2024

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

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

Back to the top