| Access of tables or list in shell [message #1866639] | 
Tue, 04 June 2024 09:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I would like to select an option from a given list in a specific area. The list contains the following options: Blinking, Hello, and Tool Library. Additionally, it is possible to expand these options and select sub-nodes as parent folders. 
 
However, I am encountering an issue when attempting to access this list. 
 
Furthermore, I am experiencing a similar issue when trying to access the final table, which is labeled "Select Type." 
 
As I am new to SWTBot, I may be missing some details. I appreciate any assistance you can provide. 
 
Thank you.
[Updated on: Tue, 04 June 2024 12:41] by Moderator  
 |  
 |  
  | 
 | 
 | 
| Re: Access of tables or list in shell [message #1866780 is a reply to message #1866651] | 
Thu, 06 June 2024 10:01   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi Prashantkumar, 
 
Is this a dialog that opens in a new shell? I would expect to access the items with code similar to this: 
 
        SWTWorkbenchBot workbenchBot = new SWTWorkbenchBot(); 
        SWTBotShell shell = workbenchBot.shell("New Type"); 
        SWTBotTree tree = shell.bot().tree(); 
        SWTBotTreeItem treeItem = tree.getTreeItem("Blinking"); 
        treeItem.expand(); 
        SWTBotTreeItem childTreeItem = treeItem.getNode("child"); 
        SWTBotTable table = shell.bot().table(); 
        SWTBotTableItem tableItem = table.getTableItem(0); 
 
Hope this helps, 
Patrick
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04624 seconds