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

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


    @Test public void testPrompt() throws Exception {
        SWTBotButton button = bot.button("BuTToN");
        button.click();

        SWTBotLabel label = bot.label("Enter a test prompt answer:");
        assertNotNull(label);

        //Thread.sleep(10000);
    }
View Full Code Here


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

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

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

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

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

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

  @Test
  public void testPasteRepoPath() throws Exception {
    clearView();
    refreshAndWait();
    final Exception[] exceptions = new Exception[1];
    final SWTBotLabel label = getOrOpenView().bot().label(
        UIText.RepositoriesView_messsageEmpty);
    Display.getDefault().syncExec(new Runnable() {

      public void run() {
        Clipboard clip = null;
View Full Code Here

    }
  }

  private void assertSynchronizeNoChange() {
    // 0 => title, 1 => ?, 2 => "no result" Label
    SWTBotLabel syncViewLabel = bot.viewByTitle("Synchronize").bot()
        .label(0);

    String noResultLabel = syncViewLabel.getText();
    String expected = "No changes in 'Git (" + PROJ1 + ")'.";
    if (!noResultLabel.contains(expected)) {
      syncViewLabel = bot.viewByTitle("Synchronize").bot().label(2);
      noResultLabel = syncViewLabel.getText();
      assertTrue(noResultLabel.contains(expected));
    }
  }
View Full Code Here

    SWTBotTreeItem tags = tree
        .expandNode(UIText.RepositoriesViewLabelProvider_TagsNodeText);
    TestUtil.getChildNode(tags, "SomeTag").select();
    sourceSelectionDialog.bot().button(IDialogConstants.OK_LABEL).click();

    SWTBotLabel sourceLabel = createBranchDialog.bot().label(3);
    assertEquals("SomeTag", sourceLabel.getText());

    createBranchDialog.bot().textWithId("BranchName")
        .setText("branch-from-tag");
    createBranchDialog.bot()
        .checkBox(UIText.CreateBranchPage_CheckoutButton).deselect();
View Full Code Here

TOP

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

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.