Package org.eclipse.swtbot.swt.finder.finders

Examples of org.eclipse.swtbot.swt.finder.finders.ControlFinder


  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here


  /**
   * Constructs a bot.
   */
  public SWTBotFactory() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

  @Test
  public void activatesTabItem() throws Exception {
    bot.shell("SWT Controls").activate();
    SWTBotTabItem tabItem = bot.tabItem("Sash");
    Matcher<TabItem> withText = withText("Sash");
    List<TabItem> findControls = new ControlFinder().findControls(allOf(widgetOfType(TabItem.class), withText));
    assertSameWidget(findControls.get(0), tabItem.widget);
  }
View Full Code Here

  @Test
  public void bringsShellToFront() throws Exception {
    SWTBotShell shell2 = bot.shell("shell2");
    shell2.activate();
    Shell activeShell = new ControlFinder().activeShell();
    assertSameWidget(activeShell, shell2.widget);
  }
View Full Code Here

  }

  @Test
  public void clicksCheckBox() throws Exception {
    try {
      List<Text> findControls = new ControlFinder().findControls(widgetOfType(Text.class));
      SWTBotText text = new SWTBotText(findControls.get(0));
      text.setText("");
      assertFalse(bot.checkBox("Listen").isChecked());
      bot.checkBox("Listen").click();
      assertTrue(bot.checkBox("Listen").isChecked());
View Full Code Here

  };

  @Before
  public final void setupSWTBot() {
    bot = new SWTBot();
    controlFinder = new ControlFinder();
    menuFinder = new MenuFinder();
    finder = new Finder(controlFinder, menuFinder);
  }
View Full Code Here

  }

  @Test
  public void clicksToggleButton() throws Exception {
    try {
      List<Text> findControls = new ControlFinder().findControls(widgetOfType(Text.class));
      SWTBotText text = new SWTBotText(findControls.get(0));
      bot.checkBox("Listen").select();
      text.setText("");

      assertFalse(bot.toggleButton("One").isPressed());
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.finders.ControlFinder

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.