简体   繁体   中英

SWTbot - How to build a project

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM