Frage

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

War es hilfreich?

Lösung

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);

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top