use of com.axway.ats.uiengine.exceptions.UiElementException in project ats-framework by Axway.
the class SwingTable method selectRow.
/**
* Select table rows
*
* @param rows row numbers to select
* @throws VerificationException if the element doesn't exist
*/
@PublicAtsApi
public void selectRow(int... rows) {
new SwingElementState(this).waitToBecomeExisting();
JTableFixture tableFixture = (JTableFixture) SwingElementLocator.findFixture(this);
try {
tableFixture.selectRows(rows);
} catch (Exception e) {
throw new UiElementException(e.getMessage(), this);
}
}
use of com.axway.ats.uiengine.exceptions.UiElementException in project ats-framework by Axway.
the class SwingTable method selectCell.
/**
* Select table cell
*
* @param row the row number
* @param column the column number
* @throws VerificationException if the table element doesn't exist
*/
@PublicAtsApi
public void selectCell(int row, int column) {
new SwingElementState(this).waitToBecomeExisting();
JTableFixture tableFixture = (JTableFixture) SwingElementLocator.findFixture(this);
try {
tableFixture.selectCell(new TableCell(row, column) {
});
} catch (Exception e) {
throw new UiElementException(e.getMessage(), this);
}
}
use of com.axway.ats.uiengine.exceptions.UiElementException in project ats-framework by Axway.
the class SwingTree method expandTree.
private void expandTree(JTreeFixture treeFixture, String... treeItems) {
List<String> path = new ArrayList<String>();
try {
for (String treeItem : treeItems) {
path.add(treeItem);
treeFixture.expandPath(buildPath(path.toArray(new String[0])));
}
} catch (Exception e) {
throw new UiElementException(e.getMessage(), this);
}
}
Aggregations