Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to update a value in a particular cell in SwtBotTree
How to update a value in a particular cell in SwtBotTree [message #1181264] Mon, 11 November 2013 13:43 Go to next message
Pawan Relan is currently offline Pawan RelanFriend
Messages: 9
Registered: July 2013
Junior Member
Hi All,
I need to update the value of a particular cell,in a Tree.
I am able to focus on particular cell,but I am unable to change its existing value to the new value.
Thanks in Advance..!!!

Regards,
Pawan Relan



Re: How to update a value in a particular cell in SwtBotTree [message #1181622 is a reply to message #1181264] Mon, 11 November 2013 18:26 Go to previous messageGo to next message
Martin Schemel is currently offline Martin SchemelFriend
Messages: 6
Registered: November 2013
Location: Berlin
Junior Member
Usually this should work as follows (free written so maybe some typo):

SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.tree(0).click(0,0);
bot.text(0).setText("newValueForName0"); // maybe you need to pass another index to text() in case there are some text fields before the tree



Did you try this?

[Updated on: Mon, 11 November 2013 18:27]

Report message to a moderator

Re: How to update a value in a particular cell in SwtBotTree [message #1182721 is a reply to message #1181622] Tue, 12 November 2013 11:20 Go to previous message
Pawan Relan is currently offline Pawan RelanFriend
Messages: 9
Registered: July 2013
Junior Member
Thanks Martin.
Your solution worked for me.
I am facing similar problem when I have to edit a cell in a SWTBotTable.

Following is my code

SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.table().setFocus();
bot.table().click(0,0);
bot.text(0).setText("NewValue");

The above code inserts the New value in other textbox whose index value is 0.
Kindly Help me with this...

Regards,
Pawan Relan

[Updated on: Tue, 12 November 2013 11:21]

Report message to a moderator

Previous Topic:"Validation" and "Error Markers" behave strange when testing
Next Topic:log4j warning message after reading FAQ
Goto Forum:
  


Current Time: Tue Mar 19 09:18:12 GMT 2024

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

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

Back to the top