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();
}
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();
}
Aggregations