Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » WidgetNotFoundException ( Could not find node with text valueOf():Object)
WidgetNotFoundException [message #669658] Wed, 11 May 2011 04:42 Go to next message
divithshetty is currently offline divithshettyFriend
Messages: 4
Registered: May 2011
Junior Member
Hi,


I am trying to automate the override/implement method.

below is my code to do that.


private void overrideImplementProcess(String className, String method, String iPoint, String superCall) {
SWTWorkbenchBot swtBot = BotSingleton.getSWTBot();
swtBot.menu("Source").menu("Override/Implement Methods...").click();
SWTBotShell shell = swtBot.shell("Override/Implement Methods");
shell.activate();
bot.tree().getTreeItem(className).getNode(method).check();
bot.comboBox().setSelection(iPoint);
if (superCall.equals("false")) {
bot.checkBox().click();
}
bot.button("OK").click();
bot.saveAllEditors();
}

The problem i am facing is ...If the classname/method provided is not visible in the tree provided. it throws this exception : org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion: Could not find node with text: valueOf():Object


Can anyone please tell me what i am missing here.?

Thanks in advance.
Re: WidgetNotFoundException [message #669666 is a reply to message #669658] Wed, 11 May 2011 05:48 Go to previous message
divithshetty is currently offline divithshettyFriend
Messages: 4
Registered: May 2011
Junior Member
Got the issue Smile .. I just needed to call expand method

bot.tree().getTreeItem(className).expand().getNode(method).c heck();
Previous Topic:SWTBot in Eclipse dropins
Next Topic:LInked mode
Goto Forum:
  


Current Time: Thu Apr 25 14:54:22 GMT 2024

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

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

Back to the top