On Tue, Sep 16, 2008 at 1:07 AM, Ketan Padegaonkar <
[EMAIL PROTECTED]> wrote:

>
> On 16-Sep-08, at 12:45 PM, Vitor Rodrigues wrote:
>
> > Hi all,
> >
> > is there anything "special" about the Project menu in eclipse? I
> > want to open the menu Project->Properties for the selected project,
> > but I get a null value when I do:
> >         projecthelper.selectProject(PROJECT_NAME);
> >         SWTBotMenu propmenu = bot.menu("Project").menu("Properties");
> >
> > propmenu is assigned a null value.
>
> I looked at the code, and you should not get a null value here, ever.
> You'll instead get a WidgetNotFoundException. What version are you
> using, can you reproduce this with the latest in trunk:
> http://swtbot.sourceforge.net/artifacts/trunk/


Yes, you are right. I was in debug mode, and saw the null value, and that
will cause the WidgetNotFoundException.

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.

I want to demo swtbot today to my team, so will just try the context menu
before trying to debug this issue further.

 - Vitor
-------------------------------------------------------------------------
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