How to access nested context menus? [message #34302] |
Sun, 03 May 2009 02:48  |
Eclipse User |
|
|
|
The following context-menu code works:
SWTBotTreeItem myprojtree = getProjectTree();
myprojtree.contextMenu("Import...").click();
The following code does NOT work:
myprojtree.contextMenu("option1").contextMenu("option2").click();
I get the following exception when I try it:
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundExcep tion: The
widget {(an instance of org.eclipse.swt.widgets.MenuItem and with mnemonic
'option1')} was disposed.
I also tried:
myprojtree.contextMenu("option1").menu("option2").click();
and just:
myprojtree.contextMenu("option1").click();
Nested menus do work for regular menus, because this code works:
bot.menu("Option1").menu("Option2").menu("Option3").click();
...Am I overlooking anything? Anyone experience something similar?
Thanks in advance,
Steve
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10063 seconds