Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Access of tables or list in shell
Access of tables or list in shell [message #1866639] Tue, 04 June 2024 09:53 Go to next message
Eclipse UserFriend
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 #1866648 is a reply to message #1866639] Tue, 04 June 2024 10:54 Go to previous messageGo to next message
Eclipse UserFriend
You have forgotten to mention what the issue is.
Re: Access of tables or list in shell [message #1866651 is a reply to message #1866648] Tue, 04 June 2024 10:59 Go to previous messageGo to next message
Eclipse UserFriend
I want to know how to access these list and tables.

[Updated on: Tue, 04 June 2024 11:04] by Moderator

Re: Access of tables or list in shell [message #1866780 is a reply to message #1866651] Thu, 06 June 2024 10:01 Go to previous message
Eclipse UserFriend
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
Previous Topic:Unavailabiltiy of 3.0.0 version
Next Topic:Access Tab Item in Properties tab
Goto Forum:
  


Current Time: Sat May 24 06:33:00 EDT 2025

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

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

Back to the top