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

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



    List<Text> texts = bot.widgets(textsInWebApplicationGroup);
    assertEquals(3,texts.size()); //port context webapp dir

    assertEquals("8080",new SWTBotText(texts.get(0)).getText());
    assertEquals("/"+projectName,new SWTBotText(texts.get(1)).getText());
    assertEquals("webcontent",new SWTBotText(texts.get(2)).getText());

    new SWTBotText(texts.get(2)).setText("");


    bot.buttonInGroup("&Scan...","Web Application").click();

    assertEquals("webcontent",new SWTBotText(texts.get(2)).getText());


    RJRSWTBotTree tree = new RJRSWTBotTree((Tree) bot.getFocusedWidget());
    tree.getSelectedTreeItems().get(0).contextMenu("Delete").click();
    bot.button("Yes").click();
View Full Code Here



    void typeValueAndFinish( String value )
    {
        SWTBotPreferences.KEYBOARD_LAYOUT = "org.eclipse.swtbot.swt.finder.keyboard.EN_US";
        SWTBotText text = bot.text( 1 );
        text.setText( value );
        bot.tree().pressShortcut( Keystrokes.LF );
    }
View Full Code Here

      }
    }));
   
    SWTBotShell shell = mBot.shell("Create string literal");
    shell.activate();
    SWTBotText text = shell.bot().textWithLabel(
        "Enter string literal value");
    text.typeText(name + "\n");
  }
View Full Code Here

      }
    }));
   
    SWTBotShell shell = mBot.shell("Create string literal");
    shell.activate();
    SWTBotText text = shell.bot().textWithLabel("Enter string literal value");
    text.typeText("Test String Literal\n");
   
    //Should have the literal now
    Pair<Shape, EObject> here = TestUtil.getLiteralWithName(
        "\"Test String Literal\"", d);
    assertNotNull(here.getLeft());
View Full Code Here

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

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

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

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

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

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

TOP

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

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.