Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Unable to Enter Text in a Tree Cell
Unable to Enter Text in a Tree Cell [message #1020628] Mon, 18 March 2013 15:44
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
Member
Hi ALL,
I have a Shell, In which i have Tree(SWTBotTree) which is In Table Format.
I want to click on a particular Cell and Enter Text inside the Text Field Enabled after the click.
After Clicking the Cell and Entering the Text, When i am clicking the Next Cell the Text in the Previous Cell get Disappeared.
Here is MY code..........

SWTBotTreeItem[] items =  bot.tree().getAllItems();
 for(SWTBotTreeItem ii : items )
  {  
     if(ii.select().cell(1).toString().equals("File"))
         {
          ii.select().click(5);
          SWTBotText text = bot.text();
          text.setText("NEw TExt"); // set the text
         }       
      if(ii.select().cell(1).toString().equals("MessageType"))
         {
          ii.select().click(5);
          SWTBotText text = bot.text();
          text.setText("NExt TExt"); // set the text
                 
         }
   }
Previous Topic:Scroll an eclipse view using SWT BOT
Next Topic:SWTBot: issue while using headless
Goto Forum:
  


Current Time: Tue Apr 16 05:43:42 GMT 2024

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

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

Back to the top