use of org.fest.swing.fixture.JTableHeaderFixture in project ats-framework by Axway.
the class SwingTable method clickHeader.
/**
* Click table header by column index
*
* @param columnIndex the column index
* @throws VerificationException if the table element doesn't exist
*/
@PublicAtsApi
public void clickHeader(int columnIndex) {
new SwingElementState(this).waitToBecomeExisting();
JTableFixture tableFixture = (JTableFixture) SwingElementLocator.findFixture(this);
JTableHeaderFixture tableHeaderFixture = tableFixture.tableHeader();
try {
tableHeaderFixture.clickColumn(columnIndex);
} catch (Exception e) {
throw new UiElementException(e.getMessage(), this);
}
}
use of org.fest.swing.fixture.JTableHeaderFixture in project ats-framework by Axway.
the class SwingTable method clickHeader.
/**
* Click table header by column name
*
* @param columnName the column name
* @throws VerificationException if the table element doesn't exist
*/
@PublicAtsApi
public void clickHeader(String columnName) {
new SwingElementState(this).waitToBecomeExisting();
JTableFixture tableFixture = (JTableFixture) SwingElementLocator.findFixture(this);
JTableHeaderFixture tableHeaderFixture = tableFixture.tableHeader();
try {
tableHeaderFixture.clickColumn(columnName);
} catch (Exception e) {
throw new UiElementException(e.getMessage(), this);
}
}
Aggregations