Examples of SWTBotText


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

   * @return a {@link SWTBotText} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  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

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

   * @return a {@link SWTBotText} with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText textInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotText} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText text(int index) {
    Matcher matcher = allOf(widgetOfType(Text.class));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotText} with the specified <code>label</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText textWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withLabel(label), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotText} with the specified <code>text</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText textInGroup(String text, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withText(text), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotText} with the specified <code>tooltip</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText textWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withTooltip(tooltip), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

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

    private static final String NAME = "Name:";


    public void typeServerName( String serverName )
    {
        SWTBotText connText = bot.textWithLabel( NAME );
        connText.setText( serverName );
    }
View Full Code Here

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

                assertEquals(null, label.widget.getBackgroundImage());
            }
        });

        // Rule 3 (defaults
        final SWTBotText text = bot.text(0);
        assertFalse(0 == text.backgroundColor().getBlue());
        assertFalse(255 == text.foregroundColor().getBlue());
        Display.getDefault().syncExec(new Runnable() {
            public void run() {
                assertEquals(null, text.widget.getBackgroundImage());
            }
        });
View Full Code Here

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

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


    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
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.