Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.JComboBoxFixture.selectItem()


      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
    }
    JComboBoxFixture combo = dialogFixture.comboBox("ComboBoxSupplier1");
    combo.selectItem(combo.target.getSelectedIndex() + 1);
    dialogFixture.button("SaveTransport").click();
    dialogFixture
        .table(TableEnum.TABLETRANSPORTORDERS.getTableName() + "1")
        .cell(row(0).column(1)).select();
    dialogFixture
View Full Code Here


      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedItem(1);
      Pause.pause(PAUSE);
    }
    JComboBoxFixture combo = dialogFixture.comboBox("ComboBoxSupplier1");
    combo.selectItem(combo.target.getSelectedIndex() + 1);
    dialogFixture.button("SaveTransport").click();
    JCheckBoxFixture checkBox = dialogFixture.checkBox("CheckBoxSent1");

    if (checkBox.target.isSelected()) {
      checkBox.uncheck();
View Full Code Here

        "YearChooserTransportCost"));
    yearChooser.setYear(2008);

    JComboBoxFixture comboBoxWeekFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
    comboBoxWeekFrom.selectItem("50");

    JComboBoxFixture comboBoxWeekTo = dialogFixture
        .comboBox("ComboBoxWeekTo");
    comboBoxWeekTo.selectItem("50");
View Full Code Here

        .comboBox("ComboBoxWeekFrom");
    comboBoxWeekFrom.selectItem("50");

    JComboBoxFixture comboBoxWeekTo = dialogFixture
        .comboBox("ComboBoxWeekTo");
    comboBoxWeekTo.selectItem("50");

    dialogFixture.table("TableTransportCostBasis").requireVisible();

  }
View Full Code Here

  @Test
  public void testShowReportSalgDriftTransport() {
    JComboBoxFixture comboBox = dialogFixture
        .comboBox("ComboBoxReportType");
    comboBox.selectItem(0);
    String reportName = comboBox.valueAt(0);
    dialogFixture.comboBox("ComboBoxProductArea").selectItem(
        "Garasje villa");
    dialogFixture.comboBox("ComboBoxWeek").selectItem(3);
    dialogFixture.button("ButtonShowReport").click();
View Full Code Here

  public void testShowReportMonteringOkonomi() {
    dialogFixture.comboBox("ComboBoxProductArea").selectItem(
        "Garasje villa");
    JComboBoxFixture comboBox = dialogFixture
        .comboBox("ComboBoxReportType");
    comboBox.selectItem(1);
    String reportName = comboBox.valueAt(1);
   
    dialogFixture.comboBox("ComboBoxWeek").selectItem(3);
    dialogFixture.button("ButtonShowReport").click();
View Full Code Here

  @Test
  public void testShowReportProduksjon() {
    JComboBoxFixture comboBox = dialogFixture
        .comboBox("ComboBoxReportType");
    comboBox.selectItem(2);
    String reportName = comboBox.valueAt(2);
    dialogFixture.comboBox("ComboBoxProductArea").selectItem(
        "Garasje villa");
    dialogFixture.comboBox("ComboBoxWeek").selectItem(3);
    dialogFixture.button("ButtonShowReport").click();
View Full Code Here

        titleCheckBox.focus();
        Mockito.verify(mockCanvasManifestation,Mockito.times(persistentCount)).fireFocusPersist();

        // check that selecting the border color call persistence
        JComboBoxFixture colorFixture = window.comboBox(new ComboBoxMatcher("Color:"));
        colorFixture.selectItem(2);
        Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();

        window.toggleButton(new JToggleButtonMatcher("All borders")).click();
        Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();
       
View Full Code Here

    }

    @When("^the user selects (.+) in the authorization drop down$")
    public void selectItemInProfileSelectionComboBox(String itemName) {
        JComboBoxFixture comboBox = getProfileSelectionComboBox();
        comboBox.selectItem(itemName);
    }

    @Then("^refresh button is visible$")
    public void verifyThatRefreshButtonIsVisible() throws Throwable {
        rootWindow.button(OAuth2Form.REFRESH_ACCESS_TOKEN_BUTTON_NAME).requireVisible();
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.