On 18-Jun-08, at 4:15 PM, Guillaume Bourel wrote:

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

That's the intended behavior to speed up things, by not searching  
inside things that are not enabled, this is a problem in some cases.  
You can override this by setting:

Finder#setShouldFindInvisibleControls(). There's a finder in SWTBot  
See SWTBotView#findWidget(IWorkbenchPartReference view, Finder finder)  
for usage. There's no easy hook to inject a finder into an instance of  
SWTBotWidget. Do file a patch if you can think of something that's  
quick.

-- Ketan


-------------------------------------------------------------------------
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
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to