Jump to: navigation, search

SWTBot/Snippets

< SWTBot
Revision as of 03:35, 1 July 2009 by Ketanpadegaonkar.gmail.com (Talk | contribs) (using templates for creating links)


SWTBot
Website
Update Sites
Community
Mailing List
Forums/Newsgroups
IRC
Contribute
Open Bugzilla tickets
Open Gerrit reviews
Browse Source
Continuous Integration


Some snippets for working with SWTBot


Switch perspective

This allows you to switch perspectives in eclipse from within the Window>Open Perspective>Other... menu.

// Change the perspective via the Open Perspective dialog       
bot.menu("Window").menu("Open Perspective").menu("Other...").click();
SWTBotShell openPerspectiveShell = bot.shell("Open Perspective");
openPerspectiveShell.activate();

// select the dialog
bot.table().select("Debug");
bot.button("OK").click();