use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingSpinner method enterText.
/**
* Enter text in the spinner text field without committing the value.
* @throws VerificationException if the element doesn't exist
*/
@PublicAtsApi
public void enterText(String text) {
new SwingElementState(this).waitToBecomeExisting();
JSpinnerFixture spinnerFixture = (JSpinnerFixture) SwingElementLocator.findFixture(this);
int delayBetweenEvents = spinnerFixture.robot.settings().delayBetweenEvents();
try {
// enterText() method sets the text value using the Robot, so we will speed it up
spinnerFixture.robot.settings().delayBetweenEvents(10);
spinnerFixture.enterText(text);
} finally {
spinnerFixture.robot.settings().delayBetweenEvents(delayBetweenEvents);
}
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingTree method click.
@PublicAtsApi
public void click(String... labels) {
new SwingElementState(this).waitToBecomeExisting();
JTreeFixture treeFixture = (JTreeFixture) SwingElementLocator.findFixture(this);
// sometimes it is necessary
expandTree(treeFixture, labels);
treeFixture.clickPath(buildPath(labels));
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingTree method expand.
@PublicAtsApi
public void expand(int rowIndex) {
new SwingElementState(this).waitToBecomeExisting();
((JTreeFixture) SwingElementLocator.findFixture(this)).expandRow(rowIndex);
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingButton method click.
/**
* Click button
* @throws VerificationException if the element doesn't exist
*/
@Override
@PublicAtsApi
public void click() {
new SwingElementState(this).waitToBecomeExisting();
((JButtonFixture) SwingElementLocator.findFixture(this)).click();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingCheckBox method check.
/**
* Check the CheckBox
* @throws VerificationException if the element doesn't exist
*/
@Override
@PublicAtsApi
public void check() {
new SwingElementState(this).waitToBecomeExisting();
((JCheckBoxFixture) SwingElementLocator.findFixture(this)).check();
}
Aggregations