Skip to main content



      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] Thu, 25 November 2010 22:54 Go to next message
Eclipse UserFriend
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 09:11 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 29 November 2010 21:36 Go to previous messageGo to next message
Eclipse UserFriend
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 01:46 Go to previous messageGo to next message
Eclipse UserFriend

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] Sun, 05 December 2010 22:33 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 22:50:24 EDT 2025

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

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

Back to the top