Hey,

I tried to check if sub-menus are enabled or not by doing this :

   SWTBotMenu menu = ps.contextMenu("My menu with sub-menus");
   menu.click();
   SWTBotMenu submenu = menu.menu("First sub-menu");
   asserTrue(subMenu.isEnabled())

but menu.menu(String) use the MenuFinder.findMenus which isn't returning menu items if they are not enabled.

How should I check if the sub-menus are enable or not ?

Cheers,
Guillaume.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SWTBot-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to