Source:
<code>public void testImportWizardGeneralProjectWithWorkingSet() throws Exception { deleteAllProjects(); assertProjectExistence(PROJ1, false); SWTBotTree tree = getOrOpenView().bot().tree(); String wizardTitle = NLS.bind( UIText.GitCreateProjectViaWizardWizard_WizardTitle, repositoryFile.getPath()); getWorkdirItem(tree, repositoryFile).expand().getNode(PROJ1).select(); ContextMenuHelper.clickContextMenu(tree, myUtil .getPluginLocalizedValue("ImportProjectsCommand")); SWTBotShell shell = bot.shell(wizardTitle); shell = bot.shell(wizardTitle); activateItemByKeyboard(shell, UIText.GitSelectWizardPage_ImportExistingButton); activateItemByKeyboard(shell, UIText.GitSelectWizardPage_AutoShareButton); shell.bot().button(IDialogConstants.NEXT_LABEL).click(); waitInUI(); shell.bot().tree().getAllItems()[0].check(); shell.bot().checkBox().select(); shell.bot().button("Select...").click(); SWTBotShell workingSetDialog = bot.shell("Select Working Sets"); workingSetDialog.bot().button("New...").click(); SWTBotShell newDialog = bot.shell("New Working Set"); <START> newDialog.bot().button(IDialogConstants.NEXT_LABEL).click(); <END> String workingSetName = "myWorkingSet"; newDialog.bot().text(0).setText(workingSetName); newDialog.bot().button(IDialogConstants.FINISH_LABEL).click(); workingSetDialog.bot().table().getTableItem(workingSetName).check(); workingSetDialog.bot().button(IDialogConstants.OK_LABEL).click(); shell.bot().button(IDialogConstants.FINISH_LABEL).click(); waitInUI(); assertProjectExistence(PROJ1, true); assertProjectInWorkingSet(workingSetName, PROJ1); }</code><technical_language>This fails for me, "Next" button is disabled; apparently some item in tree selected enable button</technical_language>

Target:
public void testImportWizardGeneralProjectWithWorkingSet() throws Exception { deleteAllProjects(); assertProjectExistence(PROJ1, false); SWTBotTree tree = getOrOpenView().bot().tree(); String wizardTitle = NLS.bind( UIText.GitCreateProjectViaWizardWizard_WizardTitle, repositoryFile.getPath()); getWorkdirItem(tree, repositoryFile).expand().getNode(PROJ1).select(); ContextMenuHelper.clickContextMenu(tree, myUtil .getPluginLocalizedValue("ImportProjectsCommand")); SWTBotShell shell = bot.shell(wizardTitle); shell = bot.shell(wizardTitle); activateItemByKeyboard(shell, UIText.GitSelectWizardPage_ImportExistingButton); activateItemByKeyboard(shell, UIText.GitSelectWizardPage_AutoShareButton); shell.bot().button(IDialogConstants.NEXT_LABEL).click(); waitInUI(); shell.bot().tree().getAllItems()[0].check(); shell.bot().checkBox().select(); shell.bot().button("Select...").click(); SWTBotShell workingSetDialog = bot.shell("Select Working Sets"); workingSetDialog.bot().button("New...").click(); SWTBotShell newDialog = bot.shell("New Working Set"); newDialog.bot().table().select("Java"); newDialog.bot().button(IDialogConstants.NEXT_LABEL).click(); String workingSetName = "myWorkingSet"; newDialog.bot().text(0).setText(workingSetName); newDialog.bot().button(IDialogConstants.FINISH_LABEL).click(); workingSetDialog.bot().table().getTableItem(workingSetName).check(); workingSetDialog.bot().button(IDialogConstants.OK_LABEL).click(); shell.bot().button(IDialogConstants.FINISH_LABEL).click(); waitInUI(); assertProjectExistence(PROJ1, true); assertProjectInWorkingSet(workingSetName, PROJ1); }