Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
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();