Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.bot()


        .click();
    SWTBotShell shell = bot.shell(UIText.GitCloneWizard_title);
    shell.bot().tree().select("Clone URI");

    shell.bot().button("Next >").click();    // for some reason, textWithLabel doesn't seem to work
    shell.bot()
        .textInGroup(UIText.RepositorySelectionPage_groupLocation, 0)
        .setText(repositoryFile.getPath());
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
View Full Code Here


    shell.bot().button("Next >").click();    // for some reason, textWithLabel doesn't seem to work
    shell.bot()
        .textInGroup(UIText.RepositorySelectionPage_groupLocation, 0)
        .setText(repositoryFile.getPath());
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
View Full Code Here

    shell.bot().button("Next >").click();    // for some reason, textWithLabel doesn't seem to work
    shell.bot()
        .textInGroup(UIText.RepositorySelectionPage_groupLocation, 0)
        .setText(repositoryFile.getPath());
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
    pathText.setText(pathText.getText() + "Cloned");
View Full Code Here

    shell.bot()
        .textInGroup(UIText.RepositorySelectionPage_groupLocation, 0)
        .setText(repositoryFile.getPath());
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
    pathText.setText(pathText.getText() + "Cloned");
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
View Full Code Here

    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
    pathText.setText(pathText.getText() + "Cloned");
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    assertHasClonedRepo();
  }
View Full Code Here

    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
    pathText.setText(pathText.getText() + "Cloned");
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    assertHasClonedRepo();
  }

  @Test
View Full Code Here

        .toolbarButton(
            myUtil.getPluginLocalizedValue("RepoViewCreateRepository.tooltip"))
        .click();
    SWTBotShell shell = bot.shell(UIText.NewRepositoryWizard_WizardTitle);
    IPath newPath = new Path(getTestDirectory().getPath());
    shell.bot().textWithLabel(UIText.CreateRepositoryPage_DirectoryLabel)
        .setText(newPath.append("NewRepository").toOSString());
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    File repoFile = new File(newPath.append("NewRepository").toFile(),
        Constants.DOT_GIT);
View Full Code Here

        .click();
    SWTBotShell shell = bot.shell(UIText.NewRepositoryWizard_WizardTitle);
    IPath newPath = new Path(getTestDirectory().getPath());
    shell.bot().textWithLabel(UIText.CreateRepositoryPage_DirectoryLabel)
        .setText(newPath.append("NewRepository").toOSString());
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    File repoFile = new File(newPath.append("NewRepository").toFile(),
        Constants.DOT_GIT);
    myRepoViewUtil.getRootItem(getOrOpenView().bot().tree(), repoFile);
    assertFalse(myRepoViewUtil.lookupRepository(repoFile).isBare());
View Full Code Here

            myUtil.getPluginLocalizedValue("RepoViewCreateRepository.tooltip"))
        .click();
    shell = bot.shell(UIText.NewRepositoryWizard_WizardTitle);
    newPath = new Path(getTestDirectory().getPath()).append("bare").append(
        "NewBareRepository");
    shell.bot().textWithLabel(UIText.CreateRepositoryPage_DirectoryLabel)
        .setText(newPath.toOSString());
    shell.bot().checkBox(UIText.CreateRepositoryPage_BareCheckbox).select();
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    repoFile = newPath.toFile();
View Full Code Here

    shell = bot.shell(UIText.NewRepositoryWizard_WizardTitle);
    newPath = new Path(getTestDirectory().getPath()).append("bare").append(
        "NewBareRepository");
    shell.bot().textWithLabel(UIText.CreateRepositoryPage_DirectoryLabel)
        .setText(newPath.toOSString());
    shell.bot().checkBox(UIText.CreateRepositoryPage_BareCheckbox).select();
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    repoFile = newPath.toFile();
    myRepoViewUtil.getRootItem(getOrOpenView().bot().tree(), repoFile);
    assertTrue(myRepoViewUtil.lookupRepository(repoFile).isBare());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.