Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to modify Tree/table?
How to modify Tree/table? [message #1773292] Tue, 26 September 2017 08:33 Go to next message
Antoine Omnès is currently offline Antoine OmnèsFriend
Messages: 11
Registered: September 2017
Junior Member
Hi,

I have a tree/table.
I need to interact with it. I know how to get the value in the tree

System.out.println(ff.bot().tree().getTreeItem("J").getNode("WORD").cell(1));

How can I modify this value?
Example a list, a checkbox, text...

index.php/fa/30835/0/

Thanks.
Antoine
Re: How to modify Tree/table? [message #1773309 is a reply to message #1773292] Tue, 26 September 2017 11:24 Go to previous messageGo to next message
Antoine Omnès is currently offline Antoine OmnèsFriend
Messages: 11
Registered: September 2017
Junior Member
Now, I have a solution.

ff.bot().tree().getTreeItem("J").getNode("WORD").click(1);
ff.bot().text(1).setText("3");


click(1) => click(number column)

[Updated on: Tue, 26 September 2017 11:27]

Report message to a moderator

Re: How to modify Tree/table? [message #1774070 is a reply to message #1773309] Tue, 10 October 2017 07:59 Go to previous messageGo to next message
Antoine Omnès is currently offline Antoine OmnèsFriend
Messages: 11
Registered: September 2017
Junior Member
I have an other question about that:
Is possible to get the name of a cell without text() and with out click().
For example, if I have a cell with a name not editable, it is not possible to use the widget of type "text".

Thank you,
Antoine
Re: How to modify Tree/table? [message #1774073 is a reply to message #1774070] Tue, 10 October 2017 08:10 Go to previous message
Antoine Omnès is currently offline Antoine OmnèsFriend
Messages: 11
Registered: September 2017
Junior Member
Actually, with cell(column) it works!
Previous Topic:How to link a Part from an RCP App to SWTBot?
Next Topic:Send a Drag and Drop between 2 node (from a Tree)
Goto Forum:
  


Current Time: Fri Sep 21 08:35:32 GMT 2018

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

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

Back to the top