use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTextArea method setValue.
/**
* Set text area value
*
* @param value the value to set
* @throws VerificationException if the element doesn't exist
*/
@Override
@PublicAtsApi
public void setValue(String value) {
new SwingElementState(this).waitToBecomeExisting();
((JTextComponentFixture) SwingElementLocator.findFixture(this)).setText(value);
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method select.
/**
* Select tree element by index
*
* @param rowIndex tree element index to select
* @throws VerificationException if the tree element doesn't exist
*/
@Override
@PublicAtsApi
public void select(int rowIndex) {
new SwingElementState(this).waitToBecomeExisting();
((JTreeFixture) SwingElementLocator.findFixture(this)).selectRow(rowIndex);
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState 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.uiengine.utilities.swing.SwingElementState 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.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method expand.
@PublicAtsApi
public void expand(String... labels) {
new SwingElementState(this).waitToBecomeExisting();
JTreeFixture treeFixture = (JTreeFixture) SwingElementLocator.findFixture(this);
expandTree(treeFixture, labels);
}
Aggregations