Search in sources :

Example 1 with JFileChooserFixture

use of org.fest.swing.fixture.JFileChooserFixture in project ats-framework by Axway.

the class SwingFileBrowse method clickApprove.

/**
     * Click the Approve button (labeled "Open" or "Save", by default).
     * This method causes an action event to fire with the command string equal to APPROVE_SELECTION.
     *
     * @throws VerificationException if the element doesn't exist
     */
@PublicAtsApi
public void clickApprove() {
    new SwingElementState(this).waitToBecomeExisting();
    ((JFileChooserFixture) SwingElementLocator.findFixture(this)).approve();
}
Also used : JFileChooserFixture(org.fest.swing.fixture.JFileChooserFixture) SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 2 with JFileChooserFixture

use of org.fest.swing.fixture.JFileChooserFixture in project ats-framework by Axway.

the class SwingFileBrowse method clickCancel.

/**
     * Click the Cancel button
     *
     * @throws VerificationException if the element doesn't exist
     */
@PublicAtsApi
public void clickCancel() {
    new SwingElementState(this).waitToBecomeExisting();
    ((JFileChooserFixture) SwingElementLocator.findFixture(this)).cancel();
}
Also used : JFileChooserFixture(org.fest.swing.fixture.JFileChooserFixture) SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Aggregations

PublicAtsApi (com.axway.ats.common.PublicAtsApi)2 SwingElementState (com.axway.ats.uiengine.utilities.swing.SwingElementState)2 JFileChooserFixture (org.fest.swing.fixture.JFileChooserFixture)2