Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] Fwd: WidgetNotFoundException:The widget was null

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

bot.menu("Project",1).menu("Run").click();;



On Sun, Aug 18, 2013 at 10:29 AM, Imad Sabaany <imad.sabaany@xxxxxxxxx> wrote:

Hi,
I try to test RCP application with swtbot and I have the "ErrorWidgetNotFoundException" when I try to run the project through:
bot.menu("Project").menu("Run").click();
Although it's activated and Although I can get to the other widget Like :
bot.menu("File").menu("Import...").click();
I work with Kepler and have swtbot 2.1.1.
thanks
 


_______________________________________________
swtbot-dev mailing list
swtbot-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/swtbot-dev



Back to the top