WidgetNotFoundException [message #669658] |
Wed, 11 May 2011 00:42  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03221 seconds