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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotButton


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withId(value), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton button(int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotButton buttonWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH"));
    return new SWTBotButton((Button) widget(matcher, index), matcher);
  }
View Full Code Here

        .getPluginLocalizedValue("ImportProjectsCommand"));
    SWTBotShell shell = bot.shell(wizardTitle);
    shell = bot.shell(wizardTitle);
    // try import existing project first
    bot.radio(UIText.GitSelectWizardPage_ImportExistingButton).click();
    SWTBotButton button = shell.bot().button(IDialogConstants.NEXT_LABEL);
    // Set focus on the next button. If this is not done, Wizard Framework restores
    // the focus to the "Import as &General Project" radio button. Setting the focus on
    // the radio button selects the button and causes the test to fail.
    // See also SWTBot Bug 337465
    button.setFocus();
    button.click();
    shell.bot().text(UIText.WizardProjectsImportPage_ImportProjectsDescription);
    shell.bot().tree().getAllItems()[0].check();
    // add to working set
    shell.bot().checkBox("Add project to working sets").select();
    // create new working set
View Full Code Here

  }

  @Test
  public void testCreateTagAndStartPush() throws Exception {
    SWTBotShell tagDialog = openTagDialog();
    SWTBotButton button = tagDialog.bot()
        .button(UIText.CreateTagDialog_CreateTagAndStartPushButton);
    assertFalse("'Create Tag And Start Push' should be disabled",
        button.isEnabled());
    tagDialog.bot().textWithLabel(UIText.CreateTagDialog_tagName)
        .setText("tag-to-push");
    tagDialog.bot().styledTextWithLabel(UIText.CreateTagDialog_tagMessage)
        .setText("Tag to push");
    button.click();

    SWTBotShell pushTagsWizard = bot
        .shell(UIText.PushTagsWizard_WindowTitle);
    pushTagsWizard.close();
  }
View Full Code Here

  public void openCommitTabOnSearchDialog() throws Exception {
    bot.menu("Search").menu("Search...").click();
    SWTBotShell shell = bot.activeShell();
    shell.bot().tabItem("Git Search").activate();
    shell.bot().comboBox().setText(commit.name());
    SWTBotButton search = shell.bot().button("Search");
    assertTrue(search.isEnabled());
    search.click();
    TestUtil.joinJobs(InternalSearchUI.FAMILY_SEARCH);
    bot.viewByTitle("Search").show();
    final SWTBotTreeItem[] repos = bot.activeView().bot().tree()
        .getAllItems();
    assertEquals(1, repos.length);
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotButton

Copyright © 2018 www.massapicom. 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.