Examples of JFileChooserFixture


Examples of org.fest.swing.fixture.JFileChooserFixture

  private void addFile(String fileName) {
    Util.setFileDirectory("C:\\java\\workspace\\ProTrans\\src\\test\\resources");
    dialogFixture.button("ButtonAddAttachment").click();

    JFileChooserFixture fileChooser = JFileChooserFinder
        .findFileChooser("fileChooser").withTimeout(10000)
        .using(dialogFixture.robot);
    fileChooser.fileNameTextBox().enterText(fileName);
    fileChooser.approveButton().click();
  }
View Full Code Here

Examples of org.fest.swing.fixture.JFileChooserFixture

    if (cuttingFileName != null && cuttingFileName.length() != 0) {
      JOptionPaneFinder.findOptionPane().using(dialogFixture.robot)
          .buttonWithText("Ja").click();
    }

    JFileChooserFixture fileChooser = JFileChooserFinder
        .findFileChooser("fileChooser").withTimeout(10000)
        .using(dialogFixture.robot);
    fileChooser.fileNameTextBox().enterText("test_cutting.boq");
    fileChooser.approveButton().click();

    JOptionPaneFixture optionPane = JOptionPaneFinder.findOptionPane()
        .withTimeout(40000).using(dialogFixture.robot);
    optionPane.buttonWithText("OK").click();
View Full Code Here

Examples of org.fest.swing.fixture.JFileChooserFixture

    editDialog.button("ButtonOpenCuttingFile").click();

    if (cuttingFileName == null || cuttingFileName.length() == 0) {
      JOptionPaneFinder.findOptionPane().using(dialogFixture.robot)
          .buttonWithText("Ok").click();
      JFileChooserFixture fileChooser = JFileChooserFinder
          .findFileChooser("fileChooser").withTimeout(10000)
          .using(dialogFixture.robot);
      fileChooser.fileNameTextBox().enterText("test_cutting.boq");
      fileChooser.approveButton().click();

      JOptionPaneFixture optionPane = JOptionPaneFinder.findOptionPane()
          .withTimeout(40000).using(dialogFixture.robot);
      optionPane.buttonWithText("OK").click();
View Full Code Here

Examples of org.fest.swing.fixture.JFileChooserFixture

   * @param robot contains the underlying finding to delegate the search to.
   * @return a <code>JFileChooserFixture</code> managing the found {@code JFileChooser}.
   * @throws org.fest.swing.exception.WaitTimedOutError if a {@code JFileChooser} could not be found.
   */
  public JFileChooserFixture using(Robot robot) {
    return new JFileChooserFixture(robot, findComponentWith(robot));
  }
View Full Code Here

Examples of org.fest.swing.fixture.JFileChooserFixture

    @GUITest
    @Test
    public void testFileOpenDialog() throws Exception {
        window.menuItemWithPath("File", "Load").click();

        JFileChooserFixture fileChooser = window.fileChooser();
        fileChooser.requireVisible();
        fileChooser.cancel();
    }
View Full Code Here

Examples of org.fest.swing.fixture.JFileChooserFixture

    btn.requireEnabled();

    url.enterText("www.yahoo.com");
    url.pressKey(KeyEvent.VK_ENTER);

    final JFileChooserFixture fc = JFileChooserFinder.findFileChooser()
        .withTimeout(15000).using(window.robot);
    final JButtonFixture fBtn = btn;

    GuiActionRunner.execute(new GuiTask() {
      @Override
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.