Question

In my SWTbot test i'm trying to create a C project and then build it so i can run it later . I tried

bot.menu("Project").menu("Build Project").click();

or also

bot.menu("Project").menu("Build All").click();

and i got WidgetNotFound Exception.

help please

Was it helpful?

Solution

I Found it ! SWTbot finds the wrong "Project" menu item. It finds the one that is located in Search -> Text . to do this we must specifie the depth of the menu we are looking for and it gives us :

bot.menu("Project", 1);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top