On 16-Sep-08, at 11:05 PM, Vitor Rodrigues wrote:
> Yes, you are right. I was in debug mode, and saw the null value, and  
> that will cause the WidgetNotFoundException.

Debugging is not advisable with SWTBot, you'd end up constantly  
stepping across threads.The state of the application may change as  
soon as focus on the application is lost.

> I am using the latest version from trunk, updated a few days ago.
>
> in SWTBotMenu.java, method menu(final String menuName), "bar" is  
> null in the following line when fetching the Project menu:
> Menu bar = ((MenuItem) widget).getMenu();
>
> but if I look at widget, it is a MenuItem with text Project, and  
> null "menu" variable. Again, this seems to work for all other menus.


If you feel it's a bug, go ahead, file it. Attach some steps to  
reproduce, and I'll make sure it's fixed.

-- Ketan


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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